Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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.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.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/Modelica 3.1.0+maint.om/package.mo): time 0.6137/0.6137, allocations: 110.8 MB / 118 MB, free: 3.445 MB / 98.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001735/0.001735, allocations: 164 kB / 143.7 MB, free: 9.73 MB / 130.8 MB Notification: Performance of FrontEnd - loaded program: time 6.232e-06/6.262e-06, allocations: 0 / 173.5 MB, free: 13.71 MB / 130.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03716/0.03718, allocations: 25.19 MB / 198.6 MB, free: 4.473 MB / 146.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.1628, allocations: 45.58 MB / 244.2 MB, free: 11.74 MB / 178.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.1632, allocations: 74.52 kB / 244.3 MB, free: 11.7 MB / 178.8 MB Notification: Performance of FrontEnd: time 0.5879/0.751, allocations: 153 MB / 397.3 MB, free: 22.2 MB / 226.8 MB Notification: Performance of Transformations before backend: time 0.0002534/0.7513, allocations: 102.6 kB / 397.4 MB, free: 22.2 MB / 226.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1772 * Number of variables: 1772 Notification: Performance of Generate backend data structure: time 0.0245/0.7759, allocations: 6.502 MB / 403.9 MB, free: 21.46 MB / 226.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.7759, allocations: 10.02 kB / 403.9 MB, free: 21.46 MB / 226.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1155/0.8914, allocations: 22.27 MB / 426.2 MB, free: 20.53 MB / 226.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/0.9108, allocations: 7.56 MB / 433.7 MB, free: 19.81 MB / 226.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003166/0.9111, allocations: 172.4 kB / 433.9 MB, free: 19.8 MB / 226.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00422/0.9154, allocations: 286.6 kB / 434.2 MB, free: 19.8 MB / 226.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02773/0.9431, allocations: 14.2 MB / 448.4 MB, free: 19.09 MB / 226.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03433/0.9775, allocations: 15.85 MB / 464.2 MB, free: 6.289 MB / 226.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003477/0.9779, allocations: 56.95 kB / 464.3 MB, free: 6.254 MB / 226.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003625/0.9815, allocations: 16 kB / 464.3 MB, free: 6.238 MB / 226.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.03804/1.02, allocations: 7.164 MB / 471.4 MB, free: 0.6055 MB / 226.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5111/1.531, allocations: 99.17 MB / 0.5572 GB, free: 23.09 MB / 242.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005833/1.537, allocations: 4.978 MB / 0.5621 GB, free: 19.47 MB / 242.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004414/1.541, allocations: 3.565 MB / 0.5656 GB, free: 17.21 MB / 242.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1621/1.703, allocations: 21.52 MB / 0.5866 GB, free: 50.27 MB / 242.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/1.703, allocations: 49.59 kB / 0.5866 GB, free: 50.23 MB / 242.8 MB Notification: Performance of pre-optimization done (n=217): time 5.921e-06/1.703, allocations: 0 / 0.5866 GB, free: 50.23 MB / 242.8 MB Notification: Performance of matching and sorting (n=255): time 0.04186/1.745, allocations: 21.38 MB / 0.6075 GB, free: 47.35 MB / 242.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/1.745, allocations: 253.2 kB / 0.6078 GB, free: 47.07 MB / 242.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00618/1.751, allocations: 3.866 MB / 0.6115 GB, free: 46.68 MB / 242.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008797/1.752, allocations: 25.7 kB / 0.6116 GB, free: 46.65 MB / 242.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001663/1.754, allocations: 3.405 MB / 0.6149 GB, free: 44.46 MB / 242.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001375/1.755, allocations: 0.9308 MB / 0.6158 GB, free: 43.91 MB / 242.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005338/1.756, allocations: 0 / 0.6158 GB, free: 43.91 MB / 242.8 MB Notification: Performance of setup shared object (initialization): time 0.0003164/1.756, allocations: 0.6152 MB / 0.6164 GB, free: 43.59 MB / 242.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004447/1.761, allocations: 3.568 MB / 0.6199 GB, free: 43.58 MB / 242.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006513/1.767, allocations: 7.831 MB / 0.6275 GB, free: 36.87 MB / 242.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005687/1.773, allocations: 4.558 MB / 0.632 GB, free: 35.54 MB / 242.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.275e-05/1.773, allocations: 42.19 kB / 0.632 GB, free: 35.54 MB / 242.8 MB Notification: Performance of matching and sorting (n=964) (initialization): time 0.02012/1.793, allocations: 11.06 MB / 0.6428 GB, free: 32.43 MB / 242.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/1.793, allocations: 3.375 kB / 0.6428 GB, free: 32.43 MB / 242.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000207/1.794, allocations: 151.6 kB / 0.643 GB, free: 32.43 MB / 242.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004508/1.798, allocations: 1.384 MB / 0.6443 GB, free: 32.19 MB / 242.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006571/1.805, allocations: 1.703 MB / 0.646 GB, free: 31.99 MB / 242.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009567/1.814, allocations: 7.398 MB / 0.6532 GB, free: 26 MB / 242.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01313/1.827, allocations: 1.227 MB / 0.6544 GB, free: 25.2 MB / 242.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002327/1.83, allocations: 0.6113 MB / 0.655 GB, free: 24.65 MB / 242.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * 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 (885): * Single equations (assignments): 872 * Array equations: 12 * 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 {(6,69.4%) 32} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001492/1.831, allocations: 478.8 kB / 0.6555 GB, free: 24.18 MB / 242.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/1.832, allocations: 394.3 kB / 0.6558 GB, free: 23.79 MB / 242.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007213/1.84, allocations: 4.382 MB / 0.6601 GB, free: 20.29 MB / 242.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01133/1.851, allocations: 1.901 MB / 0.662 GB, free: 19.14 MB / 242.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.425e-05/1.851, allocations: 8.938 kB / 0.662 GB, free: 19.13 MB / 242.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.904e-05/1.851, allocations: 14.64 kB / 0.662 GB, free: 19.13 MB / 242.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1472/1.998, allocations: 16.23 MB / 0.6778 GB, free: 45.06 MB / 242.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.382e-05/1.998, allocations: 0 / 0.6778 GB, free: 45.06 MB / 242.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002047/2, allocations: 337.8 kB / 0.6782 GB, free: 45.06 MB / 242.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00353/2.004, allocations: 1.142 MB / 0.6793 GB, free: 45.05 MB / 242.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007605/2.005, allocations: 83.42 kB / 0.6794 GB, free: 45.05 MB / 242.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008997/2.014, allocations: 6.699 MB / 0.6859 GB, free: 43.86 MB / 242.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/2.014, allocations: 3.656 kB / 0.6859 GB, free: 43.86 MB / 242.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0163/2.03, allocations: 10.7 MB / 0.6964 GB, free: 43.18 MB / 242.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003166/2.033, allocations: 1.077 MB / 0.6974 GB, free: 43.09 MB / 242.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001313/2.035, allocations: 7.375 kB / 0.6974 GB, free: 43.09 MB / 242.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008259/2.043, allocations: 1.029 MB / 0.6984 GB, free: 43.09 MB / 242.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004516/2.043, allocations: 110.9 kB / 0.6985 GB, free: 43.09 MB / 242.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004503/2.044, allocations: 224.2 kB / 0.6987 GB, free: 43.09 MB / 242.8 MB Notification: Performance of sort global known variables: time 0.004352/2.048, allocations: 2.612 MB / 0.7013 GB, free: 42.91 MB / 242.8 MB Notification: Performance of remove unused functions: time 0.008113/2.056, allocations: 1.167 MB / 0.7024 GB, free: 42.91 MB / 242.8 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 (183): * Single equations (assignments): 170 * Array equations: 12 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007252/2.057, allocations: 147.5 kB / 0.7026 GB, free: 42.82 MB / 242.8 MB Notification: Performance of simCode: created initialization part: time 0.0194/2.076, allocations: 9.103 MB / 0.7115 GB, free: 41.63 MB / 242.8 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/2.077, allocations: 0 / 0.7115 GB, free: 41.63 MB / 242.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01186/2.088, allocations: 3.966 MB / 0.7153 GB, free: 40.55 MB / 242.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003124/2.092, allocations: 410.2 kB / 0.7157 GB, free: 40.37 MB / 242.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02323/2.115, allocations: 10.6 MB / 0.7261 GB, free: 36.87 MB / 242.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01028/2.125, allocations: 4.814 MB / 0.7308 GB, free: 34.05 MB / 242.8 MB Notification: Performance of SimCode: time 1.132e-06/2.125, allocations: 0 / 0.7308 GB, free: 34.05 MB / 242.8 MB Notification: Performance of Templates: time 0.2488/2.374, allocations: 76.76 MB / 0.8057 GB, free: 33.23 MB / 242.8 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)