Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.005923/0.005923, allocations: 101.1 kB / 15.73 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.001415/0.001415, allocations: 186.7 kB / 16.67 MB, free: 5.922 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.328/1.328, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001249/0.001249, allocations: 55.94 kB / 326.5 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08073/0.08198, allocations: 46.62 MB / 373.2 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.1828/0.2649, allocations: 12.33 MB / 385.5 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008853/0.2738, allocations: 4.439 MB / 389.9 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00269/0.2765, allocations: 79.03 kB / 390 MB, free: 3.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005606/0.2821, allocations: 2.905 MB / 392.9 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005895/0.2881, allocations: 2.031 MB / 394.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002743/0.2908, allocations: 1.044 MB / 396 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008615/0.2995, allocations: 5.326 MB / 401.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007637/0.3071, allocations: 4.057 MB / 405.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004513/0.3117, allocations: 1.768 MB / 407.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004298/0.316, allocations: 2.389 MB / 409.5 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001524/0.3176, allocations: 383.9 kB / 409.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003421/0.321, allocations: 1.257 MB / 411.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003005/0.324, allocations: 2.197 MB / 413.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004248/0.3283, allocations: 2.47 MB / 415.8 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.3385, allocations: 8.039 MB / 423.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.3385, allocations: 0 / 423.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3385, allocations: 0 / 423.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002131/0.3387, allocations: 0 / 423.9 MB, free: 12.68 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.01196/0.3507, allocations: 5.521 MB / 429.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.3507, allocations: 8.031 kB / 429.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02707/0.3778, allocations: 3.22 MB / 432.6 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01053/0.3884, allocations: 3.76 MB / 436.4 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000269/0.3887, allocations: 250.3 kB / 436.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/0.39, allocations: 335.8 kB / 437 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01619/0.4062, allocations: 10.34 MB / 447.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001287/0.4064, allocations: 51.67 kB / 447.3 MB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004175/0.4068, allocations: 151.9 kB / 447.5 MB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003405/0.4102, allocations: 2.029 MB / 449.5 MB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01745/0.4277, allocations: 8.899 MB / 458.4 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04907/0.4768, allocations: 39.72 MB / 498.1 MB, free: 440 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009055/0.4859, allocations: 4.045 MB / 0.4904 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0032/0.4891, allocations: 2.24 MB / 0.4926 GB, free: 9.984 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007578/0.4899, allocations: 0.6594 MB / 0.4932 GB, free: 9.211 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.044e-05/0.49, allocations: 51.56 kB / 0.4933 GB, free: 9.152 MB / 430.1 MB Notification: Performance of pre-optimization done (n=175): time 6.913e-06/0.49, allocations: 3.984 kB / 0.4933 GB, free: 9.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=210): time 0.06121/0.5512, allocations: 23.21 MB / 0.516 GB, free: 1.812 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.5514, allocations: 256.6 kB / 0.5162 GB, free: 1.508 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006103/0.5575, allocations: 4.276 MB / 0.5204 GB, free: 13.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006378/0.5582, allocations: 49.89 kB / 0.5204 GB, free: 13.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002192/0.5604, allocations: 3.325 MB / 0.5237 GB, free: 9.805 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000996/0.5614, allocations: 0.845 MB / 0.5245 GB, free: 8.953 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001675/0.5631, allocations: 1.294 MB / 0.5258 GB, free: 7.648 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.947e-05/0.5632, allocations: 301.1 kB / 0.5261 GB, free: 7.352 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00345/0.5666, allocations: 2.554 MB / 0.5286 GB, free: 4.793 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005541/0.5722, allocations: 6.119 MB / 0.5345 GB, free: 12.91 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01002/0.5822, allocations: 9.3 MB / 0.5436 GB, free: 1.875 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.655e-05/0.5823, allocations: 36 kB / 0.5436 GB, free: 1.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.1996/0.7819, allocations: 10.78 MB / 0.5542 GB, free: 142.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.436e-05/0.7821, allocations: 61.66 kB / 0.5542 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001509/0.7822, allocations: 123.6 kB / 0.5543 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007496/0.7897, allocations: 2.605 MB / 0.5569 GB, free: 142.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004217/0.794, allocations: 1.348 MB / 0.5582 GB, free: 142.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02291/0.8169, allocations: 18.6 MB / 0.5764 GB, free: 132.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004743/0.8217, allocations: 380.4 kB / 0.5767 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005476/0.8223, allocations: 367.5 kB / 0.5771 GB, free: 132.5 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.002706/0.825, allocations: 2.23 MB / 0.5793 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006198/0.8256, allocations: 399.7 kB / 0.5796 GB, free: 131.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00865/0.8343, allocations: 5.153 MB / 0.5847 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.189e-05/0.8343, allocations: 24.75 kB / 0.5847 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.8343, allocations: 8.312 kB / 0.5847 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.082e-05/0.8344, allocations: 9.938 kB / 0.5847 GB, free: 129.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/0.8504, allocations: 11.06 MB / 0.5955 GB, free: 119.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.606e-05/0.8504, allocations: 0 / 0.5955 GB, free: 119.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.8518, allocations: 307.6 kB / 0.5958 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00473/0.8565, allocations: 1.854 MB / 0.5976 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002715/0.8568, allocations: 36 kB / 0.5977 GB, free: 117.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01096/0.8678, allocations: 10.39 MB / 0.6078 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.8678, allocations: 4 kB / 0.6078 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01125/0.8791, allocations: 8.378 MB / 0.616 GB, free: 98.83 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/0.8807, allocations: 0.7893 MB / 0.6168 GB, free: 98.03 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005722/0.8813, allocations: 39.98 kB / 0.6168 GB, free: 97.99 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001716/0.883, allocations: 136.7 kB / 0.6169 GB, free: 97.86 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003927/0.8834, allocations: 125.1 kB / 0.617 GB, free: 97.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/0.8836, allocations: 57.62 kB / 0.6171 GB, free: 97.68 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003097/0.8867, allocations: 2.684 MB / 0.6197 GB, free: 94.99 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8867, allocations: 4 kB / 0.6197 GB, free: 94.98 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004917/0.8916, allocations: 1.21 MB / 0.6209 GB, free: 93.78 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.0004482/0.8921, allocations: 166.9 kB / 0.6211 GB, free: 93.62 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008485/0.9006, allocations: 6.68 MB / 0.6276 GB, free: 86.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.9006, allocations: 0 / 0.6276 GB, free: 86.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002605/0.9033, allocations: 2.241 MB / 0.6298 GB, free: 84.68 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00299/0.9063, allocations: 0.5689 MB / 0.6303 GB, free: 84.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01482/0.9211, allocations: 10.87 MB / 0.641 GB, free: 73.24 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003025/0.9242, allocations: 3.531 MB / 0.6444 GB, free: 69.68 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003717/0.9279, allocations: 1.924 MB / 0.6463 GB, free: 67.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007882/0.9287, allocations: 259.4 kB / 0.6465 GB, free: 67.49 MB / 478.1 MB Notification: Performance of SimCode: time 8.91e-07/0.9287, allocations: 0 / 0.6465 GB, free: 67.49 MB / 478.1 MB Notification: Performance of Templates: time 0.07264/1.001, allocations: 49.79 MB / 0.6951 GB, free: 17.73 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)