Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.8439/0.8439, allocations: 110.8 MB / 118 MB, free: 14.52 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001662/0.001662, allocations: 160 kB / 143.7 MB, free: 4.848 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.951e-06, allocations: 0 / 173.5 MB, free: 23.01 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03825/0.03828, allocations: 25.17 MB / 198.6 MB, free: 13.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.1664, allocations: 44.39 MB / 243 MB, free: 3.68 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.1667, allocations: 75.42 kB / 243.1 MB, free: 3.668 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.4175/0.5842, allocations: 119.4 MB / 362.5 MB, free: 53.79 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001502/0.5844, allocations: 69.5 kB / 362.6 MB, free: 53.78 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1374 * Number of variables: 1374 Notification: Performance of Generate backend data structure: time 0.02189/0.6063, allocations: 5.15 MB / 367.7 MB, free: 50.14 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.6064, allocations: 12.03 kB / 367.7 MB, free: 50.13 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09241/0.6988, allocations: 16.11 MB / 383.8 MB, free: 34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.7123, allocations: 5.143 MB / 389 MB, free: 28.83 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.7126, allocations: 124 kB / 389.1 MB, free: 28.71 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002786/0.7154, allocations: 215.9 kB / 389.3 MB, free: 28.5 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0169/0.7323, allocations: 12.13 MB / 401.4 MB, free: 16.36 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02369/0.756, allocations: 13.11 MB / 414.5 MB, free: 2.836 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002384/0.7563, allocations: 19.88 kB / 414.6 MB, free: 2.816 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002925/0.7592, allocations: 15.91 kB / 414.6 MB, free: 2.801 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1051/0.8643, allocations: 6.379 MB / 421 MB, free: 64.73 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3507/1.215, allocations: 85.16 MB / 0.4943 GB, free: 19.04 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003995/1.219, allocations: 3.76 MB / 0.4979 GB, free: 15.09 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002676/1.222, allocations: 2.538 MB / 0.5004 GB, free: 12.53 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1724/1.394, allocations: 19.77 MB / 0.5197 GB, free: 61.24 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/1.394, allocations: 54.81 kB / 0.5198 GB, free: 61.2 MB / 234.7 MB Notification: Performance of pre-optimization done (n=180): time 5.56e-06/1.394, allocations: 2.969 kB / 0.5198 GB, free: 61.2 MB / 234.7 MB Notification: Performance of matching and sorting (n=193): time 0.02447/1.419, allocations: 12.49 MB / 0.532 GB, free: 59.24 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.673e-05/1.419, allocations: 147.6 kB / 0.5321 GB, free: 59.08 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003603/1.423, allocations: 2.815 MB / 0.5349 GB, free: 58.77 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005886/1.423, allocations: 25.7 kB / 0.5349 GB, free: 58.74 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/1.424, allocations: 2.681 MB / 0.5375 GB, free: 57.1 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007031/1.425, allocations: 0.7337 MB / 0.5382 GB, free: 56.68 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003935/1.425, allocations: 0 / 0.5382 GB, free: 56.68 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002858/1.426, allocations: 0.6186 MB / 0.5388 GB, free: 56.35 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00355/1.429, allocations: 3.111 MB / 0.5419 GB, free: 56.06 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004594/1.434, allocations: 6.737 MB / 0.5484 GB, free: 50.11 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004727/1.439, allocations: 3.998 MB / 0.5523 GB, free: 48.99 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.483e-05/1.439, allocations: 36.12 kB / 0.5524 GB, free: 48.99 MB / 234.7 MB Notification: Performance of matching and sorting (n=804) (initialization): time 0.01606/1.455, allocations: 9.707 MB / 0.5619 GB, free: 46.09 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.455, allocations: 7.344 kB / 0.5619 GB, free: 46.09 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006444/1.461, allocations: 3.23 MB / 0.565 GB, free: 44.57 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00458/1.466, allocations: 1.344 MB / 0.5663 GB, free: 43.61 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005199/1.471, allocations: 1.437 MB / 0.5677 GB, free: 42.39 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009029/1.48, allocations: 7.047 MB / 0.5746 GB, free: 36.09 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01218/1.492, allocations: 1.348 MB / 0.5759 GB, free: 35.19 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001724/1.494, allocations: 0.5652 MB / 0.5765 GB, free: 34.69 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * 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 (739): * Single equations (assignments): 721 * Array equations: 15 * 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 {1} * 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.002116/1.496, allocations: 415.4 kB / 0.5769 GB, free: 34.28 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001027/1.497, allocations: 264.5 kB / 0.5771 GB, free: 34.02 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008075/1.505, allocations: 3.583 MB / 0.5806 GB, free: 31.28 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02015/1.525, allocations: 5.225 MB / 0.5857 GB, free: 27.56 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.089e-05/1.525, allocations: 4 kB / 0.5857 GB, free: 27.56 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.111e-05/1.526, allocations: 11.97 kB / 0.5857 GB, free: 27.55 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05824/1.584, allocations: 15.46 MB / 0.6008 GB, free: 14.84 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.338e-05/1.584, allocations: 0 / 0.6008 GB, free: 14.84 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.585, allocations: 259.6 kB / 0.6011 GB, free: 14.58 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004665/1.59, allocations: 1.321 MB / 0.6024 GB, free: 13.25 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000698/1.591, allocations: 103.8 kB / 0.6025 GB, free: 13.15 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/1.601, allocations: 7.611 MB / 0.6099 GB, free: 5.324 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.1032/1.704, allocations: 1.362 MB / 0.6112 GB, free: 53.02 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02511/1.73, allocations: 9.255 MB / 0.6203 GB, free: 52.5 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001402/1.731, allocations: 399.5 kB / 0.6207 GB, free: 52.4 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/1.733, allocations: 16.88 kB / 0.6207 GB, free: 52.4 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01388/1.747, allocations: 1.134 MB / 0.6218 GB, free: 52.4 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007512/1.747, allocations: 76.73 kB / 0.6219 GB, free: 52.4 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001041/1.749, allocations: 236.9 kB / 0.6221 GB, free: 52.4 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.005/1.754, allocations: 1.86 MB / 0.6239 GB, free: 52.26 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.01087/1.764, allocations: 0.9876 MB / 0.6249 GB, free: 52.26 MB / 234.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 (130): * Single equations (assignments): 114 * Array equations: 13 * 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.001252/1.766, allocations: 168 kB / 0.625 GB, free: 52.17 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.03228/1.798, allocations: 8.521 MB / 0.6334 GB, free: 51.93 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/1.798, allocations: 0 / 0.6334 GB, free: 51.93 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0226/1.821, allocations: 4.199 MB / 0.6375 GB, free: 51.48 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002715/1.824, allocations: 217.6 kB / 0.6377 GB, free: 51.37 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01928/1.843, allocations: 8.434 MB / 0.6459 GB, free: 48.66 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008918/1.852, allocations: 3.836 MB / 0.6496 GB, free: 47.3 MB / 234.7 MB Notification: Performance of SimCode: time 2.165e-06/1.852, allocations: 0 / 0.6496 GB, free: 47.3 MB / 234.7 MB Notification: Performance of Templates: time 0.1805/2.032, allocations: 64.95 MB / 0.7131 GB, free: 41.88 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)