Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009971/0.0009972, allocations: 95.22 kB / 16.3 MB, free: 5.996 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.0008698/0.0008698, allocations: 183.9 kB / 17.2 MB, free: 5.914 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.321/1.321, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0004202/0.0004203, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2098, allocations: 47.58 MB / 327.7 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.02968/0.2395, allocations: 32.81 MB / 360.5 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01714/0.2567, allocations: 8.512 MB / 369 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005622/0.2624, allocations: 167.5 kB / 369.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004971/0.2674, allocations: 1.61 MB / 370.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01369/0.2811, allocations: 4.901 MB / 375.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002623/0.2837, allocations: 0.6124 MB / 376.3 MB, free: 2.797 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.03779/0.3216, allocations: 26.26 MB / 402.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005794/0.3274, allocations: 3.486 MB / 406.1 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/0.3295, allocations: 1.043 MB / 407.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002375/0.3319, allocations: 1.406 MB / 408.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007447/0.3326, allocations: 132 kB / 408.6 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002143/0.3348, allocations: 0.8973 MB / 409.5 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001987/0.3368, allocations: 1.535 MB / 411.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.338, allocations: 0.7882 MB / 411.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005622/0.3437, allocations: 5.418 MB / 417.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3437, allocations: 0 / 417.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3437, allocations: 0 / 417.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001128/0.3438, allocations: 0 / 417.3 MB, free: 9.715 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01035/0.3542, allocations: 4.277 MB / 421.6 MB, free: 5.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.3542, allocations: 8.031 kB / 421.6 MB, free: 5.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1683/0.5225, allocations: 14.46 MB / 436 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008438/0.531, allocations: 3.711 MB / 439.7 MB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001457/0.5312, allocations: 201 kB / 439.9 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005713/0.5317, allocations: 263.8 kB / 440.2 MB, free: 2.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01308/0.5448, allocations: 8.808 MB / 449 MB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.545, allocations: 47.59 kB / 449 MB, free: 9.148 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00033/0.5453, allocations: 131.9 kB / 449.2 MB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002952/0.5483, allocations: 1.762 MB / 450.9 MB, free: 7.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1699/0.7181, allocations: 7.61 MB / 458.5 MB, free: 110.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0344/0.7526, allocations: 35.66 MB / 494.2 MB, free: 84.59 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007036/0.7597, allocations: 3.77 MB / 498 MB, free: 81.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003442/0.76, allocations: 333.3 kB / 498.3 MB, free: 81.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.7601, allocations: 58.56 kB / 498.4 MB, free: 81.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.027e-06/0.7601, allocations: 0 / 498.4 MB, free: 81.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04871/0.8088, allocations: 20.88 MB / 0.5071 GB, free: 60.05 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.8089, allocations: 252.6 kB / 0.5073 GB, free: 59.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/0.8134, allocations: 4.205 MB / 0.5114 GB, free: 55.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003899/0.8138, allocations: 53.7 kB / 0.5115 GB, free: 55.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.8152, allocations: 2.824 MB / 0.5142 GB, free: 52.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008784/0.8161, allocations: 0.724 MB / 0.5149 GB, free: 51.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.8163, allocations: 112 kB / 0.515 GB, free: 51.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002261/0.8165, allocations: 0.5373 MB / 0.5156 GB, free: 51.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002599/0.8191, allocations: 2.142 MB / 0.5177 GB, free: 49.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003579/0.8227, allocations: 5.36 MB / 0.5229 GB, free: 42.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003519/0.8262, allocations: 3.332 MB / 0.5261 GB, free: 38.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.619e-05/0.8263, allocations: 40 kB / 0.5262 GB, free: 38.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01218/0.8385, allocations: 8.596 MB / 0.5346 GB, free: 30.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.109e-05/0.8386, allocations: 57 kB / 0.5346 GB, free: 30.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.886e-05/0.8387, allocations: 112 kB / 0.5347 GB, free: 29.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003919/0.8426, allocations: 1.523 MB / 0.5362 GB, free: 28.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003798/0.8464, allocations: 1.228 MB / 0.5374 GB, free: 27.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.857, allocations: 9.488 MB / 0.5467 GB, free: 17.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004187/0.8613, allocations: 315.6 kB / 0.547 GB, free: 17.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/0.8618, allocations: 331.8 kB / 0.5473 GB, free: 16.98 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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 (650): * Single equations (assignments): 646 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002497/0.8643, allocations: 1.936 MB / 0.5492 GB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005015/0.8648, allocations: 363.3 kB / 0.5495 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006706/0.8716, allocations: 4.151 MB / 0.5536 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-05/0.8716, allocations: 20 kB / 0.5536 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.8716, allocations: 12 kB / 0.5536 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.8717, allocations: 7.969 kB / 0.5536 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01419/0.8859, allocations: 9.334 MB / 0.5627 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-05/0.8859, allocations: 7.953 kB / 0.5628 GB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.8872, allocations: 263.9 kB / 0.563 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00369/0.8909, allocations: 1.344 MB / 0.5643 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002269/0.8911, allocations: 32 kB / 0.5643 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01195/0.9031, allocations: 8.629 MB / 0.5728 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.9031, allocations: 0 / 0.5728 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/0.9144, allocations: 7.145 MB / 0.5798 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001969/0.9164, allocations: 0.7111 MB / 0.5804 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005938/0.917, allocations: 31.95 kB / 0.5805 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001621/0.9187, allocations: 123.8 kB / 0.5806 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003134/0.919, allocations: 109.3 kB / 0.5807 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.9191, allocations: 51.67 kB / 0.5807 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003971/0.9231, allocations: 2.705 MB / 0.5834 GB, free: 11.69 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.9231, allocations: 0 / 0.5834 GB, free: 11.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005055/0.9282, allocations: 1.033 MB / 0.5844 GB, free: 10.66 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005388/0.9288, allocations: 196.1 kB / 0.5846 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00816/0.937, allocations: 5.337 MB / 0.5898 GB, free: 5.137 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.937, allocations: 4 kB / 0.5898 GB, free: 5.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003361/0.9404, allocations: 2.065 MB / 0.5918 GB, free: 3.055 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002405/0.9428, allocations: 449.5 kB / 0.5922 GB, free: 2.613 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01848/0.9613, allocations: 10.68 MB / 0.6027 GB, free: 7.887 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003792/0.9652, allocations: 3.173 MB / 0.6058 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004869/0.9701, allocations: 1.837 MB / 0.6076 GB, free: 2.836 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007992/0.9709, allocations: 243.4 kB / 0.6078 GB, free: 2.598 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.9709, allocations: 0 / 0.6078 GB, free: 2.598 MB / 430.1 MB Notification: Performance of Templates: time 0.2471/1.218, allocations: 40.82 MB / 0.6477 GB, free: 121.6 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) Environment - environmentSimulation: