Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001072/0.001072, allocations: 190.3 kB / 8.137 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.17/1.17, allocations: 194.2 MB / 202.8 MB, free: 8.77 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001836/0.001836, allocations: 124 kB / 247.7 MB, free: 6.227 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.36e-06/5.44e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06812/0.06814, allocations: 44.48 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2087/0.2769, allocations: 100.9 MB / 443 MB, free: 10.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002065/0.2771, allocations: 85.11 kB / 443.1 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.6709/0.948, allocations: 225.4 MB / 0.6528 GB, free: 14.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004899/0.9485, allocations: 231.9 kB / 0.653 GB, free: 14.75 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.03613/0.9847, allocations: 12.17 MB / 0.6649 GB, free: 2.512 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.9847, allocations: 8.031 kB / 0.6649 GB, free: 2.504 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1434/1.128, allocations: 3.469 MB / 0.6683 GB, free: 74.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02857/1.157, allocations: 12.14 MB / 0.6801 GB, free: 73.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004039/1.157, allocations: 388.3 kB / 0.6805 GB, free: 73.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003609/1.161, allocations: 0.6987 MB / 0.6812 GB, free: 73.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03148/1.192, allocations: 22.01 MB / 0.7027 GB, free: 73.57 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04243/1.235, allocations: 26.9 MB / 0.7289 GB, free: 68.78 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003485/1.235, allocations: 94.59 kB / 0.729 GB, free: 68.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002036/1.237, allocations: 52.56 kB / 0.7291 GB, free: 68.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002839/1.24, allocations: 2.729 MB / 0.7317 GB, free: 68.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2639/1.504, allocations: 119.3 MB / 0.8482 GB, free: 36.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01221/1.516, allocations: 10.3 MB / 0.8583 GB, free: 35.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009784/1.526, allocations: 9.149 MB / 0.8672 GB, free: 35.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04098/1.567, allocations: 32.72 MB / 0.8991 GB, free: 26.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/1.567, allocations: 84.16 kB / 0.8992 GB, free: 26.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=483): time 8.235e-06/1.567, allocations: 0 / 0.8992 GB, free: 26.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=708): time 0.4313/1.998, allocations: 108.6 MB / 1.005 GB, free: 91.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.891e-05/1.999, allocations: 204.7 kB / 1.005 GB, free: 91.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00861/2.007, allocations: 6.181 MB / 1.011 GB, free: 91.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001592/2.009, allocations: 25.7 kB / 1.012 GB, free: 91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002826/2.012, allocations: 6.638 MB / 1.018 GB, free: 86.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002863/2.015, allocations: 2.433 MB / 1.02 GB, free: 85.35 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0012/2.016, allocations: 0 / 1.02 GB, free: 85.35 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000611/2.016, allocations: 0.9112 MB / 1.021 GB, free: 85.02 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01286/2.029, allocations: 9.964 MB / 1.031 GB, free: 84.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01619/2.045, allocations: 16.79 MB / 1.047 GB, free: 76.34 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01789/2.063, allocations: 12.99 MB / 1.06 GB, free: 76.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001805/2.064, allocations: 67.94 kB / 1.06 GB, free: 76.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=1887) (initialization): time 0.03985/2.103, allocations: 26.23 MB / 1.086 GB, free: 67.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/2.103, allocations: 7.844 kB / 1.086 GB, free: 67.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003651/2.104, allocations: 237.8 kB / 1.086 GB, free: 67.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/2.104, allocations: 367.5 kB / 1.086 GB, free: 67.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02058/2.125, allocations: 3.934 MB / 1.09 GB, free: 66.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004143/2.125, allocations: 486.1 kB / 1.091 GB, free: 66.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0138/2.139, allocations: 0.6922 MB / 1.091 GB, free: 66.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00295/2.142, allocations: 0.7691 MB / 1.092 GB, free: 66.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1086 * Number of states: 0 () * Number of discrete variables: 99 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1857): * Single equations (assignments): 1851 * 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.003668/2.146, allocations: 0.7609 MB / 1.093 GB, free: 65.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001972/2.148, allocations: 0.7435 MB / 1.094 GB, free: 65.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02581/2.173, allocations: 19.18 MB / 1.112 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001082/2.174, allocations: 66.19 kB / 1.112 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.359e-05/2.174, allocations: 3.234 kB / 1.112 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.139e-05/2.174, allocations: 35.52 kB / 1.112 GB, free: 57.09 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1857/2.359, allocations: 39.25 MB / 1.151 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/2.359, allocations: 0 / 1.151 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0133/2.373, allocations: 1.77 MB / 1.152 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.733e-05/2.373, allocations: 24.44 kB / 1.152 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008397/2.374, allocations: 12.11 kB / 1.152 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.368e-05/2.374, allocations: 29.2 kB / 1.152 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/2.374, allocations: 0 / 1.152 GB, free: 87.91 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03814/2.412, allocations: 33.06 MB / 1.185 GB, free: 85.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006385/2.418, allocations: 2.632 MB / 1.187 GB, free: 84.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002462/2.421, allocations: 6.766 kB / 1.187 GB, free: 84.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007475/2.428, allocations: 415.4 kB / 1.188 GB, free: 84.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001389/2.43, allocations: 318.8 kB / 1.188 GB, free: 84.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008662/2.431, allocations: 170.7 kB / 1.188 GB, free: 84.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.006272/2.437, allocations: 4.14 MB / 1.192 GB, free: 83.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01305/2.45, allocations: 2.745 MB / 1.195 GB, free: 83.12 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (692): * Single equations (assignments): 689 * 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.001557/2.451, allocations: 299.1 kB / 1.195 GB, free: 83.03 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02893/2.48, allocations: 22.65 MB / 1.217 GB, free: 74.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/2.48, allocations: 4 kB / 1.217 GB, free: 74.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01178/2.492, allocations: 9.773 MB / 1.227 GB, free: 70 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004154/2.496, allocations: 0.6243 MB / 1.227 GB, free: 69.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05627/2.553, allocations: 28.77 MB / 1.256 GB, free: 48.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01796/2.571, allocations: 8.973 MB / 1.264 GB, free: 41.46 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/2.571, allocations: 0 / 1.264 GB, free: 41.46 MB / 442.7 MB Notification: Performance of Templates: time 0.4927/3.063, allocations: 153.7 MB / 1.414 GB, free: 79.18 MB / 442.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1)