Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001112/0.001112, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001239/0.001239, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 57.5 kB / 306.3 MB, free: 1.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08888/0.09001, allocations: 50.54 MB / 356.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2683/0.3583, allocations: 110.6 MB / 467.4 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05029/0.4086, allocations: 20.93 MB / 488.4 MB, free: 7.832 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0207/0.4294, allocations: 0.5026 MB / 488.9 MB, free: 7.328 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01251/0.442, allocations: 6.339 MB / 495.2 MB, free: 0.9727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009385/0.4514, allocations: 3.222 MB / 498.4 MB, free: 13.74 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004049/0.4555, allocations: 1.538 MB / 500 MB, free: 12.21 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02151/0.477, allocations: 18.08 MB / 0.5059 GB, free: 10.09 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01156/0.4886, allocations: 7.869 MB / 0.5136 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006916/0.4956, allocations: 3.379 MB / 0.5169 GB, free: 14.76 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009092/0.5047, allocations: 5.282 MB / 0.5221 GB, free: 9.461 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.5075, allocations: 0.5 MB / 0.5226 GB, free: 8.961 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00493/0.5125, allocations: 1.518 MB / 0.524 GB, free: 7.441 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006196/0.5187, allocations: 4.153 MB / 0.5281 GB, free: 3.277 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.277/0.7958, allocations: 4.386 MB / 0.5324 GB, free: 27.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0201/0.8159, allocations: 13.55 MB / 0.5456 GB, free: 26.86 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.206e-06/0.8159, allocations: 4 kB / 0.5456 GB, free: 26.86 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.816, allocations: 0 / 0.5456 GB, free: 26.86 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005673/0.8165, allocations: 0 / 0.5456 GB, free: 26.86 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: 2488 * Number of variables: 2488 Notification: Performance of Generate backend data structure: time 0.039/0.8555, allocations: 10.01 MB / 0.5554 GB, free: 23.27 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.8556, allocations: 9.969 kB / 0.5554 GB, free: 23.27 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04434/0.8999, allocations: 5.276 MB / 0.5605 GB, free: 22.72 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.021/0.921, allocations: 7.893 MB / 0.5683 GB, free: 21.62 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/0.9214, allocations: 446.2 kB / 0.5687 GB, free: 21.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003117/0.9245, allocations: 0.617 MB / 0.5693 GB, free: 21.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03736/0.9619, allocations: 17.12 MB / 0.586 GB, free: 16.24 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004525/0.9624, allocations: 103.1 kB / 0.5861 GB, free: 16.21 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002721/0.9651, allocations: 277.9 kB / 0.5864 GB, free: 16.21 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005066/0.9702, allocations: 2.862 MB / 0.5892 GB, free: 15.28 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02974/0.9999, allocations: 14.04 MB / 0.6029 GB, free: 4.102 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.1058/1.106, allocations: 69.99 MB / 0.6712 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02139/1.127, allocations: 8.201 MB / 0.6792 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006714/1.134, allocations: 4.638 MB / 0.6838 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02452/1.159, allocations: 12.76 MB / 0.6962 GB, free: 3.047 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.663e-05/1.159, allocations: 74.8 kB / 0.6963 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=293): time 9.267e-06/1.159, allocations: 0 / 0.6963 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of matching and sorting (n=359): time 0.436/1.595, allocations: 52.4 MB / 0.7475 GB, free: 255.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001511/1.595, allocations: 407.4 kB / 0.7479 GB, free: 255.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01367/1.609, allocations: 7.269 MB / 0.7549 GB, free: 252.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001232/1.61, allocations: 79.89 kB / 0.755 GB, free: 252.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003361/1.613, allocations: 5.195 MB / 0.7601 GB, free: 248.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001996/1.615, allocations: 1.327 MB / 0.7614 GB, free: 247.9 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003048/1.618, allocations: 1.915 MB / 0.7633 GB, free: 247 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.169e-05/1.618, allocations: 308.8 kB / 0.7636 GB, free: 246.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006572/1.625, allocations: 4.707 MB / 0.7682 GB, free: 245 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008823/1.634, allocations: 9.535 MB / 0.7775 GB, free: 236.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01729/1.651, allocations: 15.01 MB / 0.7921 GB, free: 221.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001551/1.651, allocations: 48 kB / 0.7922 GB, free: 221 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.04944/1.701, allocations: 20.45 MB / 0.8121 GB, free: 202.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002399/1.701, allocations: 76 kB / 0.8122 GB, free: 202.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000284/1.701, allocations: 167.7 kB / 0.8124 GB, free: 202.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02163/1.723, allocations: 7.334 MB / 0.8195 GB, free: 194.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006999/1.73, allocations: 2 MB / 0.8215 GB, free: 192.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04596/1.776, allocations: 34.3 MB / 0.855 GB, free: 158.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/1.786, allocations: 0.6083 MB / 0.8556 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002764/1.789, allocations: 0.5005 MB / 0.8561 GB, free: 157 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 (1081): * Single equations (assignments): 1075 * 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 {(8,96,51.6%), (3,5,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.01099/1.8, allocations: 3.602 MB / 0.8596 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003277/1.803, allocations: 0.6518 MB / 0.8602 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03324/1.837, allocations: 13.92 MB / 0.8738 GB, free: 138.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.61e-05/1.837, allocations: 36.55 kB / 0.8739 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.509e-05/1.837, allocations: 20 kB / 0.8739 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.762e-05/1.837, allocations: 19.88 kB / 0.8739 GB, free: 138.7 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06837/1.905, allocations: 27.84 MB / 0.9011 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.031e-05/1.905, allocations: 11.94 kB / 0.9011 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002296/1.908, allocations: 464.7 kB / 0.9015 GB, free: 109.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02014/1.928, allocations: 6.998 MB / 0.9084 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001165/1.929, allocations: 60 kB / 0.9084 GB, free: 102.8 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04325/1.972, allocations: 33.18 MB / 0.9408 GB, free: 69.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/1.972, allocations: 7.938 kB / 0.9408 GB, free: 69.24 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05059/2.023, allocations: 19.7 MB / 0.9601 GB, free: 49.36 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003257/2.026, allocations: 0.7112 MB / 0.9608 GB, free: 48.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003993/2.03, allocations: 64.64 kB / 0.9608 GB, free: 48.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006237/2.037, allocations: 315.5 kB / 0.9611 GB, free: 48.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00197/2.039, allocations: 258.7 kB / 0.9614 GB, free: 48 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009745/2.04, allocations: 100.5 kB / 0.9615 GB, free: 47.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.01105/2.051, allocations: 4.642 MB / 0.966 GB, free: 43.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/2.051, allocations: 0 / 0.966 GB, free: 43.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01837/2.069, allocations: 2.208 MB / 0.9682 GB, free: 41.09 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 (231): * Single equations (assignments): 225 * 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.001718/2.071, allocations: 213.3 kB / 0.9684 GB, free: 40.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02183/2.093, allocations: 12.02 MB / 0.9801 GB, free: 28.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.335e-05/2.093, allocations: 4 kB / 0.9801 GB, free: 28.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01016/2.103, allocations: 5.255 MB / 0.9852 GB, free: 23.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01162/2.115, allocations: 0.9549 MB / 0.9862 GB, free: 22.56 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2552/2.37, allocations: 24.23 MB / 1.01 GB, free: 233.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007195/2.377, allocations: 5.727 MB / 1.015 GB, free: 232.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006854/2.384, allocations: 2.693 MB / 1.018 GB, free: 232 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/2.385, allocations: 402.2 kB / 1.018 GB, free: 232 MB / 0.5606 GB Notification: Performance of SimCode: time 1.432e-06/2.385, allocations: 0 / 1.018 GB, free: 232 MB / 0.5606 GB Notification: Performance of Templates: time 0.1438/2.529, allocations: 99.36 MB / 1.115 GB, free: 147 MB / 0.5606 GB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches