Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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/Modelica 3.1.0+maint.om/package.mo): time 0.7093/0.7093, allocations: 110.8 MB / 118 MB, free: 14.65 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001822/0.001822, allocations: 159.9 kB / 143.7 MB, free: 4.977 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.482e-06/6.512e-06, allocations: 4 kB / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03674/0.03676, allocations: 25.16 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1251/0.1619, allocations: 47 MB / 245.6 MB, free: 2.945 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001773/0.1621, allocations: 76 kB / 245.7 MB, free: 2.938 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.6619/0.8241, allocations: 176.2 MB / 421.9 MB, free: 29.79 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002685/0.8244, allocations: 108 kB / 422 MB, free: 29.79 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: 2050 * Number of variables: 2050 Notification: Performance of Generate backend data structure: time 0.0258/0.8502, allocations: 6.956 MB / 428.9 MB, free: 28.13 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.8503, allocations: 11.88 kB / 428.9 MB, free: 28.13 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1303/0.9806, allocations: 21.86 MB / 450.8 MB, free: 26.76 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01725/0.9979, allocations: 7.136 MB / 457.9 MB, free: 26.06 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003699/0.9983, allocations: 198.1 kB / 458.1 MB, free: 26.06 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004393/1.003, allocations: 323.3 kB / 458.5 MB, free: 26.06 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02877/1.031, allocations: 16.6 MB / 475.1 MB, free: 22.67 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0316/1.063, allocations: 18.29 MB / 493.3 MB, free: 7.621 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002181/1.063, allocations: 38.38 kB / 493.4 MB, free: 7.602 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002846/1.066, allocations: 23.83 kB / 493.4 MB, free: 7.582 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04709/1.113, allocations: 8.724 MB / 0.4904 GB, free: 156 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5793/1.693, allocations: 115.5 MB / 0.6032 GB, free: 13.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004482/1.697, allocations: 3.394 MB / 0.6065 GB, free: 10.45 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002883/1.7, allocations: 2.164 MB / 0.6086 GB, free: 8.961 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1732/1.873, allocations: 16.91 MB / 0.6251 GB, free: 56.68 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/1.873, allocations: 48.38 kB / 0.6252 GB, free: 56.64 MB / 250.7 MB Notification: Performance of pre-optimization done (n=190): time 8.787e-06/1.873, allocations: 0 / 0.6252 GB, free: 56.64 MB / 250.7 MB Notification: Performance of matching and sorting (n=202): time 0.02485/1.898, allocations: 10.44 MB / 0.6354 GB, free: 53.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/1.898, allocations: 148 kB / 0.6355 GB, free: 53.66 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007053/1.905, allocations: 4.022 MB / 0.6395 GB, free: 53.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005177/1.906, allocations: 25.7 kB / 0.6395 GB, free: 53.22 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/1.908, allocations: 3.982 MB / 0.6434 GB, free: 50.87 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.909, allocations: 0.7832 MB / 0.6441 GB, free: 50.43 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000744/1.91, allocations: 0 / 0.6441 GB, free: 50.43 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0004813/1.91, allocations: 0.6387 MB / 0.6448 GB, free: 50.11 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004534/1.915, allocations: 3.013 MB / 0.6477 GB, free: 50.09 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006218/1.921, allocations: 8.08 MB / 0.6556 GB, free: 43.46 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005352/1.926, allocations: 4.077 MB / 0.6596 GB, free: 43.44 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/1.927, allocations: 50.44 kB / 0.6596 GB, free: 43.44 MB / 250.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01756/1.944, allocations: 9.339 MB / 0.6687 GB, free: 42.16 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/1.944, allocations: 7 kB / 0.6687 GB, free: 42.16 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003977/1.945, allocations: 180 kB / 0.6689 GB, free: 42.16 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003408/1.945, allocations: 266.6 kB / 0.6692 GB, free: 42.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007002/1.952, allocations: 1.978 MB / 0.6711 GB, free: 41.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002628/1.952, allocations: 357.6 kB / 0.6714 GB, free: 41.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01479/1.967, allocations: 1.406 MB / 0.6728 GB, free: 41.81 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002559/1.97, allocations: 0.6973 MB / 0.6735 GB, free: 41.74 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 835 * 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 (1000): * Single equations (assignments): 987 * Array equations: 13 * 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.002906/1.973, allocations: 0.5287 MB / 0.674 GB, free: 41.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001334/1.974, allocations: 383.2 kB / 0.6744 GB, free: 41.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003088/1.977, allocations: 1.549 MB / 0.6759 GB, free: 40.54 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0127/1.99, allocations: 2.059 MB / 0.6779 GB, free: 40.54 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.611e-05/1.99, allocations: 0 / 0.6779 GB, free: 40.54 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.938e-05/1.99, allocations: 17.33 kB / 0.6779 GB, free: 40.53 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05427/2.044, allocations: 13.09 MB / 0.6907 GB, free: 32.78 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-05/2.044, allocations: 16 kB / 0.6907 GB, free: 32.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00159/2.046, allocations: 347 kB / 0.691 GB, free: 32.48 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.909e-05/2.046, allocations: 27.84 kB / 0.6911 GB, free: 32.45 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000477/2.046, allocations: 107.9 kB / 0.6912 GB, free: 32.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.087e-05/2.046, allocations: 39.39 kB / 0.6912 GB, free: 32.35 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.249e-05/2.046, allocations: 23.94 kB / 0.6912 GB, free: 32.33 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008547/2.055, allocations: 8.856 MB / 0.6999 GB, free: 23.47 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002813/2.058, allocations: 0.9303 MB / 0.7008 GB, free: 22.63 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/2.059, allocations: 27.8 kB / 0.7008 GB, free: 22.61 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008506/2.068, allocations: 1.073 MB / 0.7019 GB, free: 21.93 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/2.068, allocations: 144.2 kB / 0.702 GB, free: 21.83 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003739/2.068, allocations: 249.1 kB / 0.7022 GB, free: 21.62 MB / 250.7 MB Notification: Performance of sort global known variables: time 0.003622/2.072, allocations: 2.664 MB / 0.7048 GB, free: 19.3 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.007458/2.079, allocations: 1.1 MB / 0.7059 GB, free: 18.22 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 74 * 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 (176): * Single equations (assignments): 163 * Array equations: 13 * 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.0005407/2.08, allocations: 188.3 kB / 0.7061 GB, free: 18.04 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.1207/2.2, allocations: 7.846 MB / 0.7138 GB, free: 48.48 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.715e-05/2.201, allocations: 3.906 kB / 0.7138 GB, free: 48.48 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0104/2.211, allocations: 2.795 MB / 0.7165 GB, free: 48.47 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003517/2.215, allocations: 368.6 kB / 0.7168 GB, free: 48.45 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02222/2.237, allocations: 10.05 MB / 0.7267 GB, free: 46.16 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009544/2.246, allocations: 5.065 MB / 0.7316 GB, free: 45.34 MB / 250.7 MB Notification: Performance of SimCode: time 1.582e-06/2.246, allocations: 0 / 0.7316 GB, free: 45.34 MB / 250.7 MB Notification: Performance of Templates: time 0.2162/2.463, allocations: 65.41 MB / 0.7955 GB, free: 48.38 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1)