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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009753/0.0009751, allocations: 103.7 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009242/0.0009245, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2007, allocations: 50.46 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.2788/0.4795, allocations: 111.4 MB / 0.5063 GB, free: 248 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04116/0.5207, allocations: 21.3 MB / 0.5271 GB, free: 13.8 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01944/0.5402, allocations: 0.5071 MB / 0.5276 GB, free: 13.8 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01062/0.5509, allocations: 6.338 MB / 0.5338 GB, free: 12.31 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007443/0.5583, allocations: 3.234 MB / 0.537 GB, free: 10.8 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003414/0.5618, allocations: 1.541 MB / 0.5385 GB, free: 9.887 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.01955/0.5813, allocations: 18.16 MB / 0.5562 GB, free: 15.98 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01037/0.5917, allocations: 7.889 MB / 0.5639 GB, free: 8.18 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006519/0.5983, allocations: 3.409 MB / 0.5672 GB, free: 4.906 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007671/0.6059, allocations: 5.296 MB / 0.5724 GB, free: 15.89 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001825/0.6078, allocations: 0.5 MB / 0.5729 GB, free: 15.39 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003805/0.6116, allocations: 1.519 MB / 0.5744 GB, free: 13.92 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004554/0.6162, allocations: 4.171 MB / 0.5785 GB, free: 9.758 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005729/0.6219, allocations: 4.408 MB / 0.5828 GB, free: 5.344 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01335/0.6353, allocations: 13.62 MB / 0.5961 GB, free: 8.031 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.6353, allocations: 0 / 0.5961 GB, free: 8.031 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.6353, allocations: 0 / 0.5961 GB, free: 8.031 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003969/0.6357, allocations: 0 / 0.5961 GB, free: 8.031 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.0208/0.6565, allocations: 10.06 MB / 0.6059 GB, free: 14.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.6566, allocations: 12.03 kB / 0.6059 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04416/0.7008, allocations: 5.266 MB / 0.611 GB, free: 8.734 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02019/0.721, allocations: 7.906 MB / 0.6188 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004775/0.7215, allocations: 452.3 kB / 0.6192 GB, free: 476 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002611/0.7242, allocations: 0.6103 MB / 0.6198 GB, free: 15.9 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/0.7533, allocations: 17.13 MB / 0.6365 GB, free: 13.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002689/0.7536, allocations: 99.17 kB / 0.6366 GB, free: 13.77 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006713/0.7543, allocations: 281.2 kB / 0.6369 GB, free: 13.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004325/0.7586, allocations: 2.853 MB / 0.6397 GB, free: 10.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/0.7861, allocations: 14.04 MB / 0.6534 GB, free: 12.64 MB / 0.4948 GB 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.2885/1.075, allocations: 70.01 MB / 0.7218 GB, free: 196.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01963/1.094, allocations: 8.231 MB / 0.7298 GB, free: 194.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005077/1.099, allocations: 4.636 MB / 0.7343 GB, free: 192.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02021/1.12, allocations: 12.77 MB / 0.7468 GB, free: 186.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/1.12, allocations: 74.86 kB / 0.7469 GB, free: 186 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=294): time 4.308e-06/1.12, allocations: 0 / 0.7469 GB, free: 186 MB / 0.5261 GB Notification: Performance of matching and sorting (n=360): time 0.1767/1.296, allocations: 52.49 MB / 0.7981 GB, free: 137.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/1.297, allocations: 409.7 kB / 0.7985 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009794/1.306, allocations: 7.264 MB / 0.8056 GB, free: 129.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000868/1.307, allocations: 85.7 kB / 0.8057 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002354/1.31, allocations: 5.202 MB / 0.8108 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001292/1.311, allocations: 1.331 MB / 0.8121 GB, free: 122.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002319/1.313, allocations: 1.912 MB / 0.8139 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 4.096e-05/1.313, allocations: 305.1 kB / 0.8142 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005228/1.318, allocations: 4.711 MB / 0.8188 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006773/1.325, allocations: 9.535 MB / 0.8281 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/1.338, allocations: 15.02 MB / 0.8428 GB, free: 86.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.968e-05/1.338, allocations: 48 kB / 0.8429 GB, free: 86.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1221) (initialization): time 0.03468/1.373, allocations: 20.47 MB / 0.8628 GB, free: 66.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.692e-05/1.373, allocations: 76 kB / 0.8629 GB, free: 66.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001125/1.373, allocations: 165.7 kB / 0.8631 GB, free: 65.97 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02062/1.394, allocations: 7.312 MB / 0.8702 GB, free: 58.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006078/1.4, allocations: 2.004 MB / 0.8722 GB, free: 56.63 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03945/1.44, allocations: 34.32 MB / 0.9057 GB, free: 21.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007612/1.447, allocations: 0.5968 MB / 0.9063 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001083/1.448, allocations: 0.5038 MB / 0.9068 GB, free: 20.8 MB / 0.5261 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.004569/1.453, allocations: 3.594 MB / 0.9103 GB, free: 17.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001148/1.454, allocations: 0.6595 MB / 0.9109 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02713/1.481, allocations: 13.95 MB / 0.9245 GB, free: 2.508 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.252e-05/1.481, allocations: 36 kB / 0.9246 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.37e-05/1.481, allocations: 23.94 kB / 0.9246 GB, free: 2.449 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.116e-05/1.481, allocations: 15.94 kB / 0.9246 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2364/1.718, allocations: 27.85 MB / 0.9518 GB, free: 207.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.106e-05/1.718, allocations: 9.812 kB / 0.9518 GB, free: 207.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/1.72, allocations: 467.7 kB / 0.9523 GB, free: 207.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02/1.74, allocations: 6.98 MB / 0.9591 GB, free: 206.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008077/1.741, allocations: 73.62 kB / 0.9591 GB, free: 206.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03789/1.779, allocations: 33.19 MB / 0.9916 GB, free: 177.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/1.779, allocations: 8 kB / 0.9916 GB, free: 177.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5438/2.323, allocations: 185.7 MB / 1.173 GB, free: 186.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004228/2.327, allocations: 1.432 MB / 1.174 GB, free: 186 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001476/2.329, allocations: 66.75 kB / 1.174 GB, free: 185.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004391/2.333, allocations: 319.2 kB / 1.175 GB, free: 185.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001287/2.334, allocations: 258.1 kB / 1.175 GB, free: 185.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003272/2.335, allocations: 96.47 kB / 1.175 GB, free: 185.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.007348/2.342, allocations: 4.65 MB / 1.18 GB, free: 184.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.31e-07/2.342, allocations: 0 / 1.18 GB, free: 184.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01105/2.353, allocations: 3.151 MB / 1.183 GB, free: 184.1 MB / 0.5261 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.000758/2.354, allocations: 211.4 kB / 1.183 GB, free: 184 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01697/2.371, allocations: 12 MB / 1.195 GB, free: 179.4 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/2.371, allocations: 3.906 kB / 1.195 GB, free: 179.4 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008368/2.379, allocations: 5.272 MB / 1.2 GB, free: 176 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006327/2.386, allocations: 0.9681 MB / 1.201 GB, free: 175.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04464/2.43, allocations: 27.88 MB / 1.228 GB, free: 150.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009094/2.439, allocations: 5.881 MB / 1.234 GB, free: 146 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.006821/2.446, allocations: 2.74 MB / 1.236 GB, free: 143.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001238/2.447, allocations: 407.4 kB / 1.237 GB, free: 143 MB / 0.5261 GB Notification: Performance of SimCode: time 1.012e-06/2.447, allocations: 0 / 1.237 GB, free: 143 MB / 0.5261 GB Notification: Performance of Templates: time 0.3743/2.822, allocations: 141.4 MB / 1.375 GB, free: 182.7 MB / 0.5261 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b/Engine1b.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches