Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.PlanarLoops_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 99.16 kB / 15.05 MB, free: 1.105 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.001229/0.001229, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.572/1.572, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004636/0.0004639, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2788, allocations: 47.59 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.1652/0.4441, allocations: 94.59 MB / 421 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.07552/0.5196, allocations: 22.24 MB / 443.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02135/0.5411, allocations: 478.9 kB / 443.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01693/0.5581, allocations: 4.7 MB / 448.4 MB, free: 9.211 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2924/0.8505, allocations: 12.9 MB / 461.3 MB, free: 4.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009281/0.8598, allocations: 2.056 MB / 463.4 MB, free: 4.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0124/0.8722, allocations: 5.498 MB / 468.9 MB, free: 4.883 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02709/0.8994, allocations: 18.26 MB / 487.2 MB, free: 19.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00785/0.9073, allocations: 2.987 MB / 490.1 MB, free: 19.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008278/0.9156, allocations: 3.899 MB / 494 MB, free: 18.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003525/0.9192, allocations: 465.5 kB / 494.5 MB, free: 18.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006633/0.9258, allocations: 1.533 MB / 496 MB, free: 18.08 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008297/0.9342, allocations: 4.388 MB / 0.4887 GB, free: 17.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006664/0.9409, allocations: 2.307 MB / 0.4909 GB, free: 17.13 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02296/0.9639, allocations: 18.48 MB / 0.509 GB, free: 2.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.9639, allocations: 0 / 0.509 GB, free: 2.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.9639, allocations: 0 / 0.509 GB, free: 2.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0009151/0.9649, allocations: 0 / 0.509 GB, free: 2.645 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.03577/1.001, allocations: 12.28 MB / 0.521 GB, free: 7.488 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/1.001, allocations: 12.03 kB / 0.521 GB, free: 7.477 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01958/1.02, allocations: 3.726 MB / 0.5246 GB, free: 3.859 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02069/1.041, allocations: 7.832 MB / 0.5323 GB, free: 14.59 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0012/1.042, allocations: 0.7427 MB / 0.533 GB, free: 14.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005711/1.048, allocations: 1.103 MB / 0.5341 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08751/1.136, allocations: 34.8 MB / 0.5681 GB, free: 3.375 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006681/1.136, allocations: 87.95 kB / 0.5682 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005013/1.141, allocations: 456.3 kB / 0.5686 GB, free: 3.211 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009274/1.151, allocations: 4.546 MB / 0.573 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07788/1.229, allocations: 32.92 MB / 0.6052 GB, free: 8.895 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5592/1.788, allocations: 114.1 MB / 0.7166 GB, free: 118.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05055/1.838, allocations: 18.69 MB / 0.7348 GB, free: 99.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05381/1.892, allocations: 32.71 MB / 0.7667 GB, free: 66.23 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.886e-05/1.892, allocations: 97.88 kB / 0.7668 GB, free: 66.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=489): time 9.678e-06/1.892, allocations: 3.938 kB / 0.7668 GB, free: 66.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=726): time 0.847/2.739, allocations: 171.6 MB / 0.9345 GB, free: 111.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.519e-05/2.739, allocations: 201.8 kB / 0.9346 GB, free: 111.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01135/2.751, allocations: 8.369 MB / 0.9428 GB, free: 102.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00256/2.753, allocations: 143 kB / 0.943 GB, free: 102.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004179/2.758, allocations: 7.066 MB / 0.9499 GB, free: 95.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004148/2.762, allocations: 2.58 MB / 0.9524 GB, free: 93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002079/2.764, allocations: 289.4 kB / 0.9527 GB, free: 92.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0006904/2.765, allocations: 0.9055 MB / 0.9535 GB, free: 91.81 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01518/2.78, allocations: 10.54 MB / 0.9638 GB, free: 81.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01856/2.798, allocations: 17.08 MB / 0.9805 GB, free: 61.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01868/2.817, allocations: 13.21 MB / 0.9934 GB, free: 47.83 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002258/2.817, allocations: 64 kB / 0.9935 GB, free: 47.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.2822/3.1, allocations: 28.07 MB / 1.021 GB, free: 163.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004094/3.1, allocations: 100.9 kB / 1.021 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00053/3.101, allocations: 230.4 kB / 1.021 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005781/3.101, allocations: 344.9 kB / 1.022 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02274/3.124, allocations: 4.466 MB / 1.026 GB, free: 163.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/3.125, allocations: 460.2 kB / 1.026 GB, free: 163.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01571/3.141, allocations: 1.141 MB / 1.027 GB, free: 163.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004247/3.145, allocations: 0.7375 MB / 1.028 GB, free: 163 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1021 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1835): * Single equations (assignments): 1829 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01401/3.159, allocations: 5.454 MB / 1.033 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003316/3.162, allocations: 0.7966 MB / 1.034 GB, free: 160.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03597/3.198, allocations: 19.92 MB / 1.054 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.393e-05/3.199, allocations: 68 kB / 1.054 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.847e-05/3.199, allocations: 7.234 kB / 1.054 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001376/3.199, allocations: 30.47 kB / 1.054 GB, free: 149.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08423/3.283, allocations: 43.03 MB / 1.096 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.976e-05/3.283, allocations: 4 kB / 1.096 GB, free: 107.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01444/3.297, allocations: 2.409 MB / 1.098 GB, free: 104.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001293/3.298, allocations: 31.98 kB / 1.098 GB, free: 104.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002102/3.3, allocations: 128.9 kB / 1.098 GB, free: 104.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.879e-05/3.3, allocations: 33.14 kB / 1.098 GB, free: 104.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/3.3, allocations: 8 kB / 1.098 GB, free: 104.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04619/3.346, allocations: 34.42 MB / 1.132 GB, free: 70.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008714/3.355, allocations: 2.751 MB / 1.135 GB, free: 67.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005/3.36, allocations: 120 kB / 1.135 GB, free: 67.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009656/3.37, allocations: 0.7371 MB / 1.136 GB, free: 66.56 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002829/3.372, allocations: 392 kB / 1.136 GB, free: 66.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002147/3.375, allocations: 188 kB / 1.136 GB, free: 65.99 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01046/3.385, allocations: 5.295 MB / 1.141 GB, free: 60.71 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.02e-07/3.385, allocations: 0 / 1.141 GB, free: 60.71 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.018/3.403, allocations: 3.182 MB / 1.144 GB, free: 57.55 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.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 (710): * Single equations (assignments): 707 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00321/3.406, allocations: 408.8 kB / 1.145 GB, free: 57.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.03796/3.444, allocations: 23.57 MB / 1.168 GB, free: 33.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/3.444, allocations: 1.859 kB / 1.168 GB, free: 33.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2106/3.655, allocations: 9.978 MB / 1.178 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006104/3.661, allocations: 0.8548 MB / 1.178 GB, free: 171.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05979/3.721, allocations: 37.65 MB / 1.215 GB, free: 153.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/3.735, allocations: 8.266 MB / 1.223 GB, free: 149.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0197/3.755, allocations: 5.066 MB / 1.228 GB, free: 146 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007322/3.762, allocations: 0.6061 MB / 1.229 GB, free: 145.4 MB / 494.1 MB Notification: Performance of SimCode: time 1.543e-06/3.762, allocations: 0 / 1.229 GB, free: 145.4 MB / 494.1 MB Notification: Performance of Templates: time 0.3957/4.158, allocations: 124 MB / 1.35 GB, free: 145.5 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1) Environment - environmentSimulation: