Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001696/0.001696, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 196.4 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 47.92 kB / 370.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2307, allocations: 52.19 MB / 423.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006738/0.2374, allocations: 4.841 MB / 427.9 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003455/0.2409, allocations: 1.982 MB / 429.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004124/0.2413, allocations: 51.56 kB / 429.9 MB, free: 7.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004548/0.2418, allocations: 206.2 kB / 430.1 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00033/0.2421, allocations: 166.4 kB / 430.3 MB, free: 7.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008166/0.2429, allocations: 399.1 kB / 430.7 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.2441, allocations: 1.017 MB / 431.7 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006903/0.2448, allocations: 389.4 kB / 432.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004312/0.2452, allocations: 358.8 kB / 432.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004142/0.2456, allocations: 314.4 kB / 432.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.2458, allocations: 92 kB / 432.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002585/0.246, allocations: 147.9 kB / 433 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.2462, allocations: 207.3 kB / 433.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003444/0.2466, allocations: 346.5 kB / 433.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.2478, allocations: 1.189 MB / 434.7 MB, free: 2.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.2478, allocations: 8 kB / 434.7 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2478, allocations: 3.938 kB / 434.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.2479, allocations: 0 / 434.7 MB, free: 2.77 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001464/0.2493, allocations: 0.9688 MB / 435.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.2494, allocations: 12.02 kB / 435.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000144/0.2495, allocations: 96.38 kB / 435.8 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008413/0.2503, allocations: 456.3 kB / 436.2 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.731e-05/0.2504, allocations: 66.31 kB / 436.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.2505, allocations: 96.33 kB / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.2521, allocations: 0.8008 MB / 437.2 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/0.2521, allocations: 11.94 kB / 437.2 MB, free: 188 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-05/0.2522, allocations: 36 kB / 437.2 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/0.2522, allocations: 20 kB / 437.3 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.2533, allocations: 499.6 kB / 437.7 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003322/0.2566, allocations: 2.477 MB / 440.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005817/0.2572, allocations: 203.1 kB / 440.4 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001844/0.2574, allocations: 101.3 kB / 440.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001142/0.2575, allocations: 15.98 kB / 440.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.2575, allocations: 46.5 kB / 440.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.2575, allocations: 0 / 440.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002413/0.2599, allocations: 1.116 MB / 441.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.26, allocations: 59.34 kB / 441.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.2604, allocations: 316.3 kB / 442.1 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.105e-05/0.2604, allocations: 29.7 kB / 442.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/0.2607, allocations: 407.8 kB / 442.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.2609, allocations: 142.8 kB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.261, allocations: 86.14 kB / 442.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001972/0.2612, allocations: 354.7 kB / 443.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/0.2614, allocations: 112.9 kB / 443.2 MB, free: 9.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.2618, allocations: 246.1 kB / 443.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006045/0.2624, allocations: 388.9 kB / 443.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2624, allocations: 0 / 443.8 MB, free: 9.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007542/0.2631, allocations: 465.3 kB / 444.2 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2631, allocations: 4 kB / 444.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.2632, allocations: 4.594 kB / 444.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002003/0.2634, allocations: 44.83 kB / 444.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.2637, allocations: 107.8 kB / 444.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004473/0.2642, allocations: 0.5601 MB / 445 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.2643, allocations: 16 kB / 445 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.2644, allocations: 20 kB / 445 MB, free: 7.996 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002703/0.2646, allocations: 213.7 kB / 445.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.691e-05/0.2647, allocations: 39.77 kB / 445.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006322/0.2653, allocations: 336.5 kB / 445.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.2653, allocations: 4 kB / 445.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2654, allocations: 0 / 445.6 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.2654, allocations: 3.984 kB / 445.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.2667, allocations: 0.8438 MB / 446.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.2667, allocations: 4 kB / 446.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000358/0.267, allocations: 80.06 kB / 446.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.2672, allocations: 32.84 kB / 446.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.703e-05/0.2672, allocations: 15.98 kB / 446.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003803/0.2676, allocations: 0.5562 MB / 447.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2676, allocations: 0 / 447.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007988/0.2684, allocations: 0.5451 MB / 447.7 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.5e-05/0.2684, allocations: 35.69 kB / 447.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/0.2685, allocations: 8.062 kB / 447.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.2686, allocations: 15.94 kB / 447.7 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.2687, allocations: 28.05 kB / 447.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.2687, allocations: 15.98 kB / 447.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002197/0.2689, allocations: 211.1 kB / 448 MB, free: 4.883 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2689, allocations: 0 / 448 MB, free: 4.883 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004552/0.2694, allocations: 116 kB / 448.1 MB, free: 4.77 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001665/0.2695, allocations: 120.7 kB / 448.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006056/0.2701, allocations: 299.7 kB / 448.5 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.67e-06/0.2702, allocations: 4 kB / 448.5 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002667/0.2704, allocations: 133.1 kB / 448.6 MB, free: 4.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005058/0.2709, allocations: 81 kB / 448.7 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.2735, allocations: 1.592 MB / 450.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.2739, allocations: 333.8 kB / 450.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001581/0.274, allocations: 47.09 kB / 450.7 MB, free: 2.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.787e-05/0.2741, allocations: 27.44 kB / 450.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2741, allocations: 0 / 450.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of Templates: time 0.01033/0.2844, allocations: 4.418 MB / 455.1 MB, free: 13.73 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.490729497745633]