Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [: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.001137/0.001137, allocations: 196.1 kB / 8.138 MB, free: 2.195 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.143/1.143, allocations: 194.2 MB / 202.8 MB, free: 8.754 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.001839/0.001839, allocations: 118.3 kB / 247.7 MB, free: 6.262 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.214e-06/7.244e-06, allocations: 3.938 kB / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07164/0.07167, allocations: 44.49 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.2706, allocations: 84.31 MB / 426.4 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.2709, allocations: 83.59 kB / 426.4 MB, free: 10.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1506/0.4215, allocations: 54.71 MB / 481.2 MB, free: 11.58 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.751e-05/0.4216, allocations: 48 kB / 481.2 MB, free: 11.53 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.01075/0.4324, allocations: 2.782 MB / 484 MB, free: 8.688 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.4324, allocations: 8.031 kB / 484 MB, free: 8.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008852/0.4413, allocations: 1.627 MB / 485.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.4518, allocations: 3.623 MB / 489.2 MB, free: 3.371 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001462/0.452, allocations: 76 kB / 489.3 MB, free: 3.297 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/0.4531, allocations: 147.9 kB / 489.5 MB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007459/0.4606, allocations: 4.132 MB / 493.6 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.4716, allocations: 6.302 MB / 499.9 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/0.4717, allocations: 43.56 kB / 499.9 MB, free: 7.938 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006948/0.4724, allocations: 24 kB / 500 MB, free: 7.914 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001147/0.4736, allocations: 0.7498 MB / 0.489 GB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1327/0.6064, allocations: 31.65 MB / 0.5199 GB, free: 118.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002059/0.6085, allocations: 2.043 MB / 0.5219 GB, free: 117.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001201/0.6097, allocations: 1.132 MB / 0.523 GB, free: 117.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006275/0.616, allocations: 4.179 MB / 0.5271 GB, free: 116.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/0.616, allocations: 41.28 kB / 0.5271 GB, free: 116.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 4.238e-06/0.616, allocations: 0 / 0.5271 GB, free: 116.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.0203/0.6363, allocations: 8.928 MB / 0.5358 GB, free: 114.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.6364, allocations: 141.2 kB / 0.536 GB, free: 114.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002693/0.6391, allocations: 2.144 MB / 0.5381 GB, free: 114.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.6393, allocations: 25.7 kB / 0.5381 GB, free: 114 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007537/0.64, allocations: 2.016 MB / 0.54 GB, free: 112.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/0.6404, allocations: 483.6 kB / 0.5405 GB, free: 112.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.6405, allocations: 0 / 0.5405 GB, free: 112.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.6408, allocations: 0.5505 MB / 0.541 GB, free: 112.2 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/0.6426, allocations: 1.564 MB / 0.5426 GB, free: 112.2 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002711/0.6453, allocations: 4.416 MB / 0.5469 GB, free: 108.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003753/0.6491, allocations: 2.829 MB / 0.5496 GB, free: 108.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.525e-05/0.6492, allocations: 29.69 kB / 0.5497 GB, free: 108.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.01358/0.6628, allocations: 6.566 MB / 0.5561 GB, free: 107 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.6628, allocations: 8.656 kB / 0.5561 GB, free: 107 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007087/0.6699, allocations: 2.62 MB / 0.5587 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005707/0.6756, allocations: 1.418 MB / 0.56 GB, free: 106.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003486/0.6792, allocations: 1.021 MB / 0.561 GB, free: 106.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.6902, allocations: 7.438 MB / 0.5683 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004384/0.6946, allocations: 233.5 kB / 0.5685 GB, free: 102.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009163/0.6955, allocations: 292.3 kB / 0.5688 GB, free: 102.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (552): * Single equations (assignments): 544 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001205/0.6968, allocations: 358 kB / 0.5691 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005618/0.6973, allocations: 216.5 kB / 0.5694 GB, free: 101.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007623/0.705, allocations: 2.87 MB / 0.5722 GB, free: 100.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006559/0.7116, allocations: 2.554 MB / 0.5746 GB, free: 100.2 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.915e-05/0.7116, allocations: 9.391 kB / 0.5747 GB, free: 100.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.058e-05/0.7116, allocations: 3.844 kB / 0.5747 GB, free: 100.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01517/0.7268, allocations: 6.164 MB / 0.5807 GB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.7269, allocations: 0 / 0.5807 GB, free: 98.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009574/0.7278, allocations: 154.4 kB / 0.5808 GB, free: 98.13 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005322/0.7332, allocations: 1.35 MB / 0.5821 GB, free: 97.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002229/0.7334, allocations: 24.77 kB / 0.5822 GB, free: 97.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/0.7449, allocations: 7.732 MB / 0.5897 GB, free: 92.02 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006977/0.7457, allocations: 1.353 MB / 0.591 GB, free: 90.58 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00917/0.7549, allocations: 4.979 MB / 0.5959 GB, free: 86.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006213/0.7555, allocations: 280.6 kB / 0.5962 GB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005422/0.7561, allocations: 11 kB / 0.5962 GB, free: 86.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001524/0.7576, allocations: 68.69 kB / 0.5962 GB, free: 86.08 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/0.7578, allocations: 58.17 kB / 0.5963 GB, free: 86.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001357/0.758, allocations: 42.7 kB / 0.5963 GB, free: 86.01 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002462/0.7604, allocations: 1.42 MB / 0.5977 GB, free: 84.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004144/0.7646, allocations: 0.6797 MB / 0.5984 GB, free: 84.08 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 69 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004769/0.7651, allocations: 165.3 kB / 0.5986 GB, free: 83.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006919/0.772, allocations: 4.135 MB / 0.6026 GB, free: 80.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.772, allocations: 0 / 0.6026 GB, free: 80.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003151/0.7752, allocations: 1.618 MB / 0.6042 GB, free: 78.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.7765, allocations: 180.2 kB / 0.6043 GB, free: 78.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01085/0.7874, allocations: 5.474 MB / 0.6097 GB, free: 73.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00324/0.7906, allocations: 2.499 MB / 0.6121 GB, free: 71.26 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7907, allocations: 0 / 0.6121 GB, free: 71.26 MB / 394.7 MB Notification: Performance of Templates: time 0.04731/0.838, allocations: 27.69 MB / 0.6392 GB, free: 44.25 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)