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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [: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.2+maint.om/package.mo): time 0.001366/0.001366, allocations: 189.2 kB / 8.135 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.073/1.073, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001671/0.001672, allocations: 120.2 kB / 247.7 MB, free: 6.262 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.182e-06/6.212e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07145/0.07147, allocations: 44.49 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2058/0.2773, allocations: 85.94 MB / 428 MB, free: 9.383 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.2775, allocations: 86.08 kB / 428.1 MB, free: 9.34 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.2188/0.4963, allocations: 79.77 MB / 0.4959 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002237/0.4966, allocations: 71.94 kB / 0.496 GB, free: 0.6953 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01118/0.5078, allocations: 3.901 MB / 0.4998 GB, free: 12.73 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.5078, allocations: 8.031 kB / 0.4998 GB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02649/0.5343, allocations: 6.242 MB / 0.5059 GB, free: 6.465 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01527/0.5496, allocations: 5.897 MB / 0.5117 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.5498, allocations: 116 kB / 0.5118 GB, free: 404 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001451/0.5513, allocations: 219.8 kB / 0.512 GB, free: 184 kB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1071/0.6584, allocations: 5.434 MB / 0.5173 GB, free: 123.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.6704, allocations: 8.371 MB / 0.5255 GB, free: 121 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/0.6705, allocations: 55.91 kB / 0.5255 GB, free: 121 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004637/0.671, allocations: 29.5 kB / 0.5256 GB, free: 121 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009646/0.672, allocations: 0.9613 MB / 0.5265 GB, free: 121 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03587/0.7079, allocations: 41.73 MB / 0.5673 GB, free: 95.37 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003242/0.7111, allocations: 3.216 MB / 0.5704 GB, free: 93.71 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002059/0.7132, allocations: 2.182 MB / 0.5725 GB, free: 92.79 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008364/0.7216, allocations: 6.392 MB / 0.5788 GB, free: 89.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.7217, allocations: 52.25 kB / 0.5788 GB, free: 89.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=154): time 4.138e-06/0.7217, allocations: 0 / 0.5788 GB, free: 89.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=184): time 0.03666/0.7584, allocations: 17.27 MB / 0.5957 GB, free: 82.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.7585, allocations: 252.9 kB / 0.5959 GB, free: 82.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00485/0.7633, allocations: 3.049 MB / 0.5989 GB, free: 81.24 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003281/0.7637, allocations: 25.7 kB / 0.5989 GB, free: 81.21 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001107/0.7648, allocations: 2.601 MB / 0.6015 GB, free: 79.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006127/0.7654, allocations: 0.6843 MB / 0.6022 GB, free: 78.79 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.7657, allocations: 0 / 0.6022 GB, free: 78.79 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002314/0.7659, allocations: 0.537 MB / 0.6027 GB, free: 78.39 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002454/0.7684, allocations: 2.013 MB / 0.6046 GB, free: 77.69 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003325/0.7717, allocations: 5.344 MB / 0.6099 GB, free: 72.48 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003678/0.7754, allocations: 3.286 MB / 0.6131 GB, free: 71.45 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.105e-05/0.7754, allocations: 33.97 kB / 0.6131 GB, free: 71.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=730) (initialization): time 0.01212/0.7876, allocations: 7.694 MB / 0.6206 GB, free: 65.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.7876, allocations: 4 kB / 0.6206 GB, free: 65.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/0.7877, allocations: 120 kB / 0.6207 GB, free: 65.77 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003808/0.7916, allocations: 1.328 MB / 0.622 GB, free: 64.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003883/0.7955, allocations: 1.254 MB / 0.6233 GB, free: 63.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009759/0.8052, allocations: 7.488 MB / 0.6306 GB, free: 57.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003923/0.8092, allocations: 176.5 kB / 0.6307 GB, free: 56.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004967/0.8097, allocations: 345.1 kB / 0.6311 GB, free: 56.57 MB / 394.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.0006283/0.8103, allocations: 399.2 kB / 0.6314 GB, free: 56.17 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004551/0.8108, allocations: 327.8 kB / 0.6318 GB, free: 55.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007008/0.8178, allocations: 3.761 MB / 0.6354 GB, free: 52.83 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.985e-05/0.8179, allocations: 16 kB / 0.6354 GB, free: 52.82 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.8179, allocations: 8 kB / 0.6355 GB, free: 52.81 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/0.8179, allocations: 11.12 kB / 0.6355 GB, free: 52.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0127/0.8306, allocations: 7.868 MB / 0.6431 GB, free: 46.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.8307, allocations: 7.438 kB / 0.6432 GB, free: 46.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/0.832, allocations: 234.4 kB / 0.6434 GB, free: 46.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003447/0.8355, allocations: 1.156 MB / 0.6445 GB, free: 45.36 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001533/0.8356, allocations: 7.75 kB / 0.6445 GB, free: 45.35 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00836/0.844, allocations: 6.768 MB / 0.6511 GB, free: 39.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.844, allocations: 7.609 kB / 0.6511 GB, free: 39.36 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008684/0.8527, allocations: 6.617 MB / 0.6576 GB, free: 33.55 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.8539, allocations: 0.6422 MB / 0.6582 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005029/0.8544, allocations: 0 / 0.6582 GB, free: 32.94 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.8559, allocations: 53.14 kB / 0.6583 GB, free: 32.91 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002167/0.8561, allocations: 88.16 kB / 0.6584 GB, free: 32.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.8563, allocations: 44 kB / 0.6584 GB, free: 32.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002688/0.8589, allocations: 2.086 MB / 0.6604 GB, free: 31 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004107/0.8631, allocations: 0.8327 MB / 0.6612 GB, free: 30.18 MB / 394.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.0004105/0.8635, allocations: 149.7 kB / 0.6614 GB, free: 30.04 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007025/0.8705, allocations: 5.055 MB / 0.6663 GB, free: 25 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.8706, allocations: 0 / 0.6663 GB, free: 25 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002679/0.8732, allocations: 1.833 MB / 0.6681 GB, free: 23.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001978/0.8752, allocations: 364.5 kB / 0.6685 GB, free: 22.82 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01361/0.8889, allocations: 7.536 MB / 0.6758 GB, free: 15.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003821/0.8927, allocations: 3.415 MB / 0.6792 GB, free: 11.81 MB / 394.7 MB Notification: Performance of SimCode: time 6.01e-07/0.8927, allocations: 0 / 0.6792 GB, free: 11.81 MB / 394.7 MB Notification: Performance of Templates: time 0.1697/1.062, allocations: 39.22 MB / 0.7175 GB, free: 106.3 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (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)