Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 105.2 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241.8 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001056/0.001056, allocations: 49.42 kB / 300.6 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09863/0.0997, allocations: 49.44 MB / 350.1 MB, free: 4.613 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2933/0.3931, allocations: 111.4 MB / 461.5 MB, free: 5.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06449/0.4576, allocations: 21.28 MB / 482.7 MB, free: 15.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02892/0.4866, allocations: 0.5026 MB / 483.2 MB, free: 15.37 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01448/0.5011, allocations: 6.371 MB / 489.6 MB, free: 8.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01008/0.5113, allocations: 3.244 MB / 492.9 MB, free: 5.727 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004927/0.5162, allocations: 1.541 MB / 494.4 MB, free: 4.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02273/0.539, allocations: 17.78 MB / 0.5002 GB, free: 2.375 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01151/0.5505, allocations: 7.885 MB / 0.5079 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007476/0.558, allocations: 3.383 MB / 0.5112 GB, free: 7.02 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008879/0.567, allocations: 5.293 MB / 0.5164 GB, free: 1.711 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002511/0.5695, allocations: 0.5 MB / 0.5168 GB, free: 1.211 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004784/0.5743, allocations: 1.541 MB / 0.5183 GB, free: 15.67 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00594/0.5803, allocations: 4.173 MB / 0.5224 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00872/0.5891, allocations: 4.408 MB / 0.5267 GB, free: 7.051 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2657/0.8548, allocations: 11.23 MB / 0.5377 GB, free: 29.49 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.099e-05/0.8548, allocations: 5.375 kB / 0.5377 GB, free: 29.49 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.125e-06/0.8549, allocations: 0 / 0.5377 GB, free: 29.49 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006195/0.8555, allocations: 0 / 0.5377 GB, free: 29.49 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2489 * Number of variables: 2489 Notification: Performance of Generate backend data structure: time 0.039/0.8945, allocations: 10.04 MB / 0.5475 GB, free: 25.97 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.8946, allocations: 11.89 kB / 0.5475 GB, free: 25.97 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04422/0.9388, allocations: 5.277 MB / 0.5527 GB, free: 25.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02059/0.9594, allocations: 8.054 MB / 0.5605 GB, free: 24.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004416/0.9599, allocations: 447.8 kB / 0.561 GB, free: 24.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003595/0.9635, allocations: 0.6102 MB / 0.5616 GB, free: 24.29 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03786/1.001, allocations: 17.13 MB / 0.5783 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005405/1.002, allocations: 99.66 kB / 0.5784 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003157/1.005, allocations: 280.3 kB / 0.5786 GB, free: 21.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004349/1.01, allocations: 2.862 MB / 0.5814 GB, free: 20.72 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02805/1.038, allocations: 14.03 MB / 0.5951 GB, free: 13.3 MB / 446.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0973/1.135, allocations: 70.01 MB / 0.6635 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02142/1.156, allocations: 8.226 MB / 0.6715 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00661/1.163, allocations: 4.646 MB / 0.6761 GB, free: 9.121 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02549/1.189, allocations: 12.77 MB / 0.6886 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.586e-05/1.189, allocations: 68.55 kB / 0.6886 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=294): time 8.165e-06/1.189, allocations: 2.531 kB / 0.6886 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of matching and sorting (n=360): time 0.3981/1.587, allocations: 52.5 MB / 0.7399 GB, free: 265.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/1.587, allocations: 406.4 kB / 0.7403 GB, free: 264.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01313/1.6, allocations: 7.267 MB / 0.7474 GB, free: 262.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001124/1.601, allocations: 84.55 kB / 0.7475 GB, free: 262.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003344/1.605, allocations: 5.205 MB / 0.7525 GB, free: 259.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001942/1.607, allocations: 1.333 MB / 0.7538 GB, free: 258.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003687/1.61, allocations: 1.915 MB / 0.7557 GB, free: 257.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.758e-05/1.61, allocations: 303.8 kB / 0.756 GB, free: 257.5 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00639/1.617, allocations: 4.713 MB / 0.7606 GB, free: 255.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008904/1.626, allocations: 9.535 MB / 0.7699 GB, free: 247.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.642, allocations: 15.01 MB / 0.7846 GB, free: 236.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001492/1.642, allocations: 48 kB / 0.7846 GB, free: 236.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.03957/1.682, allocations: 20.46 MB / 0.8046 GB, free: 216.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/1.682, allocations: 76 kB / 0.8047 GB, free: 216.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001726/1.682, allocations: 168 kB / 0.8048 GB, free: 216 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01994/1.702, allocations: 7.308 MB / 0.812 GB, free: 208.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006254/1.708, allocations: 1.996 MB / 0.8139 GB, free: 206.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04347/1.752, allocations: 34.32 MB / 0.8474 GB, free: 172 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008731/1.761, allocations: 0.6069 MB / 0.848 GB, free: 171.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002051/1.763, allocations: 0.4961 MB / 0.8485 GB, free: 170.9 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 749 * Number of states: 0 () * Number of discrete variables: 72 (rod3.color[3],rod3.color[2],rod3.color[1],rod1.color[3],rod1.color[2],rod1.color[1],cylinder.boxColor[3],cylinder.boxColor[2],cylinder.boxColor[1],b2.cylinderColor[3],b2.cylinderColor[2],b2.cylinderColor[1],b1.cylinderColor[3],b1.cylinderColor[2],b1.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],mid.color[3],mid.color[2],mid.color[1],crank4.color[3],crank4.color[2],crank4.color[1],crank4.body.sphereColor[3],crank4.body.sphereColor[2],crank4.body.sphereColor[1],crank3.color[3],crank3.color[2],crank3.color[1],crank3.body.sphereColor[3],crank3.body.sphereColor[2],crank3.body.sphereColor[1],crank2.color[3],crank2.color[2],crank2.color[1],crank2.body.sphereColor[3],crank2.body.sphereColor[2],crank2.body.sphereColor[1],crank1.color[3],crank1.color[2],crank1.color[1],crank1.body.sphereColor[3],crank1.body.sphereColor[2],crank1.body.sphereColor[1],bearing.cylinderColor[3],bearing.cylinderColor[2],bearing.cylinderColor[1],connectingRod.color[3],connectingRod.color[2],connectingRod.color[1],connectingRod.body.sphereColor[3],connectingRod.body.sphereColor[2],connectingRod.body.sphereColor[1],piston.color[3],piston.color[2],piston.color[1],piston.body.sphereColor[3],piston.body.sphereColor[2],piston.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1082): * Single equations (assignments): 1076 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,97,55.1%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.007386/1.77, allocations: 3.6 MB / 0.852 GB, free: 167.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002194/1.772, allocations: 0.6517 MB / 0.8527 GB, free: 166.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02932/1.802, allocations: 13.94 MB / 0.8663 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-05/1.802, allocations: 40 kB / 0.8663 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.003e-05/1.802, allocations: 20 kB / 0.8663 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.918e-05/1.802, allocations: 19.88 kB / 0.8664 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05121/1.853, allocations: 27.84 MB / 0.8936 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.372e-05/1.853, allocations: 9.078 kB / 0.8936 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00223/1.856, allocations: 464 kB / 0.894 GB, free: 123.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01947/1.875, allocations: 6.992 MB / 0.9008 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001078/1.876, allocations: 69.06 kB / 0.9009 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04014/1.916, allocations: 33.18 MB / 0.9333 GB, free: 83.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/1.916, allocations: 11.94 kB / 0.9333 GB, free: 83.09 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0347/1.951, allocations: 19.7 MB / 0.9526 GB, free: 63.21 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004364/1.956, allocations: 1.43 MB / 0.9539 GB, free: 61.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002107/1.958, allocations: 68.55 kB / 0.954 GB, free: 61.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004797/1.962, allocations: 323.6 kB / 0.9543 GB, free: 61.37 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001404/1.964, allocations: 254.7 kB / 0.9546 GB, free: 61.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004421/1.964, allocations: 95.83 kB / 0.9547 GB, free: 61.03 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.007406/1.972, allocations: 4.658 MB / 0.9592 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.2e-07/1.972, allocations: 0 / 0.9592 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01025/1.982, allocations: 2.224 MB / 0.9614 GB, free: 54.19 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 2 (inertia.phi,inertia.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 (232): * Single equations (assignments): 226 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(7,90,55.1%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001044/1.983, allocations: 223.9 kB / 0.9616 GB, free: 53.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01794/2.001, allocations: 12 MB / 0.9733 GB, free: 41.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/2.001, allocations: 192 / 0.9733 GB, free: 41.93 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008568/2.01, allocations: 5.283 MB / 0.9785 GB, free: 36.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008226/2.018, allocations: 0.9426 MB / 0.9794 GB, free: 35.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2409/2.259, allocations: 24.76 MB / 1.004 GB, free: 240.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01013/2.269, allocations: 5.66 MB / 1.009 GB, free: 239.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/2.271, allocations: 456.1 kB / 1.01 GB, free: 239.9 MB / 0.5606 GB Notification: Performance of SimCode: time 9.62e-07/2.271, allocations: 3.906 kB / 1.01 GB, free: 239.9 MB / 0.5606 GB Notification: Performance of Templates: time 0.255/2.526, allocations: 214.5 MB / 1.219 GB, free: 49.58 MB / 0.5606 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches