Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005273/0.005273, allocations: 101.2 kB / 15.73 MB, free: 6.422 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.001178/0.001178, allocations: 188.8 kB / 16.67 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.469/1.469, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001188/0.001189, allocations: 54.52 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.02591/0.1291, allocations: 26.8 MB / 400 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02137/0.1505, allocations: 7.961 MB / 407.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006598/0.1572, allocations: 179.6 kB / 408.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02032/0.1775, allocations: 11.09 MB / 419.2 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01161/0.1892, allocations: 3.613 MB / 422.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006877/0.1961, allocations: 2.59 MB / 425.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01743/0.2136, allocations: 10.36 MB / 435.8 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02455/0.2381, allocations: 15.79 MB / 451.6 MB, free: 2.598 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.309/0.5472, allocations: 5.235 MB / 456.8 MB, free: 17.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01741/0.5647, allocations: 6.804 MB / 463.6 MB, free: 17.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009758/0.5745, allocations: 1.436 MB / 465 MB, free: 17.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01395/0.5885, allocations: 2.729 MB / 467.8 MB, free: 17.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01274/0.6013, allocations: 5.982 MB / 473.7 MB, free: 16.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01947/0.6208, allocations: 6.861 MB / 480.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0359/0.6567, allocations: 23.01 MB / 0.4918 GB, free: 1.207 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.327e-06/0.6568, allocations: 3.438 kB / 0.4918 GB, free: 1.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.6568, allocations: 0 / 0.4918 GB, free: 1.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001077/0.6579, allocations: 3.719 kB / 0.4918 GB, free: 1.207 MB / 382.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.05239/0.7103, allocations: 13.99 MB / 0.5055 GB, free: 7.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.7104, allocations: 8.031 kB / 0.5055 GB, free: 7.543 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01873/0.7291, allocations: 3.081 MB / 0.5085 GB, free: 4.449 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02071/0.7498, allocations: 7.174 MB / 0.5155 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008771/0.7508, allocations: 0.7468 MB / 0.5162 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006999/0.7578, allocations: 1.101 MB / 0.5173 GB, free: 11.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09779/0.8556, allocations: 33.88 MB / 0.5504 GB, free: 9.109 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000563/0.8562, allocations: 89.17 kB / 0.5505 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0051/0.8614, allocations: 455.3 kB / 0.5509 GB, free: 8.691 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008764/0.8701, allocations: 4.551 MB / 0.5554 GB, free: 4.199 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07715/0.9473, allocations: 31.96 MB / 0.5866 GB, free: 4.602 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4904/1.438, allocations: 113.6 MB / 0.6975 GB, free: 80.89 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05262/1.49, allocations: 18.71 MB / 0.7158 GB, free: 79.55 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01326/1.504, allocations: 10.02 MB / 0.7255 GB, free: 74.95 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05068/1.555, allocations: 32.24 MB / 0.757 GB, free: 52.21 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.952e-05/1.555, allocations: 89.72 kB / 0.7571 GB, free: 52.12 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=512): time 8.986e-06/1.555, allocations: 4 kB / 0.7571 GB, free: 52.11 MB / 0.5137 GB Notification: Performance of matching and sorting (n=773): time 0.8994/2.454, allocations: 165.9 MB / 0.9191 GB, free: 161.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.165e-05/2.454, allocations: 212.4 kB / 0.9193 GB, free: 160.9 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/2.465, allocations: 8.001 MB / 0.9271 GB, free: 152.9 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.002735/2.468, allocations: 149.7 kB / 0.9272 GB, free: 152.8 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004112/2.472, allocations: 6.925 MB / 0.934 GB, free: 145.8 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.004609/2.476, allocations: 2.729 MB / 0.9367 GB, free: 143.1 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006193/2.483, allocations: 3.035 MB / 0.9396 GB, free: 140.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.648e-05/2.483, allocations: 312.9 kB / 0.9399 GB, free: 139.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01431/2.497, allocations: 11.22 MB / 0.9509 GB, free: 128.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02051/2.518, allocations: 17.78 MB / 0.9682 GB, free: 107.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.038/2.556, allocations: 30.23 MB / 0.9978 GB, free: 74.39 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002249/2.556, allocations: 64 kB / 0.9978 GB, free: 74.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=1941) (initialization): time 0.0597/2.616, allocations: 29.51 MB / 1.027 GB, free: 44.78 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001832/2.616, allocations: 100 kB / 1.027 GB, free: 44.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000338/2.616, allocations: 220 kB / 1.027 GB, free: 44.47 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003313/2.617, allocations: 316.1 kB / 1.027 GB, free: 44.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02524/2.642, allocations: 4.585 MB / 1.032 GB, free: 39.57 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003765/2.642, allocations: 458.3 kB / 1.032 GB, free: 39.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01546/2.658, allocations: 1.176 MB / 1.033 GB, free: 37.94 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3129/2.971, allocations: 0.744 MB / 1.034 GB, free: 185.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1004 * 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],jointRRR3.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR1.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 (1905): * Single equations (assignments): 1896 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01884/2.99, allocations: 5.506 MB / 1.039 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003096/2.993, allocations: 0.8002 MB / 1.04 GB, free: 185.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03666/3.029, allocations: 21.35 MB / 1.061 GB, free: 175.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-05/3.029, allocations: 75.34 kB / 1.061 GB, free: 175.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-05/3.029, allocations: 1.031 kB / 1.061 GB, free: 175.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002028/3.03, allocations: 42.16 kB / 1.061 GB, free: 175.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08036/3.11, allocations: 45.29 MB / 1.105 GB, free: 154.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-05/3.11, allocations: 8 kB / 1.105 GB, free: 154.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01569/3.126, allocations: 2.51 MB / 1.108 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/3.126, allocations: 32 kB / 1.108 GB, free: 152.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00252/3.129, allocations: 143.8 kB / 1.108 GB, free: 152.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-05/3.129, allocations: 35.94 kB / 1.108 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/3.129, allocations: 8 kB / 1.108 GB, free: 152.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04726/3.176, allocations: 35.78 MB / 1.143 GB, free: 117 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009738/3.186, allocations: 2.898 MB / 1.146 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00363/3.189, allocations: 133.6 kB / 1.146 GB, free: 114.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009295/3.199, allocations: 0.7761 MB / 1.147 GB, free: 113.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002413/3.201, allocations: 423.8 kB / 1.147 GB, free: 113.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009147/3.202, allocations: 192 kB / 1.147 GB, free: 112.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007697/3.21, allocations: 4.999 MB / 1.152 GB, free: 108 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.71e-07/3.21, allocations: 0 / 1.152 GB, free: 108 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01644/3.226, allocations: 3.293 MB / 1.155 GB, free: 104.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (757): * Single equations (assignments): 754 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003249/3.229, allocations: 432.4 kB / 1.156 GB, free: 104.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03793/3.267, allocations: 25.08 MB / 1.18 GB, free: 79.31 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/3.267, allocations: 2 kB / 1.18 GB, free: 79.31 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01504/3.282, allocations: 10.67 MB / 1.191 GB, free: 68.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00975/3.292, allocations: 1.017 MB / 1.192 GB, free: 67.65 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07415/3.366, allocations: 34.1 MB / 1.225 GB, free: 33.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3334/3.7, allocations: 8.1 MB / 1.233 GB, free: 181.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.02905/3.729, allocations: 5.269 MB / 1.238 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009654/3.739, allocations: 0.6158 MB / 1.239 GB, free: 181.7 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/3.739, allocations: 0 / 1.239 GB, free: 181.7 MB / 0.545 GB Notification: Performance of Templates: time 0.187/3.926, allocations: 128.6 MB / 1.364 GB, free: 83 MB / 0.545 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.pipe 2>&1)