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.00135/0.00135, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 194.8 kB / 16.53 MB, free: 6.699 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.572/1.572, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001517/0.001518, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3043, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.02886/0.3332, allocations: 26.79 MB / 352.1 MB, free: 9.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02032/0.3535, allocations: 7.966 MB / 360.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007382/0.361, allocations: 179.6 kB / 360.2 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02082/0.3819, allocations: 11.08 MB / 371.3 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01295/0.3949, allocations: 3.613 MB / 374.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00638/0.4013, allocations: 2.594 MB / 377.5 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0143/0.4156, allocations: 10.38 MB / 387.9 MB, free: 5.109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0242/0.4399, allocations: 15.82 MB / 403.7 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009772/0.4497, allocations: 5.225 MB / 409 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01156/0.4613, allocations: 6.857 MB / 415.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005332/0.4666, allocations: 1.434 MB / 417.2 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007474/0.4741, allocations: 2.72 MB / 420 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008481/0.4827, allocations: 5.987 MB / 426 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01177/0.4945, allocations: 6.864 MB / 432.8 MB, free: 8.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0249/0.5194, allocations: 22.53 MB / 455.4 MB, free: 1.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.5194, allocations: 4 kB / 455.4 MB, free: 1.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5194, allocations: 0 / 455.4 MB, free: 1.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007909/0.5202, allocations: 0 / 455.4 MB, free: 1.41 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.4489/0.9692, allocations: 13.98 MB / 469.3 MB, free: 98.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.9693, allocations: 7.875 kB / 469.3 MB, free: 98.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0147/0.984, allocations: 3.057 MB / 472.4 MB, free: 97.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01572/0.9997, allocations: 7.055 MB / 479.5 MB, free: 90.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006919/1, allocations: 0.7414 MB / 480.2 MB, free: 89.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005339/1.006, allocations: 1.094 MB / 481.3 MB, free: 88.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07656/1.082, allocations: 33.9 MB / 0.5031 GB, free: 53.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005509/1.083, allocations: 75.28 kB / 0.5032 GB, free: 53.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005575/1.089, allocations: 459.6 kB / 0.5036 GB, free: 52.78 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007052/1.096, allocations: 4.549 MB / 0.5081 GB, free: 48.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06976/1.165, allocations: 31.96 MB / 0.5393 GB, free: 16.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4762/1.642, allocations: 114.2 MB / 0.6508 GB, free: 92.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05215/1.694, allocations: 18.7 MB / 0.6691 GB, free: 89.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01273/1.707, allocations: 10.01 MB / 0.6788 GB, free: 83.99 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04996/1.757, allocations: 32.25 MB / 0.7103 GB, free: 52.18 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.912e-05/1.757, allocations: 86.16 kB / 0.7104 GB, free: 52.09 MB / 446.1 MB Notification: Performance of pre-optimization done (n=512): time 9.387e-06/1.757, allocations: 3.984 kB / 0.7104 GB, free: 52.09 MB / 446.1 MB Notification: Performance of matching and sorting (n=773): time 0.832/2.589, allocations: 165.9 MB / 0.8724 GB, free: 120 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.357e-05/2.589, allocations: 206.2 kB / 0.8726 GB, free: 119.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01095/2.6, allocations: 7.999 MB / 0.8804 GB, free: 111.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002814/2.603, allocations: 149 kB / 0.8806 GB, free: 111.7 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004343/2.607, allocations: 6.915 MB / 0.8873 GB, free: 104.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.005672/2.613, allocations: 2.734 MB / 0.89 GB, free: 102.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009373/2.622, allocations: 3.041 MB / 0.893 GB, free: 99.03 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.002e-05/2.622, allocations: 301.1 kB / 0.8933 GB, free: 98.73 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0153/2.638, allocations: 11.23 MB / 0.9042 GB, free: 87.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02111/2.659, allocations: 17.78 MB / 0.9216 GB, free: 66.66 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03632/2.695, allocations: 30.23 MB / 0.9511 GB, free: 33.31 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002246/2.695, allocations: 60 kB / 0.9512 GB, free: 33.25 MB / 478.1 MB Notification: Performance of matching and sorting (n=1941) (initialization): time 0.3123/3.008, allocations: 29.51 MB / 0.98 GB, free: 152.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000176/3.008, allocations: 103.1 kB / 0.9801 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004733/3.008, allocations: 223.3 kB / 0.9803 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00032/3.009, allocations: 315.1 kB / 0.9806 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02219/3.031, allocations: 4.588 MB / 0.9851 GB, free: 152.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005562/3.032, allocations: 455 kB / 0.9855 GB, free: 152.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01581/3.047, allocations: 1.182 MB / 0.9867 GB, free: 151.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004379/3.052, allocations: 0.7415 MB / 0.9874 GB, free: 151.8 MB / 478.1 MB 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.01212/3.064, allocations: 5.503 MB / 0.9928 GB, free: 147 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0022/3.066, allocations: 0.8023 MB / 0.9935 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02676/3.093, allocations: 21.34 MB / 1.014 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.069e-05/3.093, allocations: 76.66 kB / 1.014 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/3.093, allocations: 4 kB / 1.014 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.846e-05/3.093, allocations: 34.08 kB / 1.015 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07083/3.164, allocations: 45.94 MB / 1.059 GB, free: 82.45 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-05/3.164, allocations: 8 kB / 1.059 GB, free: 82.44 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0151/3.179, allocations: 2.507 MB / 1.062 GB, free: 79.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001178/3.179, allocations: 28 kB / 1.062 GB, free: 79.91 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002299/3.182, allocations: 147.2 kB / 1.062 GB, free: 79.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.191e-05/3.182, allocations: 35.88 kB / 1.062 GB, free: 79.73 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/3.182, allocations: 11.94 kB / 1.062 GB, free: 79.72 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0431/3.225, allocations: 35.75 MB / 1.097 GB, free: 44.19 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007349/3.232, allocations: 2.892 MB / 1.1 GB, free: 41.27 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003757/3.236, allocations: 128 kB / 1.1 GB, free: 41.15 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009753/3.246, allocations: 0.7761 MB / 1.101 GB, free: 40.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003636/3.249, allocations: 420.5 kB / 1.101 GB, free: 39.96 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002339/3.252, allocations: 192 kB / 1.101 GB, free: 39.77 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008811/3.261, allocations: 5.007 MB / 1.106 GB, free: 34.81 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.41e-07/3.261, allocations: 0 / 1.106 GB, free: 34.81 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01712/3.278, allocations: 3.287 MB / 1.109 GB, free: 31.54 MB / 478.1 MB 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.003207/3.281, allocations: 450.5 kB / 1.11 GB, free: 31.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.3428/3.624, allocations: 54.42 MB / 1.163 GB, free: 146.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.136e-05/3.624, allocations: 0 / 1.163 GB, free: 146.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01607/3.64, allocations: 10.65 MB / 1.173 GB, free: 136.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01102/3.651, allocations: 1.003 MB / 1.174 GB, free: 136 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05948/3.711, allocations: 34.39 MB / 1.208 GB, free: 105.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01202/3.723, allocations: 8.107 MB / 1.216 GB, free: 97.34 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01699/3.74, allocations: 5.272 MB / 1.221 GB, free: 92.05 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005952/3.746, allocations: 0.6126 MB / 1.222 GB, free: 91.44 MB / 478.1 MB Notification: Performance of SimCode: time 1.684e-06/3.746, allocations: 0 / 1.222 GB, free: 91.44 MB / 478.1 MB Notification: Performance of Templates: time 0.4931/4.239, allocations: 137.2 MB / 1.355 GB, free: 106.7 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.makefile (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)