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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 186.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009458, allocations: 101.8 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007612/0.0007613, allocations: 43.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2374, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.09276/0.3302, allocations: 111.4 MB / 0.4989 GB, free: 1.543 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.2884/0.6186, allocations: 21.27 MB / 0.5197 GB, free: 14.89 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02627/0.6451, allocations: 0.5029 MB / 0.5202 GB, free: 14.89 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01148/0.6566, allocations: 6.371 MB / 0.5264 GB, free: 13.43 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009113/0.6657, allocations: 3.25 MB / 0.5296 GB, free: 12.74 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004531/0.6703, allocations: 1.541 MB / 0.5311 GB, free: 11.85 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.02613/0.6964, allocations: 17.83 MB / 0.5485 GB, free: 3.719 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01243/0.7089, allocations: 7.886 MB / 0.5562 GB, free: 11.93 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007474/0.7164, allocations: 3.399 MB / 0.5595 GB, free: 8.809 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008708/0.7252, allocations: 5.293 MB / 0.5647 GB, free: 3.797 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002472/0.7277, allocations: 0.5 MB / 0.5652 GB, free: 3.297 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005834/0.7335, allocations: 1.541 MB / 0.5667 GB, free: 1.801 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00733/0.7409, allocations: 4.175 MB / 0.5708 GB, free: 13.64 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009943/0.7509, allocations: 4.407 MB / 0.5751 GB, free: 9.223 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0165/0.7674, allocations: 13.63 MB / 0.5884 GB, free: 11.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.7675, allocations: 4 kB / 0.5884 GB, free: 11.89 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.7675, allocations: 0 / 0.5884 GB, free: 11.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005292/0.768, allocations: 0 / 0.5884 GB, free: 11.89 MB / 442.7 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.0302/0.7982, allocations: 10.02 MB / 0.5982 GB, free: 1.934 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.921e-05/0.7983, allocations: 15.97 kB / 0.5982 GB, free: 1.918 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04765/0.846, allocations: 5.277 MB / 0.6033 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02434/0.8704, allocations: 8.056 MB / 0.6112 GB, free: 4.605 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005194/0.871, allocations: 446.9 kB / 0.6116 GB, free: 4.219 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003083/0.874, allocations: 0.6125 MB / 0.6122 GB, free: 3.656 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04089/0.9149, allocations: 17.13 MB / 0.6289 GB, free: 1.617 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000542/0.9156, allocations: 103.1 kB / 0.629 GB, free: 1.516 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001417/0.917, allocations: 277.8 kB / 0.6293 GB, free: 1.293 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004717/0.9217, allocations: 2.854 MB / 0.6321 GB, free: 14.45 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03048/0.9522, allocations: 14.04 MB / 0.6458 GB, free: 404 kB / 490.7 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.5533/1.506, allocations: 70 MB / 0.7142 GB, free: 200 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02838/1.534, allocations: 8.241 MB / 0.7222 GB, free: 198.9 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007587/1.542, allocations: 4.629 MB / 0.7267 GB, free: 196.9 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02573/1.567, allocations: 12.77 MB / 0.7392 GB, free: 190.2 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.855e-05/1.568, allocations: 66.56 kB / 0.7393 GB, free: 190.1 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=294): time 9.699e-06/1.568, allocations: 3.562 kB / 0.7393 GB, free: 190.1 MB / 0.5262 GB Notification: Performance of matching and sorting (n=360): time 0.1898/1.757, allocations: 52.5 MB / 0.7905 GB, free: 140.4 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000237/1.758, allocations: 405.7 kB / 0.7909 GB, free: 139.9 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/1.77, allocations: 7.264 MB / 0.798 GB, free: 132.7 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001107/1.771, allocations: 85.7 kB / 0.7981 GB, free: 132.6 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002812/1.774, allocations: 5.206 MB / 0.8032 GB, free: 127.4 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.001906/1.776, allocations: 1.335 MB / 0.8045 GB, free: 126.1 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002755/1.778, allocations: 1.908 MB / 0.8064 GB, free: 124.2 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 5.953e-05/1.778, allocations: 305.1 kB / 0.8067 GB, free: 123.9 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005474/1.784, allocations: 4.711 MB / 0.8113 GB, free: 119.1 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008698/1.793, allocations: 9.539 MB / 0.8206 GB, free: 107.3 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01614/1.809, allocations: 15.01 MB / 0.8352 GB, free: 90.04 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/1.809, allocations: 48 kB / 0.8353 GB, free: 90 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.04371/1.853, allocations: 20.47 MB / 0.8553 GB, free: 69.48 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002163/1.853, allocations: 78.97 kB / 0.8553 GB, free: 69.41 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002556/1.853, allocations: 164.9 kB / 0.8555 GB, free: 69.25 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02226/1.876, allocations: 7.315 MB / 0.8626 GB, free: 61.91 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007142/1.883, allocations: 2 MB / 0.8646 GB, free: 59.91 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04153/1.924, allocations: 34.32 MB / 0.8981 GB, free: 25.18 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01007/1.934, allocations: 0.6007 MB / 0.8987 GB, free: 24.58 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001871/1.936, allocations: 0.5 MB / 0.8992 GB, free: 24.08 MB / 0.5262 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.006693/1.943, allocations: 3.597 MB / 0.9027 GB, free: 20.46 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001691/1.945, allocations: 0.6556 MB / 0.9033 GB, free: 19.8 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02817/1.973, allocations: 13.94 MB / 0.9169 GB, free: 5.789 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.863e-05/1.973, allocations: 39.94 kB / 0.917 GB, free: 5.75 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.25e-05/1.973, allocations: 20 kB / 0.917 GB, free: 5.73 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001011/1.973, allocations: 15.94 kB / 0.917 GB, free: 5.715 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.314/2.287, allocations: 27.86 MB / 0.9442 GB, free: 212.4 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.583e-05/2.287, allocations: 9.094 kB / 0.9442 GB, free: 212.4 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002348/2.29, allocations: 465 kB / 0.9447 GB, free: 212.4 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02064/2.31, allocations: 6.985 MB / 0.9515 GB, free: 211.2 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009437/2.311, allocations: 63.3 kB / 0.9516 GB, free: 211.2 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03989/2.351, allocations: 33.2 MB / 0.984 GB, free: 182.8 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/2.351, allocations: 4 kB / 0.984 GB, free: 182.8 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5875/2.939, allocations: 185.7 MB / 1.165 GB, free: 192.3 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004638/2.943, allocations: 1.426 MB / 1.167 GB, free: 191.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001641/2.945, allocations: 62.28 kB / 1.167 GB, free: 191.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004311/2.949, allocations: 324.1 kB / 1.167 GB, free: 191.7 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009595/2.95, allocations: 259.8 kB / 1.167 GB, free: 191.7 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003139/2.951, allocations: 93.41 kB / 1.167 GB, free: 191.7 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.006066/2.957, allocations: 4.653 MB / 1.172 GB, free: 190.2 MB / 0.5262 GB Notification: Performance of sort global known variables: time 2.6e-07/2.957, allocations: 0 / 1.172 GB, free: 190.2 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01022/2.967, allocations: 3.146 MB / 1.175 GB, free: 189.9 MB / 0.5262 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.0006682/2.968, allocations: 224.2 kB / 1.175 GB, free: 189.8 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.01798/2.986, allocations: 12 MB / 1.187 GB, free: 185.3 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.508e-05/2.986, allocations: 0 / 1.187 GB, free: 185.3 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.009597/2.995, allocations: 5.277 MB / 1.192 GB, free: 183 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00744/3.003, allocations: 0.9541 MB / 1.193 GB, free: 182.2 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04516/3.048, allocations: 27.89 MB / 1.22 GB, free: 157.4 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00902/3.057, allocations: 5.878 MB / 1.226 GB, free: 153 MB / 0.5262 GB Notification: Performance of simCode: alias equations: time 0.007282/3.064, allocations: 2.738 MB / 1.229 GB, free: 151.3 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001772/3.066, allocations: 414 kB / 1.229 GB, free: 150.9 MB / 0.5262 GB Notification: Performance of SimCode: time 8.71e-07/3.066, allocations: 0 / 1.229 GB, free: 150.9 MB / 0.5262 GB Notification: Performance of Templates: time 0.4454/3.512, allocations: 141.4 MB / 1.367 GB, free: 181.2 MB / 0.5262 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches