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.0009279/0.0009279, allocations: 98.89 kB / 16.31 MB, free: 5.996 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.0009672/0.0009674, allocations: 184.8 kB / 17.2 MB, free: 5.91 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.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002422, allocations: 8.594 kB / 300.7 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07928/0.07954, allocations: 50.42 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b): time 0.26/0.3396, allocations: 95.4 MB / 446.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03836/0.378, allocations: 21.43 MB / 468 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.018/0.396, allocations: 0.498 MB / 468.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0141/0.4101, allocations: 4.804 MB / 473.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03623/0.4464, allocations: 13.72 MB / 487 MB, free: 7.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005716/0.4521, allocations: 1.471 MB / 488.5 MB, free: 6.926 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.4077/0.8598, allocations: 142.5 MB / 0.6161 GB, free: 117.1 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01265/0.8725, allocations: 9.235 MB / 0.6252 GB, free: 116.1 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005482/0.8781, allocations: 2.527 MB / 0.6276 GB, free: 114.9 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005486/0.8836, allocations: 3.249 MB / 0.6308 GB, free: 113.2 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001871/0.8855, allocations: 293.2 kB / 0.6311 GB, free: 112.9 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003839/0.8893, allocations: 1.124 MB / 0.6322 GB, free: 112 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003267/0.8926, allocations: 3.526 MB / 0.6356 GB, free: 109.4 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002418/0.8951, allocations: 1.653 MB / 0.6372 GB, free: 108.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009811/0.9049, allocations: 11.6 MB / 0.6486 GB, free: 98.75 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.9049, allocations: 0 / 0.6486 GB, free: 98.75 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.9049, allocations: 0 / 0.6486 GB, free: 98.75 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.0005461/0.9055, allocations: 0 / 0.6486 GB, free: 98.75 MB / 478.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.02157/0.9271, allocations: 9.137 MB / 0.6575 GB, free: 90.34 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.9271, allocations: 8.031 kB / 0.6575 GB, free: 90.33 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2785/1.206, allocations: 29.82 MB / 0.6866 GB, free: 62.41 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01868/1.224, allocations: 8.372 MB / 0.6948 GB, free: 56.37 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003184/1.225, allocations: 447.5 kB / 0.6952 GB, free: 56.12 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001845/1.227, allocations: 0.6167 MB / 0.6958 GB, free: 55.71 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02755/1.254, allocations: 16.99 MB / 0.7124 GB, free: 42.49 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002665/1.254, allocations: 98.53 kB / 0.7125 GB, free: 42.43 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007612/1.255, allocations: 283 kB / 0.7128 GB, free: 42.35 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003682/1.259, allocations: 2.854 MB / 0.7156 GB, free: 40.01 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02536/1.284, allocations: 13.54 MB / 0.7288 GB, free: 27.95 MB / 478.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.4657/1.75, allocations: 68.74 MB / 0.7959 GB, free: 161.4 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02063/1.771, allocations: 8.015 MB / 0.8037 GB, free: 160.7 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01807/1.789, allocations: 12.21 MB / 0.8157 GB, free: 158.9 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.164e-05/1.789, allocations: 66.34 kB / 0.8157 GB, free: 158.8 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=294): time 5.27e-06/1.789, allocations: 3.688 kB / 0.8157 GB, free: 158.8 MB / 0.4982 GB Notification: Performance of matching and sorting (n=360): time 0.1695/1.958, allocations: 51.15 MB / 0.8657 GB, free: 121.1 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/1.959, allocations: 405.1 kB / 0.8661 GB, free: 120.6 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009221/1.968, allocations: 8.012 MB / 0.8739 GB, free: 112.6 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.0008728/1.969, allocations: 81.7 kB / 0.874 GB, free: 112.5 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002657/1.971, allocations: 5.34 MB / 0.8792 GB, free: 107.2 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.973, allocations: 1.314 MB / 0.8805 GB, free: 105.9 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004129/1.973, allocations: 173.2 kB / 0.8806 GB, free: 105.8 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0003029/1.974, allocations: 0.6646 MB / 0.8813 GB, free: 105.1 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00476/1.978, allocations: 4.096 MB / 0.8853 GB, free: 101 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006578/1.985, allocations: 8.786 MB / 0.8939 GB, free: 90.02 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007177/1.992, allocations: 5.834 MB / 0.8996 GB, free: 84.32 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.607e-05/1.992, allocations: 44 kB / 0.8996 GB, free: 84.27 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1107) (initialization): time 0.03401/2.026, allocations: 17.8 MB / 0.917 GB, free: 66.66 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 8.29e-05/2.026, allocations: 72 kB / 0.9171 GB, free: 66.59 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00012/2.026, allocations: 164 kB / 0.9172 GB, free: 66.43 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01745/2.044, allocations: 6.085 MB / 0.9232 GB, free: 60.34 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005932/2.05, allocations: 1.825 MB / 0.9249 GB, free: 58.51 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03781/2.088, allocations: 31.87 MB / 0.9561 GB, free: 26.23 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007821/2.096, allocations: 0.55 MB / 0.9566 GB, free: 25.68 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001371/2.097, allocations: 496.3 kB / 0.9571 GB, free: 25.2 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 743 * 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 (968): * Single equations (assignments): 962 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 97,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.005474/2.102, allocations: 3.58 MB / 0.9606 GB, free: 21.61 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001285/2.104, allocations: 0.6749 MB / 0.9612 GB, free: 20.93 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0228/2.127, allocations: 12.08 MB / 0.973 GB, free: 8.781 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.363e-05/2.127, allocations: 39.72 kB / 0.9731 GB, free: 8.746 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.375e-05/2.127, allocations: 23.95 kB / 0.9731 GB, free: 8.723 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.64e-05/2.127, allocations: 15.94 kB / 0.9731 GB, free: 8.707 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2722/2.399, allocations: 26.06 MB / 0.9986 GB, free: 179.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.412e-05/2.399, allocations: 7.938 kB / 0.9986 GB, free: 179.5 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/2.401, allocations: 464.6 kB / 0.999 GB, free: 179.5 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01655/2.418, allocations: 5.74 MB / 1.005 GB, free: 179.4 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007218/2.419, allocations: 64.62 kB / 1.005 GB, free: 179.4 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03504/2.454, allocations: 30.73 MB / 1.035 GB, free: 162.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/2.454, allocations: 9.5 kB / 1.035 GB, free: 162.2 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02977/2.484, allocations: 18.46 MB / 1.053 GB, free: 143.9 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00466/2.488, allocations: 1.391 MB / 1.054 GB, free: 142.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001901/2.49, allocations: 69.45 kB / 1.054 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004172/2.494, allocations: 279.6 kB / 1.054 GB, free: 142.5 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007899/2.495, allocations: 260.8 kB / 1.055 GB, free: 142.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002706/2.495, allocations: 97.41 kB / 1.055 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.008128/2.504, allocations: 5.261 MB / 1.06 GB, free: 137 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.3e-07/2.504, allocations: 0 / 1.06 GB, free: 137 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01085/2.514, allocations: 2.08 MB / 1.062 GB, free: 134.9 MB / 0.4982 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 90,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001103/2.516, allocations: 233.6 kB / 1.062 GB, free: 134.7 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01744/2.533, allocations: 10.87 MB / 1.073 GB, free: 123.9 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/2.533, allocations: 0 / 1.073 GB, free: 123.9 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007826/2.541, allocations: 4.954 MB / 1.078 GB, free: 118.9 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005745/2.547, allocations: 0.9972 MB / 1.079 GB, free: 117.9 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03478/2.582, allocations: 22.61 MB / 1.101 GB, free: 95.57 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008305/2.59, allocations: 5.896 MB / 1.106 GB, free: 89.66 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.006797/2.597, allocations: 2.737 MB / 1.109 GB, free: 86.96 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001167/2.598, allocations: 415.4 kB / 1.109 GB, free: 86.55 MB / 0.4982 GB Notification: Performance of SimCode: time 1.082e-06/2.598, allocations: 0 / 1.109 GB, free: 86.55 MB / 0.4982 GB Notification: Performance of Templates: time 0.3151/2.913, allocations: 92.32 MB / 1.2 GB, free: 165.5 MB / 0.4982 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","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches