Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [: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.00109/0.00109, allocations: 191.6 kB / 8.135 MB, free: 2.199 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.089/1.089, allocations: 194.2 MB / 202.8 MB, free: 8.676 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.001788/0.001788, allocations: 118.2 kB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.152e-06, allocations: 0 / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06774/0.06776, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1956/0.2634, allocations: 87.28 MB / 429.3 MB, free: 8.035 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002713/0.2637, allocations: 83.05 kB / 429.4 MB, free: 7.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.226/0.4898, allocations: 80.71 MB / 0.4982 GB, free: 14.38 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001743/0.49, allocations: 83.88 kB / 0.4983 GB, free: 14.29 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.008724/0.4987, allocations: 3.732 MB / 0.5019 GB, free: 10.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.4988, allocations: 8.031 kB / 0.5019 GB, free: 10.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/0.5089, allocations: 1.964 MB / 0.5038 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01295/0.5219, allocations: 5.109 MB / 0.5088 GB, free: 3.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.5221, allocations: 132 kB / 0.5089 GB, free: 3.211 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/0.5232, allocations: 239.9 kB / 0.5092 GB, free: 2.977 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1316/0.6548, allocations: 5.947 MB / 0.515 GB, free: 62.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/0.6656, allocations: 9.093 MB / 0.5239 GB, free: 59.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001315/0.6658, allocations: 59.25 kB / 0.5239 GB, free: 59.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005004/0.6663, allocations: 32.75 kB / 0.5239 GB, free: 59.82 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001201/0.6675, allocations: 1.05 MB / 0.525 GB, free: 59.82 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03483/0.7023, allocations: 45.29 MB / 0.5692 GB, free: 30.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.7041, allocations: 1.74 MB / 0.5709 GB, free: 29.39 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009/0.705, allocations: 0.8621 MB / 0.5717 GB, free: 29.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004935/0.71, allocations: 3.713 MB / 0.5754 GB, free: 27.69 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.71, allocations: 49.53 kB / 0.5754 GB, free: 27.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 3.667e-06/0.71, allocations: 0 / 0.5754 GB, free: 27.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=134): time 0.01336/0.7234, allocations: 6.942 MB / 0.5822 GB, free: 24.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.7235, allocations: 145.3 kB / 0.5823 GB, free: 24.77 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003745/0.7272, allocations: 3.023 MB / 0.5853 GB, free: 24.45 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001127/0.7274, allocations: 25.7 kB / 0.5853 GB, free: 24.42 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00123/0.7286, allocations: 2.941 MB / 0.5882 GB, free: 22.55 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003684/0.729, allocations: 0.5318 MB / 0.5887 GB, free: 22.26 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.7292, allocations: 3.469 kB / 0.5887 GB, free: 22.26 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003411/0.7295, allocations: 0.5527 MB / 0.5892 GB, free: 37.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001961/0.7315, allocations: 1.415 MB / 0.5906 GB, free: 37.52 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003154/0.7346, allocations: 5.243 MB / 0.5957 GB, free: 31.83 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003601/0.7383, allocations: 2.747 MB / 0.5984 GB, free: 30.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.281e-05/0.7383, allocations: 39.78 kB / 0.5985 GB, free: 30.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=766) (initialization): time 0.008207/0.7466, allocations: 5.688 MB / 0.604 GB, free: 29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.7466, allocations: 7.844 kB / 0.604 GB, free: 28.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/0.7467, allocations: 139 kB / 0.6042 GB, free: 28.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001449/0.7469, allocations: 201.7 kB / 0.6043 GB, free: 28.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/0.7512, allocations: 1.413 MB / 0.6057 GB, free: 28.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001795/0.7514, allocations: 275.5 kB / 0.606 GB, free: 28.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004303/0.7557, allocations: 241.3 kB / 0.6062 GB, free: 28.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005557/0.7563, allocations: 371.4 kB / 0.6066 GB, free: 28.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 633 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (742): * Single equations (assignments): 739 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006361/0.7569, allocations: 445.2 kB / 0.607 GB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004841/0.7574, allocations: 309.2 kB / 0.6073 GB, free: 28.14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.759, allocations: 1.006 MB / 0.6083 GB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.82e-05/0.7591, allocations: 12 kB / 0.6083 GB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.7591, allocations: 1.031 kB / 0.6083 GB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/0.7591, allocations: 5.703 kB / 0.6083 GB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006839/0.766, allocations: 4.344 MB / 0.6125 GB, free: 25.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-05/0.7661, allocations: 19.41 kB / 0.6126 GB, free: 25.71 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.7672, allocations: 247.8 kB / 0.6128 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-05/0.7672, allocations: 23.78 kB / 0.6128 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.816e-05/0.7673, allocations: 25.88 kB / 0.6128 GB, free: 25.68 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-05/0.7673, allocations: 33.84 kB / 0.6129 GB, free: 25.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.195e-05/0.7673, allocations: 24.41 kB / 0.6129 GB, free: 25.66 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003078/0.7704, allocations: 4.483 MB / 0.6173 GB, free: 21.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008686/0.7713, allocations: 486 kB / 0.6177 GB, free: 21.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003709/0.7717, allocations: 22.25 kB / 0.6178 GB, free: 21.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.7729, allocations: 50.25 kB / 0.6178 GB, free: 21.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.7731, allocations: 120.5 kB / 0.6179 GB, free: 21.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.912e-05/0.7732, allocations: 56.44 kB / 0.618 GB, free: 21.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002509/0.7757, allocations: 2.007 MB / 0.6199 GB, free: 20.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004675/0.7804, allocations: 0.7254 MB / 0.6206 GB, free: 20.88 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 68 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003645/0.7807, allocations: 178.3 kB / 0.6208 GB, free: 20.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004141/0.7849, allocations: 3.265 MB / 0.624 GB, free: 19.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.7849, allocations: 7.125 kB / 0.624 GB, free: 19.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006892/0.7856, allocations: 0.6445 MB / 0.6246 GB, free: 19.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/0.7872, allocations: 328.9 kB / 0.625 GB, free: 19.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.7977, allocations: 6.771 MB / 0.6316 GB, free: 16.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003935/0.8017, allocations: 3.4 MB / 0.6349 GB, free: 14.26 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.8017, allocations: 0 / 0.6349 GB, free: 14.26 MB / 410.7 MB Notification: Performance of Templates: time 0.05598/0.8577, allocations: 25.09 MB / 0.6594 GB, free: 13.73 MB / 426.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)