Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [: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.6142/0.6142, 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.001785/0.001785, allocations: 156 kB / 143.7 MB, free: 4.883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.933e-06/6.963e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04036/0.04038, allocations: 25.17 MB / 198.6 MB, free: 13.94 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1234/0.1638, allocations: 48.47 MB / 247.1 MB, free: 2.602 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.1641, allocations: 74.39 kB / 247.2 MB, free: 2.59 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.7212/0.8853, allocations: 193.1 MB / 440.3 MB, free: 28.37 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002712/0.8856, allocations: 122.2 kB / 440.4 MB, free: 28.36 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: 2292 * Number of variables: 2292 Notification: Performance of Generate backend data structure: time 0.03386/0.9195, allocations: 7.939 MB / 448.4 MB, free: 25.85 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.9195, allocations: 9.812 kB / 448.4 MB, free: 25.85 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1369/1.056, allocations: 23.63 MB / 472 MB, free: 24.13 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02056/1.077, allocations: 7.754 MB / 479.8 MB, free: 20.16 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006394/1.078, allocations: 217 kB / 480 MB, free: 19.96 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00582/1.084, allocations: 375 kB / 480.3 MB, free: 19.59 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03123/1.115, allocations: 18.42 MB / 498.8 MB, free: 5.504 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04895/1.164, allocations: 20.31 MB / 0.5069 GB, free: 0.5859 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004155/1.164, allocations: 42.92 kB / 0.5069 GB, free: 0.5625 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005483/1.17, allocations: 20 kB / 0.507 GB, free: 0.543 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1514/1.321, allocations: 9.499 MB / 0.5162 GB, free: 57.25 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6765/1.998, allocations: 130.2 MB / 0.6434 GB, free: 36.26 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006567/2.004, allocations: 4.652 MB / 0.6479 GB, free: 35.4 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004568/2.009, allocations: 3.415 MB / 0.6512 GB, free: 35.3 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1504/2.159, allocations: 27.42 MB / 0.678 GB, free: 31.63 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.934e-05/2.159, allocations: 63.19 kB / 0.6781 GB, free: 31.59 MB / 250.7 MB Notification: Performance of pre-optimization done (n=255): time 8.306e-06/2.159, allocations: 2.625 kB / 0.6781 GB, free: 31.59 MB / 250.7 MB Notification: Performance of matching and sorting (n=272): time 0.04161/2.201, allocations: 16.98 MB / 0.6947 GB, free: 19.39 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/2.201, allocations: 160.9 kB / 0.6948 GB, free: 19.21 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00609/2.207, allocations: 4.244 MB / 0.699 GB, free: 15.6 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009158/2.208, allocations: 25.7 kB / 0.699 GB, free: 15.57 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/2.21, allocations: 4.281 MB / 0.7032 GB, free: 11.81 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001443/2.211, allocations: 1.028 MB / 0.7042 GB, free: 10.89 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006969/2.212, allocations: 0 / 0.7042 GB, free: 10.89 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003701/2.213, allocations: 0.685 MB / 0.7048 GB, free: 10.3 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005305/2.218, allocations: 3.986 MB / 0.7087 GB, free: 6.832 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1044/2.322, allocations: 9.394 MB / 0.7179 GB, free: 43.21 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007713/2.33, allocations: 5.09 MB / 0.7229 GB, free: 43.19 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/2.33, allocations: 56.88 kB / 0.7229 GB, free: 43.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=1182) (initialization): time 0.02336/2.354, allocations: 12.15 MB / 0.7348 GB, free: 42.55 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/2.354, allocations: 3.812 kB / 0.7348 GB, free: 42.55 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006051/2.36, allocations: 3.563 MB / 0.7383 GB, free: 42.47 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002808/2.363, allocations: 0.9981 MB / 0.7392 GB, free: 42.45 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00862/2.371, allocations: 2.207 MB / 0.7414 GB, free: 42.26 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003426/2.375, allocations: 3.961 MB / 0.7453 GB, free: 39.75 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01819/2.393, allocations: 1.757 MB / 0.747 GB, free: 39.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002637/2.396, allocations: 0.7989 MB / 0.7478 GB, free: 39.75 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 884 * Number of states: 0 () * Number of discrete variables: 42 (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],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],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 (1121): * Single equations (assignments): 1099 * Array equations: 18 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001894/2.397, allocations: 0.5722 MB / 0.7483 GB, free: 39.45 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/2.399, allocations: 418.2 kB / 0.7487 GB, free: 39.45 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007065/2.406, allocations: 4.111 MB / 0.7527 GB, free: 39.3 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0227/2.428, allocations: 6.04 MB / 0.7586 GB, free: 39.2 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-05/2.428, allocations: 10.91 kB / 0.7586 GB, free: 39.2 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.79e-05/2.428, allocations: 12.81 kB / 0.7587 GB, free: 39.2 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07366/2.502, allocations: 20.59 MB / 0.7788 GB, free: 34.73 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/2.502, allocations: 11.34 kB / 0.7788 GB, free: 34.73 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002257/2.504, allocations: 442 kB / 0.7792 GB, free: 34.69 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002845/2.507, allocations: 0.8989 MB / 0.7801 GB, free: 34.53 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005388/2.508, allocations: 138.8 kB / 0.7802 GB, free: 34.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003936/2.512, allocations: 4.393 MB / 0.7845 GB, free: 30.8 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000613/2.512, allocations: 1.378 MB / 0.7858 GB, free: 29.36 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01325/2.526, allocations: 11.9 MB / 0.7975 GB, free: 18.67 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/2.528, allocations: 1.177 MB / 0.7986 GB, free: 17.65 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/2.53, allocations: 18.77 kB / 0.7986 GB, free: 17.63 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01125/2.541, allocations: 1.376 MB / 0.8 GB, free: 16.77 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005025/2.541, allocations: 151.3 kB / 0.8001 GB, free: 16.67 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005379/2.542, allocations: 324 kB / 0.8004 GB, free: 16.41 MB / 250.7 MB Notification: Performance of sort global known variables: time 0.00389/2.546, allocations: 2.794 MB / 0.8032 GB, free: 13.99 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.009495/2.555, allocations: 1.393 MB / 0.8045 GB, free: 12.61 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 203 * Array equations: 16 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007611/2.556, allocations: 193.6 kB / 0.8047 GB, free: 12.43 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.1291/2.685, allocations: 12.35 MB / 0.8168 GB, free: 43.52 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/2.685, allocations: 6.062 kB / 0.8168 GB, free: 43.52 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02243/2.708, allocations: 5.772 MB / 0.8224 GB, free: 43.1 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/2.71, allocations: 384.5 kB / 0.8228 GB, free: 43.08 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02269/2.733, allocations: 12.51 MB / 0.835 GB, free: 40.61 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009898/2.743, allocations: 5.63 MB / 0.8405 GB, free: 39.69 MB / 250.7 MB Notification: Performance of SimCode: time 9.61e-07/2.743, allocations: 3.781 kB / 0.8405 GB, free: 39.69 MB / 250.7 MB Notification: Performance of Templates: time 0.2308/2.974, allocations: 84.76 MB / 0.9233 GB, free: 38.78 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)