Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 113.9 kB / 17.06 MB, free: 6.004 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.001157/0.001158, allocations: 200 kB / 18 MB, free: 5.082 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.31/1.31, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001182/0.001182, allocations: 55.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08571/0.0869, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.1849/0.2719, allocations: 12.33 MB / 386.8 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008907/0.2808, allocations: 4.437 MB / 391.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002365/0.2833, allocations: 83.53 kB / 391.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005054/0.2883, allocations: 2.899 MB / 394.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00552/0.2939, allocations: 2.032 MB / 396.3 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003824/0.2977, allocations: 1.045 MB / 397.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008295/0.306, allocations: 5.327 MB / 402.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005143/0.3112, allocations: 4.057 MB / 406.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003814/0.3151, allocations: 1.776 MB / 408.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004404/0.3195, allocations: 2.399 MB / 410.9 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.3211, allocations: 383.8 kB / 411.2 MB, free: 9.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003122/0.3243, allocations: 1.253 MB / 412.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002687/0.327, allocations: 2.216 MB / 414.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003739/0.3307, allocations: 2.478 MB / 417.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009361/0.3401, allocations: 7.997 MB / 425.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3402, allocations: 0 / 425.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3402, allocations: 0 / 425.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002313/0.3404, allocations: 0 / 425.2 MB, free: 12.7 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: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01203/0.3524, allocations: 5.385 MB / 430.6 MB, free: 7.242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.3525, allocations: 8.031 kB / 430.6 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02897/0.3815, allocations: 3.193 MB / 433.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009598/0.3911, allocations: 3.739 MB / 437.5 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002239/0.3914, allocations: 250.3 kB / 437.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001216/0.3926, allocations: 335.7 kB / 438.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01741/0.41, allocations: 10.34 MB / 448.4 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/0.4102, allocations: 47.58 kB / 448.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004656/0.4107, allocations: 155.9 kB / 448.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003348/0.414, allocations: 2.033 MB / 450.7 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01681/0.4309, allocations: 8.899 MB / 459.6 MB, free: 9.484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0533/0.4842, allocations: 39.63 MB / 499.2 MB, free: 0.7188 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009496/0.4938, allocations: 4.052 MB / 0.4914 GB, free: 12.51 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.4967, allocations: 2.236 MB / 0.4936 GB, free: 10.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007951/0.4975, allocations: 0.6596 MB / 0.4943 GB, free: 9.496 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/0.4976, allocations: 51.56 kB / 0.4943 GB, free: 9.438 MB / 430.1 MB Notification: Performance of pre-optimization done (n=175): time 5.169e-06/0.4976, allocations: 0 / 0.4943 GB, free: 9.438 MB / 430.1 MB Notification: Performance of matching and sorting (n=210): time 0.06146/0.559, allocations: 22.96 MB / 0.5168 GB, free: 2.324 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.5592, allocations: 256.6 kB / 0.517 GB, free: 2.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00637/0.5656, allocations: 4.263 MB / 0.5212 GB, free: 13.74 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005274/0.5662, allocations: 53.89 kB / 0.5212 GB, free: 13.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002343/0.5685, allocations: 3.206 MB / 0.5243 GB, free: 10.43 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001275/0.5698, allocations: 0.806 MB / 0.5251 GB, free: 9.613 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00186/0.5717, allocations: 1.281 MB / 0.5264 GB, free: 8.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.549e-05/0.5718, allocations: 301.1 kB / 0.5267 GB, free: 8.023 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003594/0.5754, allocations: 2.562 MB / 0.5292 GB, free: 5.457 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005948/0.5814, allocations: 6.119 MB / 0.5351 GB, free: 13.58 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/0.5921, allocations: 9.292 MB / 0.5442 GB, free: 2.547 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.919e-05/0.5922, allocations: 36 kB / 0.5443 GB, free: 2.512 MB / 478.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.2117/0.8039, allocations: 10.76 MB / 0.5548 GB, free: 142.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.046e-05/0.8041, allocations: 57.84 kB / 0.5548 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001769/0.8042, allocations: 125.2 kB / 0.5549 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008023/0.8123, allocations: 2.609 MB / 0.5575 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004353/0.8167, allocations: 1.356 MB / 0.5588 GB, free: 142.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02071/0.8374, allocations: 18.59 MB / 0.577 GB, free: 132.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00423/0.8416, allocations: 367.5 kB / 0.5773 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005813/0.8422, allocations: 376.8 kB / 0.5777 GB, free: 132.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (731): * Single equations (assignments): 725 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,34,87.5%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.002565/0.8448, allocations: 2.225 MB / 0.5798 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005432/0.8454, allocations: 375.2 kB / 0.5802 GB, free: 131.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008309/0.8537, allocations: 5.161 MB / 0.5852 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.332e-05/0.8537, allocations: 28.06 kB / 0.5853 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.8537, allocations: 7.875 kB / 0.5853 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.8538, allocations: 10.64 kB / 0.5853 GB, free: 129.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01733/0.8711, allocations: 11.06 MB / 0.5961 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.519e-05/0.8712, allocations: 0 / 0.5961 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001369/0.8725, allocations: 306.6 kB / 0.5964 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004682/0.8772, allocations: 1.858 MB / 0.5982 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002222/0.8775, allocations: 39.91 kB / 0.5982 GB, free: 118.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/0.8884, allocations: 10.39 MB / 0.6084 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.8884, allocations: 4 kB / 0.6084 GB, free: 108 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/0.8998, allocations: 8.34 MB / 0.6165 GB, free: 99.66 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002172/0.902, allocations: 0.771 MB / 0.6173 GB, free: 98.87 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006786/0.9027, allocations: 40.88 kB / 0.6173 GB, free: 98.83 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001808/0.9045, allocations: 139.8 kB / 0.6174 GB, free: 98.69 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003751/0.9049, allocations: 121.1 kB / 0.6176 GB, free: 98.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/0.9051, allocations: 56.64 kB / 0.6176 GB, free: 98.52 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003206/0.9083, allocations: 2.68 MB / 0.6202 GB, free: 95.83 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9083, allocations: 0 / 0.6202 GB, free: 95.83 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005229/0.9135, allocations: 1.212 MB / 0.6214 GB, free: 94.63 MB / 478.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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004011/0.9139, allocations: 176.5 kB / 0.6216 GB, free: 94.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00823/0.9222, allocations: 6.679 MB / 0.6281 GB, free: 87.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.9222, allocations: 0 / 0.6281 GB, free: 87.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002612/0.9248, allocations: 2.245 MB / 0.6303 GB, free: 85.51 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003123/0.928, allocations: 0.566 MB / 0.6308 GB, free: 84.96 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01457/0.9426, allocations: 10.71 MB / 0.6413 GB, free: 74.23 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002747/0.9453, allocations: 3.531 MB / 0.6448 GB, free: 70.67 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003544/0.9489, allocations: 1.92 MB / 0.6466 GB, free: 68.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007045/0.9496, allocations: 263.4 kB / 0.6469 GB, free: 68.49 MB / 478.1 MB Notification: Performance of SimCode: time 2.344e-06/0.9496, allocations: 0 / 0.6469 GB, free: 68.49 MB / 478.1 MB Notification: Performance of Templates: time 0.07209/1.022, allocations: 50.06 MB / 0.6958 GB, free: 18.51 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)