Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.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_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia.phi|inertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 114.9 kB / 17.06 MB, free: 5.926 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.001094/0.001094, allocations: 198.9 kB / 18 MB, free: 5.02 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.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001026/0.001026, allocations: 43.92 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2547, allocations: 49.44 MB / 400.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.02253/0.2772, allocations: 23.39 MB / 424.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.2938, allocations: 7.076 MB / 431.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004461/0.2983, allocations: 179.4 kB / 431.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01378/0.3122, allocations: 7.94 MB / 439.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009087/0.3213, allocations: 3.583 MB / 442.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005/0.3263, allocations: 2.001 MB / 444.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01864/0.345, allocations: 13.26 MB / 458.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01779/0.3628, allocations: 10.45 MB / 468.6 MB, free: 4.711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008305/0.3712, allocations: 4.273 MB / 472.9 MB, free: 436 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009533/0.3807, allocations: 5.707 MB / 478.6 MB, free: 10.7 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003027/0.3838, allocations: 1.004 MB / 479.6 MB, free: 9.699 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00596/0.3898, allocations: 2.174 MB / 481.8 MB, free: 7.523 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006608/0.3964, allocations: 5.109 MB / 486.9 MB, free: 2.402 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01127/0.4077, allocations: 5.422 MB / 492.3 MB, free: 12.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02076/0.4285, allocations: 17.25 MB / 0.4976 GB, free: 11.65 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.4285, allocations: 0 / 0.4976 GB, free: 11.65 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4286, allocations: 3.938 kB / 0.4976 GB, free: 11.65 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000564/0.4291, allocations: 0 / 0.4976 GB, free: 11.65 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2753 * Number of variables: 2753 Notification: Performance of Generate backend data structure: time 0.03029/0.4594, allocations: 11.2 MB / 0.5086 GB, free: 360 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.4595, allocations: 11.89 kB / 0.5086 GB, free: 348 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04965/0.5092, allocations: 5.418 MB / 0.5139 GB, free: 10.9 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02257/0.5318, allocations: 9.047 MB / 0.5227 GB, free: 1.758 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000523/0.5323, allocations: 0.5257 MB / 0.5232 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003043/0.5354, allocations: 0.722 MB / 0.5239 GB, free: 0.5078 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4832/1.019, allocations: 19.51 MB / 0.543 GB, free: 116.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003594/1.019, allocations: 100.9 kB / 0.5431 GB, free: 116.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001184/1.02, allocations: 322.1 kB / 0.5434 GB, free: 116.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00375/1.024, allocations: 2.813 MB / 0.5461 GB, free: 115.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02923/1.053, allocations: 16.25 MB / 0.562 GB, free: 108.7 MB / 462.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.08154/1.135, allocations: 74.04 MB / 0.6343 GB, free: 34.26 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02024/1.155, allocations: 8.507 MB / 0.6426 GB, free: 25.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005908/1.161, allocations: 4.777 MB / 0.6473 GB, free: 20.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02526/1.186, allocations: 15.39 MB / 0.6623 GB, free: 4.879 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.049e-05/1.186, allocations: 72.61 kB / 0.6624 GB, free: 4.797 MB / 462.1 MB Notification: Performance of pre-optimization done (n=321): time 6.052e-06/1.186, allocations: 3.938 kB / 0.6624 GB, free: 4.793 MB / 462.1 MB Notification: Performance of matching and sorting (n=428): time 0.1949/1.381, allocations: 54.63 MB / 0.7157 GB, free: 14.03 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002049/1.382, allocations: 410.8 kB / 0.7161 GB, free: 13.54 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01346/1.395, allocations: 7.559 MB / 0.7235 GB, free: 6.023 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001296/1.396, allocations: 93.7 kB / 0.7236 GB, free: 5.926 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00469/1.401, allocations: 5.593 MB / 0.7291 GB, free: 272 kB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002392/1.403, allocations: 1.553 MB / 0.7306 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003654/1.407, allocations: 2.094 MB / 0.7326 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000108/1.407, allocations: 301.1 kB / 0.7329 GB, free: 12.29 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007291/1.415, allocations: 5.224 MB / 0.738 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2844/1.699, allocations: 10.27 MB / 0.748 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01841/1.717, allocations: 16.31 MB / 0.764 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003074/1.718, allocations: 46.97 kB / 0.764 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.0406/1.758, allocations: 21.26 MB / 0.7848 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/1.759, allocations: 78.75 kB / 0.7848 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/1.759, allocations: 170.5 kB / 0.785 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01962/1.778, allocations: 6.653 MB / 0.7915 GB, free: 154.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007267/1.786, allocations: 2.154 MB / 0.7936 GB, free: 152.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04296/1.829, allocations: 35.03 MB / 0.8278 GB, free: 118.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008995/1.838, allocations: 0.6217 MB / 0.8284 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001685/1.839, allocations: 0.5347 MB / 0.8289 GB, free: 117 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 73 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1178): * Single equations (assignments): 1173 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,129,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006742/1.846, allocations: 4.088 MB / 0.8329 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.848, allocations: 0.6985 MB / 0.8336 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02567/1.873, allocations: 14.32 MB / 0.8476 GB, free: 98.28 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.804e-05/1.873, allocations: 44 kB / 0.8476 GB, free: 98.24 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.691e-05/1.873, allocations: 28 kB / 0.8477 GB, free: 98.21 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.174e-05/1.874, allocations: 23.86 kB / 0.8477 GB, free: 98.19 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04726/1.921, allocations: 27.91 MB / 0.8749 GB, free: 70.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.616e-05/1.921, allocations: 8 kB / 0.8749 GB, free: 70.31 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002793/1.924, allocations: 0.585 MB / 0.8755 GB, free: 69.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01812/1.942, allocations: 6.347 MB / 0.8817 GB, free: 63.37 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009995/1.943, allocations: 80 kB / 0.8818 GB, free: 63.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03773/1.981, allocations: 31.9 MB / 0.9129 GB, free: 31.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/1.981, allocations: 11.94 kB / 0.913 GB, free: 31.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03375/2.014, allocations: 20.97 MB / 0.9334 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005316/2.02, allocations: 1.57 MB / 0.935 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001942/2.022, allocations: 79.94 kB / 0.935 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004132/2.026, allocations: 331.5 kB / 0.9354 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001032/2.027, allocations: 295.3 kB / 0.9356 GB, free: 8.059 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003336/2.027, allocations: 112 kB / 0.9357 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2535/2.281, allocations: 4.837 MB / 0.9405 GB, free: 167 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.71e-07/2.281, allocations: 0 / 0.9405 GB, free: 167 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01255/2.293, allocations: 2.437 MB / 0.9428 GB, free: 167 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (296): * Single equations (assignments): 292 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,116,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008212/2.294, allocations: 288.2 kB / 0.9431 GB, free: 167 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0168/2.311, allocations: 12.75 MB / 0.9556 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.235e-05/2.311, allocations: 3.938 kB / 0.9556 GB, free: 164.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00716/2.318, allocations: 5.317 MB / 0.9608 GB, free: 162.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006698/2.325, allocations: 1.074 MB / 0.9618 GB, free: 161.6 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0369/2.362, allocations: 22.49 MB / 0.9838 GB, free: 150.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006487/2.368, allocations: 6.378 MB / 0.99 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00598/2.374, allocations: 2.958 MB / 0.9929 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001269/2.376, allocations: 435.4 kB / 0.9933 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of SimCode: time 9.02e-07/2.376, allocations: 0 / 0.9933 GB, free: 143.2 MB / 0.5294 GB Notification: Performance of Templates: time 0.1518/2.528, allocations: 108.6 MB / 1.099 GB, free: 37.03 MB / 0.5294 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches