Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [: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.6836/0.6836, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001745/0.001745, allocations: 156 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.554e-06/7.565e-06, allocations: 4 kB / 173.5 MB, free: 23.02 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03714/0.03717, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1323/0.1695, allocations: 50.71 MB / 249.3 MB, free: 1.977 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003099/0.1698, allocations: 73.08 kB / 249.4 MB, free: 1.965 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.5049/0.6747, allocations: 153.5 MB / 402.9 MB, free: 16.47 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002163/0.675, allocations: 92 kB / 403 MB, free: 16.38 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: 1845 * Number of variables: 1845 Notification: Performance of Generate backend data structure: time 0.02287/0.6979, allocations: 6.239 MB / 409.2 MB, free: 10.07 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.6979, allocations: 12.03 kB / 409.2 MB, free: 10.06 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1867/0.8847, allocations: 19.44 MB / 428.7 MB, free: 50.4 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/0.8997, allocations: 5.735 MB / 434.4 MB, free: 50.09 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003716/0.9002, allocations: 176.3 kB / 434.6 MB, free: 50.09 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004466/0.9046, allocations: 288.5 kB / 434.9 MB, free: 50.08 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0253/0.93, allocations: 15.15 MB / 450 MB, free: 50.05 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03644/0.9664, allocations: 16.72 MB / 466.7 MB, free: 44.64 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000262/0.9667, allocations: 34.16 kB / 466.8 MB, free: 44.63 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00363/0.9704, allocations: 14.19 kB / 466.8 MB, free: 44.63 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04034/1.011, allocations: 7.83 MB / 474.6 MB, free: 42.8 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5451/1.556, allocations: 106.8 MB / 0.5678 GB, free: 28.27 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006469/1.562, allocations: 4.516 MB / 0.5722 GB, free: 26.7 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004621/1.567, allocations: 3.288 MB / 0.5754 GB, free: 24.96 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09072/1.658, allocations: 22.12 MB / 0.597 GB, free: 6.879 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/1.658, allocations: 55.52 kB / 0.5971 GB, free: 6.816 MB / 234.7 MB Notification: Performance of pre-optimization done (n=209): time 5.611e-06/1.658, allocations: 0 / 0.5971 GB, free: 6.816 MB / 234.7 MB Notification: Performance of matching and sorting (n=234): time 0.123/1.781, allocations: 19.13 MB / 0.6157 GB, free: 41.74 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/1.781, allocations: 154 kB / 0.6159 GB, free: 41.58 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004499/1.786, allocations: 3.494 MB / 0.6193 GB, free: 41.24 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004442/1.786, allocations: 25.7 kB / 0.6193 GB, free: 41.21 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001511/1.787, allocations: 3.518 MB / 0.6228 GB, free: 39.09 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000803/1.788, allocations: 0.8631 MB / 0.6236 GB, free: 38.59 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004352/1.789, allocations: 0 / 0.6236 GB, free: 38.59 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0003112/1.789, allocations: 0.6298 MB / 0.6242 GB, free: 38.27 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004075/1.793, allocations: 3.491 MB / 0.6276 GB, free: 38.25 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005441/1.799, allocations: 8.017 MB / 0.6355 GB, free: 32.39 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005103/1.804, allocations: 4.456 MB / 0.6398 GB, free: 32.36 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-05/1.804, allocations: 45.25 kB / 0.6398 GB, free: 32.36 MB / 234.7 MB Notification: Performance of matching and sorting (n=989) (initialization): time 0.01845/1.822, allocations: 10.91 MB / 0.6505 GB, free: 29.64 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/1.822, allocations: 7.281 kB / 0.6505 GB, free: 29.64 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002129/1.823, allocations: 162.9 kB / 0.6507 GB, free: 29.64 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003776/1.826, allocations: 1.235 MB / 0.6519 GB, free: 29.5 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006576/1.833, allocations: 1.803 MB / 0.6536 GB, free: 29.29 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007481/1.84, allocations: 5.663 MB / 0.6592 GB, free: 26.7 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01307/1.853, allocations: 1.36 MB / 0.6605 GB, free: 26.67 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002061/1.856, allocations: 0.6527 MB / 0.6611 GB, free: 26.61 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 740 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (926): * Single equations (assignments): 912 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00249/1.858, allocations: 494.6 kB / 0.6616 GB, free: 26.19 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/1.859, allocations: 341.4 kB / 0.6619 GB, free: 26 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0076/1.867, allocations: 3.881 MB / 0.6657 GB, free: 24.81 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01253/1.879, allocations: 2.058 MB / 0.6677 GB, free: 24.81 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.973e-05/1.879, allocations: 7.469 kB / 0.6677 GB, free: 24.81 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.082e-05/1.879, allocations: 13.22 kB / 0.6677 GB, free: 24.81 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0576/1.937, allocations: 15.65 MB / 0.683 GB, free: 15.59 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/1.937, allocations: 1.312 kB / 0.683 GB, free: 15.59 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/1.939, allocations: 330.7 kB / 0.6833 GB, free: 15.32 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003615/1.943, allocations: 0.9939 MB / 0.6843 GB, free: 14.66 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006987/1.943, allocations: 85.27 kB / 0.6844 GB, free: 14.62 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1028/2.046, allocations: 5.306 MB / 0.6896 GB, free: 36.23 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/2.046, allocations: 1.875 kB / 0.6896 GB, free: 36.23 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01412/2.06, allocations: 9.861 MB / 0.6992 GB, free: 35.73 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002539/2.063, allocations: 1.008 MB / 0.7002 GB, free: 35.64 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001012/2.064, allocations: 9.531 kB / 0.7002 GB, free: 35.64 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009307/2.073, allocations: 1.125 MB / 0.7013 GB, free: 35.64 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000588/2.074, allocations: 100.7 kB / 0.7014 GB, free: 35.64 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005042/2.074, allocations: 236.4 kB / 0.7016 GB, free: 35.64 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.003748/2.078, allocations: 2.296 MB / 0.7039 GB, free: 35.5 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.007136/2.085, allocations: 1.122 MB / 0.705 GB, free: 35.5 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 164 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005941/2.086, allocations: 158.3 kB / 0.7051 GB, free: 35.41 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.01955/2.106, allocations: 9.149 MB / 0.714 GB, free: 35.29 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.11e-06/2.106, allocations: 3.969 kB / 0.7141 GB, free: 35.29 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01289/2.118, allocations: 4.029 MB / 0.718 GB, free: 35.18 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/2.121, allocations: 267.2 kB / 0.7182 GB, free: 35.16 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02035/2.141, allocations: 9.843 MB / 0.7279 GB, free: 32.17 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007737/2.149, allocations: 4.652 MB / 0.7324 GB, free: 46.76 MB / 250.7 MB Notification: Performance of SimCode: time 7.71e-07/2.149, allocations: 0 / 0.7324 GB, free: 46.76 MB / 250.7 MB Notification: Performance of Templates: time 0.1953/2.344, allocations: 72.62 MB / 0.8033 GB, free: 43.91 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)