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.001305/0.001305, allocations: 114.2 kB / 17.75 MB, free: 5.324 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.001275/0.001275, allocations: 181.4 kB / 18.67 MB, free: 4.41 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.316/1.316, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009623/0.0009623, allocations: 51.86 kB / 352 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2155, allocations: 49.44 MB / 401.5 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.0217/0.2372, allocations: 23.39 MB / 424.8 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01223/0.2495, allocations: 7.088 MB / 431.9 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00276/0.2523, allocations: 175.4 kB / 432.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01289/0.2652, allocations: 7.933 MB / 440 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007039/0.2723, allocations: 3.692 MB / 443.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003444/0.2757, allocations: 2.013 MB / 445.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01481/0.2905, allocations: 13.26 MB / 459 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009889/0.3005, allocations: 10.45 MB / 469.4 MB, free: 4.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004891/0.3054, allocations: 4.269 MB / 473.7 MB, free: 324 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006398/0.3118, allocations: 5.707 MB / 479.4 MB, free: 10.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001507/0.3133, allocations: 1.004 MB / 480.4 MB, free: 9.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003548/0.3168, allocations: 2.17 MB / 482.6 MB, free: 7.418 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004281/0.3211, allocations: 5.117 MB / 487.7 MB, free: 2.289 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005092/0.3262, allocations: 5.41 MB / 493.1 MB, free: 12.85 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01523/0.3415, allocations: 17.26 MB / 0.4984 GB, free: 11.54 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.3415, allocations: 0 / 0.4984 GB, free: 11.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3415, allocations: 0 / 0.4984 GB, free: 11.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002861/0.3418, allocations: 0 / 0.4984 GB, free: 11.54 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.02162/0.3634, allocations: 11.2 MB / 0.5094 GB, free: 248 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.3635, allocations: 11.89 kB / 0.5094 GB, free: 236 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04703/0.4105, allocations: 5.422 MB / 0.5147 GB, free: 10.79 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02118/0.4317, allocations: 9.031 MB / 0.5235 GB, free: 1.664 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/0.4321, allocations: 0.5334 MB / 0.524 GB, free: 1.129 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001497/0.4336, allocations: 0.722 MB / 0.5247 GB, free: 416 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3537/0.7874, allocations: 19.51 MB / 0.5438 GB, free: 116.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002888/0.7877, allocations: 95.31 kB / 0.5439 GB, free: 116.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000836/0.7885, allocations: 330.7 kB / 0.5442 GB, free: 116.3 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003601/0.7921, allocations: 2.821 MB / 0.5469 GB, free: 115.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02616/0.8183, allocations: 16.24 MB / 0.5628 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.06934/0.8877, allocations: 74.03 MB / 0.6351 GB, free: 34.29 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02094/0.9086, allocations: 8.509 MB / 0.6434 GB, free: 25.63 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00468/0.9134, allocations: 4.773 MB / 0.6481 GB, free: 20.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01883/0.9322, allocations: 15.41 MB / 0.6631 GB, free: 4.906 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.457e-05/0.9323, allocations: 72.61 kB / 0.6632 GB, free: 4.824 MB / 462.1 MB Notification: Performance of pre-optimization done (n=321): time 5.931e-06/0.9323, allocations: 0 / 0.6632 GB, free: 4.824 MB / 462.1 MB Notification: Performance of matching and sorting (n=428): time 0.1901/1.122, allocations: 54.63 MB / 0.7165 GB, free: 14.07 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/1.123, allocations: 406.8 kB / 0.7169 GB, free: 13.58 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009015/1.132, allocations: 7.555 MB / 0.7243 GB, free: 6.062 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0005387/1.132, allocations: 93.7 kB / 0.7244 GB, free: 5.965 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.00352/1.136, allocations: 5.601 MB / 0.7298 GB, free: 304 kB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001412/1.137, allocations: 1.553 MB / 0.7314 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002841/1.14, allocations: 2.086 MB / 0.7334 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.532e-05/1.14, allocations: 309.1 kB / 0.7337 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006816/1.147, allocations: 5.217 MB / 0.7388 GB, free: 7.094 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.189/1.336, allocations: 10.27 MB / 0.7488 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01598/1.352, allocations: 16.31 MB / 0.7647 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001554/1.352, allocations: 46.62 kB / 0.7648 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1335) (initialization): time 0.03696/1.389, allocations: 21.25 MB / 0.7855 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001161/1.389, allocations: 79.53 kB / 0.7856 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/1.389, allocations: 171.7 kB / 0.7858 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01803/1.407, allocations: 6.653 MB / 0.7923 GB, free: 154.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006485/1.414, allocations: 2.157 MB / 0.7944 GB, free: 152.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04166/1.456, allocations: 35.03 MB / 0.8286 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007927/1.463, allocations: 0.6198 MB / 0.8292 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000945/1.464, allocations: 0.5374 MB / 0.8297 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.00507/1.47, allocations: 4.102 MB / 0.8337 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001067/1.471, allocations: 0.689 MB / 0.8344 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02612/1.497, allocations: 14.32 MB / 0.8484 GB, free: 98.34 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.358e-05/1.497, allocations: 15.94 kB / 0.8484 GB, free: 98.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.799e-06/1.497, allocations: 3.875 kB / 0.8484 GB, free: 98.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002958/1.5, allocations: 1.571 MB / 0.8499 GB, free: 97.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001119/1.501, allocations: 68 kB / 0.85 GB, free: 97.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003499/1.504, allocations: 311.5 kB / 0.8503 GB, free: 96.71 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008374/1.505, allocations: 370.3 kB / 0.8507 GB, free: 96.35 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02521/1.53, allocations: 13.83 MB / 0.8642 GB, free: 82.58 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01603/1.547, allocations: 14.95 MB / 0.8788 GB, free: 67.55 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004246/1.551, allocations: 4.292 MB / 0.8829 GB, free: 63.25 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006825/1.558, allocations: 4.837 MB / 0.8877 GB, free: 58.46 MB / 0.5294 GB Notification: Performance of Backend: time 3.51e-07/1.558, allocations: 0 / 0.8877 GB, free: 58.46 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01463/1.572, allocations: 9.305 MB / 0.8968 GB, free: 49.23 MB / 0.5294 GB Notification: Performance of SimCode: time 0.0245/1.597, allocations: 19.6 MB / 0.9159 GB, free: 29.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.3317/1.929, allocations: 118.9 MB / 1.032 GB, free: 103.4 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)