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.001581/0.001581, allocations: 99.7 kB / 16.5 MB, free: 6.645 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.0017/0.0017, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.394/1.394, allocations: 222.9 MB / 241.1 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001118, allocations: 45.62 kB / 300 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08661, allocations: 49.45 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2485/0.3352, allocations: 111.4 MB / 460.8 MB, free: 5.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04748/0.3827, allocations: 21.28 MB / 482.1 MB, free: 15.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02428/0.407, allocations: 0.5026 MB / 482.6 MB, free: 15.45 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01143/0.4185, allocations: 6.364 MB / 489 MB, free: 9.066 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008163/0.4267, allocations: 3.255 MB / 492.2 MB, free: 5.801 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003845/0.4306, allocations: 1.539 MB / 493.8 MB, free: 4.262 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02116/0.4517, allocations: 17.78 MB / 0.4995 GB, free: 2.453 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01046/0.4622, allocations: 7.886 MB / 0.5072 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006182/0.4685, allocations: 3.383 MB / 0.5105 GB, free: 7.105 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007418/0.4759, allocations: 5.293 MB / 0.5157 GB, free: 1.797 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002311/0.4783, allocations: 0.5 MB / 0.5162 GB, free: 1.297 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004413/0.4827, allocations: 1.545 MB / 0.5177 GB, free: 15.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00549/0.4882, allocations: 4.169 MB / 0.5218 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00744/0.4957, allocations: 4.416 MB / 0.5261 GB, free: 7.129 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2318/0.7275, allocations: 13.61 MB / 0.5394 GB, free: 30.38 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.7276, allocations: 2.188 kB / 0.5394 GB, free: 30.38 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.7276, allocations: 1.094 kB / 0.5394 GB, free: 30.38 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005043/0.7281, allocations: 0 / 0.5394 GB, free: 30.38 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.03003/0.7581, allocations: 10.04 MB / 0.5492 GB, free: 26.76 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.7582, allocations: 8.906 kB / 0.5492 GB, free: 26.76 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04409/0.8023, allocations: 5.278 MB / 0.5544 GB, free: 26.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02002/0.8223, allocations: 8.053 MB / 0.5622 GB, free: 25.11 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003866/0.8228, allocations: 451.1 kB / 0.5626 GB, free: 25.1 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003396/0.8262, allocations: 0.6092 MB / 0.5632 GB, free: 25.08 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03949/0.8657, allocations: 17.13 MB / 0.58 GB, free: 21.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004369/0.8662, allocations: 105 kB / 0.5801 GB, free: 21.6 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002182/0.8683, allocations: 279 kB / 0.5803 GB, free: 21.6 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003993/0.8723, allocations: 2.859 MB / 0.5831 GB, free: 21.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02968/0.902, allocations: 14.04 MB / 0.5968 GB, free: 13.15 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.09734/0.9994, allocations: 70 MB / 0.6652 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02116/1.021, allocations: 8.243 MB / 0.6733 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006933/1.028, allocations: 4.63 MB / 0.6778 GB, free: 8.984 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02385/1.051, allocations: 12.77 MB / 0.6902 GB, free: 12.11 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.647e-05/1.052, allocations: 73.77 kB / 0.6903 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=294): time 6.823e-06/1.052, allocations: 0 / 0.6903 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of matching and sorting (n=360): time 0.4002/1.452, allocations: 52.5 MB / 0.7416 GB, free: 264.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001294/1.452, allocations: 403.3 kB / 0.742 GB, free: 264.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01143/1.463, allocations: 7.271 MB / 0.7491 GB, free: 262.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001151/1.465, allocations: 82.8 kB / 0.7491 GB, free: 262.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003367/1.468, allocations: 5.209 MB / 0.7542 GB, free: 259.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001923/1.47, allocations: 1.328 MB / 0.7555 GB, free: 258.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003282/1.473, allocations: 1.917 MB / 0.7574 GB, free: 257.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/1.473, allocations: 305.1 kB / 0.7577 GB, free: 257.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008389/1.482, allocations: 4.712 MB / 0.7623 GB, free: 255.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01567/1.497, allocations: 9.534 MB / 0.7716 GB, free: 247.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02614/1.524, allocations: 15.01 MB / 0.7863 GB, free: 235.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003136/1.524, allocations: 48 kB / 0.7863 GB, free: 235.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.06767/1.592, allocations: 20.47 MB / 0.8063 GB, free: 216 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003211/1.592, allocations: 74.03 kB / 0.8064 GB, free: 215.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004304/1.593, allocations: 164 kB / 0.8065 GB, free: 215.7 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03243/1.625, allocations: 7.304 MB / 0.8137 GB, free: 208.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006367/1.631, allocations: 2.008 MB / 0.8156 GB, free: 206.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04349/1.675, allocations: 34.32 MB / 0.8491 GB, free: 171.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009558/1.684, allocations: 0.5929 MB / 0.8497 GB, free: 171.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002202/1.687, allocations: 0.5039 MB / 0.8502 GB, free: 170.6 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.007848/1.695, allocations: 3.593 MB / 0.8537 GB, free: 167 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001985/1.697, allocations: 0.662 MB / 0.8544 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02943/1.726, allocations: 13.95 MB / 0.868 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.037e-05/1.726, allocations: 36 kB / 0.868 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.784e-05/1.726, allocations: 20 kB / 0.868 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.759e-05/1.726, allocations: 19.88 kB / 0.8681 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05757/1.784, allocations: 27.85 MB / 0.8952 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.805e-05/1.784, allocations: 12.62 kB / 0.8953 GB, free: 123.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002572/1.787, allocations: 467.3 kB / 0.8957 GB, free: 123.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01961/1.806, allocations: 6.984 MB / 0.9025 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001372/1.808, allocations: 67.36 kB / 0.9026 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04369/1.851, allocations: 33.18 MB / 0.935 GB, free: 82.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/1.851, allocations: 12.03 kB / 0.935 GB, free: 82.79 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03625/1.888, allocations: 19.71 MB / 0.9543 GB, free: 62.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004652/1.892, allocations: 1.426 MB / 0.9556 GB, free: 61.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002877/1.895, allocations: 60 kB / 0.9557 GB, free: 61.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005408/1.901, allocations: 323.5 kB / 0.956 GB, free: 61.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001761/1.902, allocations: 264.3 kB / 0.9563 GB, free: 60.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008407/1.903, allocations: 99.98 kB / 0.9564 GB, free: 60.72 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.009028/1.912, allocations: 4.646 MB / 0.9609 GB, free: 56.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.31e-07/1.912, allocations: 4 kB / 0.9609 GB, free: 56.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01272/1.925, allocations: 2.224 MB / 0.9631 GB, free: 53.88 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.001377/1.926, allocations: 225.5 kB / 0.9633 GB, free: 53.66 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02072/1.947, allocations: 11.99 MB / 0.975 GB, free: 41.64 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.415e-05/1.947, allocations: 4 kB / 0.975 GB, free: 41.63 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009331/1.957, allocations: 5.279 MB / 0.9802 GB, free: 36.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009579/1.966, allocations: 0.946 MB / 0.9811 GB, free: 35.37 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2623/2.229, allocations: 24.24 MB / 1.005 GB, free: 240.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01427/2.243, allocations: 5.737 MB / 1.01 GB, free: 239.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.008543/2.251, allocations: 2.691 MB / 1.013 GB, free: 239.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002001/2.253, allocations: 402.6 kB / 1.013 GB, free: 239.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.022e-06/2.253, allocations: 0 / 1.013 GB, free: 239.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.1489/2.402, allocations: 99.38 MB / 1.11 GB, free: 161.4 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","/var/lib/jenkins/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