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.001445/0.001445, allocations: 112.3 kB / 17.74 MB, free: 5.293 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.001261/0.001261, allocations: 187 kB / 18.67 MB, free: 4.375 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 51.92 kB / 352 MB, free: 3.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2731/0.2743, allocations: 49.44 MB / 401.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.0224/0.2967, allocations: 23.39 MB / 424.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01492/0.3117, allocations: 7.084 MB / 431.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004862/0.3166, allocations: 179.4 kB / 432.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01376/0.3304, allocations: 7.929 MB / 440 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01014/0.3406, allocations: 3.579 MB / 443.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005213/0.3458, allocations: 2.001 MB / 445.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01875/0.3646, allocations: 13.26 MB / 458.9 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01373/0.3784, allocations: 10.46 MB / 469.3 MB, free: 4.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008774/0.3872, allocations: 4.273 MB / 473.6 MB, free: 0.5469 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009179/0.3964, allocations: 5.707 MB / 479.3 MB, free: 10.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003391/0.3999, allocations: 1.004 MB / 480.3 MB, free: 9.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005897/0.4058, allocations: 2.166 MB / 482.5 MB, free: 7.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007265/0.4131, allocations: 5.109 MB / 487.6 MB, free: 2.531 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01118/0.4243, allocations: 5.418 MB / 493 MB, free: 13.09 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02358/0.4479, allocations: 17.25 MB / 0.4983 GB, free: 11.78 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.937e-06/0.448, allocations: 4 kB / 0.4983 GB, free: 11.78 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.448, allocations: 0 / 0.4983 GB, free: 11.78 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005728/0.4486, allocations: 0 / 0.4983 GB, free: 11.78 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.03138/0.4799, allocations: 11.2 MB / 0.5092 GB, free: 488 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.48, allocations: 15.89 kB / 0.5092 GB, free: 472 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04693/0.527, allocations: 5.414 MB / 0.5145 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02352/0.5505, allocations: 9.043 MB / 0.5234 GB, free: 1.887 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005038/0.5511, allocations: 0.5179 MB / 0.5239 GB, free: 1.367 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00329/0.5544, allocations: 0.7298 MB / 0.5246 GB, free: 0.6367 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4663/1.021, allocations: 19.51 MB / 0.5436 GB, free: 116.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006903/1.021, allocations: 93.02 kB / 0.5437 GB, free: 116.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003156/1.025, allocations: 326.9 kB / 0.544 GB, free: 116.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004783/1.029, allocations: 2.825 MB / 0.5468 GB, free: 116 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03251/1.062, allocations: 16.24 MB / 0.5627 GB, free: 108.9 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.0873/1.149, allocations: 74.04 MB / 0.635 GB, free: 34.38 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0215/1.171, allocations: 8.51 MB / 0.6433 GB, free: 25.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005545/1.176, allocations: 4.769 MB / 0.6479 GB, free: 20.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0213/1.198, allocations: 15.4 MB / 0.663 GB, free: 4.992 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.219e-05/1.198, allocations: 68.67 kB / 0.663 GB, free: 4.914 MB / 462.1 MB Notification: Performance of pre-optimization done (n=321): time 8.346e-06/1.198, allocations: 0 / 0.663 GB, free: 4.914 MB / 462.1 MB Notification: Performance of matching and sorting (n=428): time 0.2077/1.406, allocations: 54.64 MB / 0.7164 GB, free: 14.15 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002173/1.406, allocations: 406.8 kB / 0.7168 GB, free: 13.67 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0148/1.421, allocations: 7.563 MB / 0.7242 GB, free: 6.141 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001132/1.422, allocations: 97.7 kB / 0.7243 GB, free: 6.039 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005147/1.427, allocations: 5.593 MB / 0.7297 GB, free: 384 kB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00252/1.43, allocations: 1.561 MB / 0.7312 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005974/1.436, allocations: 2.082 MB / 0.7333 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001141/1.436, allocations: 305.1 kB / 0.7336 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008827/1.445, allocations: 5.217 MB / 0.7387 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2265/1.671, allocations: 10.27 MB / 0.7487 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01835/1.689, allocations: 16.31 MB / 0.7646 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003097/1.69, allocations: 50.44 kB / 0.7647 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.04138/1.731, allocations: 21.26 MB / 0.7854 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001488/1.731, allocations: 78.75 kB / 0.7855 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002063/1.732, allocations: 170.5 kB / 0.7857 GB, free: 157.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0191/1.751, allocations: 6.661 MB / 0.7922 GB, free: 154.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00691/1.758, allocations: 2.156 MB / 0.7943 GB, free: 152.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04209/1.8, allocations: 35.03 MB / 0.8285 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009334/1.809, allocations: 0.6194 MB / 0.8291 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001901/1.811, allocations: 0.5312 MB / 0.8296 GB, free: 117.1 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.007061/1.818, allocations: 4.105 MB / 0.8336 GB, free: 113.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001509/1.82, allocations: 0.6888 MB / 0.8343 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02633/1.846, allocations: 14.32 MB / 0.8483 GB, free: 98.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.773e-05/1.846, allocations: 40 kB / 0.8483 GB, free: 98.37 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.634e-05/1.846, allocations: 24 kB / 0.8483 GB, free: 98.35 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.651e-05/1.846, allocations: 29.17 kB / 0.8484 GB, free: 98.32 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0508/1.897, allocations: 27.91 MB / 0.8756 GB, free: 70.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.525e-05/1.897, allocations: 8.938 kB / 0.8756 GB, free: 70.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/1.9, allocations: 0.585 MB / 0.8762 GB, free: 69.86 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0182/1.918, allocations: 6.345 MB / 0.8824 GB, free: 63.51 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001238/1.92, allocations: 72 kB / 0.8825 GB, free: 63.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04124/1.961, allocations: 31.89 MB / 0.9136 GB, free: 31.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.961, allocations: 16.22 kB / 0.9136 GB, free: 31.58 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03771/1.999, allocations: 20.97 MB / 0.9341 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004933/2.004, allocations: 1.566 MB / 0.9356 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00311/2.007, allocations: 83.88 kB / 0.9357 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005703/2.013, allocations: 335.6 kB / 0.936 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001769/2.014, allocations: 311.2 kB / 0.9363 GB, free: 8.188 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008659/2.015, allocations: 112 kB / 0.9364 GB, free: 8.078 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.2785/2.294, allocations: 4.827 MB / 0.9411 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.062e-06/2.294, allocations: 0 / 0.9411 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0119/2.306, allocations: 2.439 MB / 0.9435 GB, free: 167.2 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.001224/2.307, allocations: 283.8 kB / 0.9438 GB, free: 167.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01902/2.326, allocations: 12.75 MB / 0.9562 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.627e-05/2.326, allocations: 0 / 0.9562 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008004/2.334, allocations: 5.312 MB / 0.9614 GB, free: 162.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008394/2.342, allocations: 1.082 MB / 0.9625 GB, free: 161.9 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04552/2.388, allocations: 23.24 MB / 0.9852 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009209/2.397, allocations: 6.319 MB / 0.9914 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002072/2.399, allocations: 489.7 kB / 0.9918 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of SimCode: time 7.81e-07/2.399, allocations: 0 / 0.9918 GB, free: 144.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.4237/2.823, allocations: 165.3 MB / 1.153 GB, free: 172.5 MB / 0.545 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Loops/Engine1b_analytic/Engine1b_analytic.csv","/var/lib/jenkins1/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