Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_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.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002804/0.002804, allocations: 175.7 kB / 7.45 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.203/1.203, allocations: 170.6 MB / 178.4 MB, free: 15.44 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001712/0.001712, allocations: 111.9 kB / 217.7 MB, free: 8.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.638e-06/9.769e-06, allocations: 4 kB / 261.8 MB, free: 26.57 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08721, allocations: 38.75 MB / 300.5 MB, free: 3.828 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2799/0.3672, allocations: 80.2 MB / 380.7 MB, free: 4.41 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/0.3676, allocations: 80.77 kB / 380.8 MB, free: 4.371 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.2245/0.592, allocations: 79.72 MB / 460.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003141/0.5924, allocations: 76 kB / 460.6 MB, free: 10.28 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01384/0.6063, allocations: 3.899 MB / 464.5 MB, free: 6.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.6063, allocations: 12.03 kB / 464.5 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02585/0.6322, allocations: 6.242 MB / 470.7 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1627/0.795, allocations: 5.876 MB / 476.6 MB, free: 111.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.7952, allocations: 115.4 kB / 476.7 MB, free: 111.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001642/0.7969, allocations: 215.5 kB / 476.9 MB, free: 111.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008843/0.8057, allocations: 5.443 MB / 482.4 MB, free: 111.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/0.8177, allocations: 8.363 MB / 490.7 MB, free: 108.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.8179, allocations: 65.41 kB / 490.8 MB, free: 108.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004279/0.8183, allocations: 23.09 kB / 490.8 MB, free: 108.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001078/0.8194, allocations: 0.959 MB / 491.8 MB, free: 108.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04264/0.8621, allocations: 41.71 MB / 0.521 GB, free: 81.42 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003878/0.866, allocations: 3.236 MB / 0.5242 GB, free: 79.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002362/0.8684, allocations: 2.175 MB / 0.5263 GB, free: 78.82 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009528/0.878, allocations: 6.393 MB / 0.5325 GB, free: 75.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.8781, allocations: 54.72 kB / 0.5326 GB, free: 75.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=154): time 4.488e-06/0.8781, allocations: 0 / 0.5326 GB, free: 75.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=184): time 0.03636/0.9144, allocations: 17.26 MB / 0.5494 GB, free: 62.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.262e-05/0.9145, allocations: 252.4 kB / 0.5497 GB, free: 61.91 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004193/0.9187, allocations: 3.046 MB / 0.5526 GB, free: 59.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002503/0.919, allocations: 29.64 kB / 0.5527 GB, free: 59.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.9201, allocations: 2.6 MB / 0.5552 GB, free: 56.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005626/0.9206, allocations: 0.6835 MB / 0.5559 GB, free: 56.24 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002015/0.9208, allocations: 0 / 0.5559 GB, free: 56.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002504/0.9211, allocations: 0.5443 MB / 0.5564 GB, free: 55.76 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002217/0.9233, allocations: 2.014 MB / 0.5584 GB, free: 53.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003626/0.927, allocations: 5.343 MB / 0.5636 GB, free: 47.28 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003617/0.9306, allocations: 3.288 MB / 0.5668 GB, free: 44.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-05/0.9306, allocations: 32 kB / 0.5668 GB, free: 44.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=730) (initialization): time 0.01219/0.9428, allocations: 7.683 MB / 0.5743 GB, free: 37.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.401e-05/0.9429, allocations: 9.562 kB / 0.5743 GB, free: 37.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000103/0.943, allocations: 120.2 kB / 0.5745 GB, free: 37.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003576/0.9466, allocations: 1.337 MB / 0.5758 GB, free: 36.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004002/0.9506, allocations: 1.243 MB / 0.577 GB, free: 35.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.9607, allocations: 7.503 MB / 0.5843 GB, free: 28.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00497/0.9657, allocations: 185.7 kB / 0.5845 GB, free: 28.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/0.9669, allocations: 339.4 kB / 0.5848 GB, free: 28.5 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * Number of states: 0 () * Number of discrete variables: 27 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (669): * Single equations (assignments): 665 * 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 {(5,72.0%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001417/0.9683, allocations: 400.8 kB / 0.5852 GB, free: 28.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008403/0.9691, allocations: 323.8 kB / 0.5855 GB, free: 27.78 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007311/0.9765, allocations: 3.753 MB / 0.5892 GB, free: 24.77 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.898e-05/0.9765, allocations: 23.47 kB / 0.5892 GB, free: 24.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-05/0.9766, allocations: 4 kB / 0.5892 GB, free: 24.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/0.9766, allocations: 11.69 kB / 0.5892 GB, free: 24.74 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0168/0.9934, allocations: 7.88 MB / 0.5969 GB, free: 17.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-05/0.9935, allocations: 0 / 0.5969 GB, free: 17.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.9949, allocations: 239.7 kB / 0.5971 GB, free: 17.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003375/0.9983, allocations: 1.14 MB / 0.5982 GB, free: 16.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002444/0.9986, allocations: 8 kB / 0.5982 GB, free: 16.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00839/1.007, allocations: 6.773 MB / 0.6049 GB, free: 9.43 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/1.007, allocations: 11.42 kB / 0.6049 GB, free: 9.422 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009374/1.016, allocations: 6.612 MB / 0.6113 GB, free: 2.758 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/1.019, allocations: 0.6412 MB / 0.612 GB, free: 2.094 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008193/1.019, allocations: 4 kB / 0.612 GB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/1.021, allocations: 51.92 kB / 0.612 GB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002182/1.021, allocations: 85.12 kB / 0.6121 GB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001399/1.021, allocations: 44 kB / 0.6121 GB, free: 1.914 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.1495/1.171, allocations: 2.085 MB / 0.6142 GB, free: 99.74 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004838/1.176, allocations: 0.8382 MB / 0.615 GB, free: 99.74 MB / 346.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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.0003616/1.176, allocations: 145 kB / 0.6151 GB, free: 99.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00673/1.183, allocations: 5.052 MB / 0.6201 GB, free: 99.54 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/1.183, allocations: 0 / 0.6201 GB, free: 99.54 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002496/1.185, allocations: 1.826 MB / 0.6218 GB, free: 99.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/1.187, allocations: 374.8 kB / 0.6222 GB, free: 99.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/1.202, allocations: 7.539 MB / 0.6296 GB, free: 98.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003973/1.206, allocations: 3.407 MB / 0.6329 GB, free: 97.3 MB / 346.7 MB Notification: Performance of SimCode: time 1.193e-06/1.206, allocations: 0 / 0.6329 GB, free: 97.3 MB / 346.7 MB Notification: Performance of Templates: time 0.07467/1.281, allocations: 39.22 MB / 0.6712 GB, free: 89.81 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)