Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.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.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake") [: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.7502/0.7502, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001863/0.001863, allocations: 156 kB / 143.7 MB, free: 4.891 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.58e-06/5.601e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04804/0.04806, allocations: 25.17 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1471/0.1952, allocations: 34.08 MB / 232.7 MB, free: 4.738 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.1955, allocations: 59.8 kB / 232.8 MB, free: 4.738 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01849/0.2141, allocations: 4.774 MB / 237.5 MB, free: 4.398 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.878e-05/0.2141, allocations: 3.875 kB / 237.5 MB, free: 4.398 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001418/0.2156, allocations: 0.601 MB / 238.1 MB, free: 3.961 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.2156, allocations: 7.75 kB / 238.1 MB, free: 3.961 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.2157, allocations: 36.72 kB / 238.2 MB, free: 3.945 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.2161, allocations: 264.7 kB / 238.4 MB, free: 3.723 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.2162, allocations: 7.844 kB / 238.4 MB, free: 3.723 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-05/0.2163, allocations: 23.16 kB / 238.5 MB, free: 3.719 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009357/0.2172, allocations: 356.7 kB / 238.8 MB, free: 3.719 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008523/0.2181, allocations: 331.6 kB / 239.1 MB, free: 3.676 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.369e-05/0.2181, allocations: 0 / 239.1 MB, free: 3.676 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.866e-05/0.2182, allocations: 3.984 kB / 239.1 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.2182, allocations: 8.453 kB / 239.2 MB, free: 3.672 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003148/0.2214, allocations: 1.062 MB / 240.2 MB, free: 3.23 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000557/0.222, allocations: 238.4 kB / 240.4 MB, free: 3.211 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.2224, allocations: 168.5 kB / 240.6 MB, free: 3.203 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.623e-05/0.2224, allocations: 4.5 kB / 240.6 MB, free: 3.203 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.2225, allocations: 37.28 kB / 240.7 MB, free: 3.16 MB / 170.7 MB Notification: Performance of pre-optimization done (n=37): time 4.709e-06/0.2225, allocations: 0 / 240.7 MB, free: 3.16 MB / 170.7 MB Notification: Performance of matching and sorting (n=43): time 0.004601/0.2271, allocations: 1.387 MB / 242 MB, free: 2.594 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.2272, allocations: 60.11 kB / 242.1 MB, free: 2.527 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/0.2274, allocations: 184 kB / 242.3 MB, free: 2.434 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.2275, allocations: 34.94 kB / 242.3 MB, free: 2.402 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001029/0.2276, allocations: 139.5 kB / 242.5 MB, free: 2.285 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001674/0.2278, allocations: 142.7 kB / 242.6 MB, free: 2.199 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.135e-05/0.2279, allocations: 5.188 kB / 242.6 MB, free: 2.199 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 9.88e-05/0.228, allocations: 334.8 kB / 242.9 MB, free: 1.887 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004152/0.2284, allocations: 181.5 kB / 243.1 MB, free: 1.883 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004783/0.2289, allocations: 254.2 kB / 243.3 MB, free: 1.812 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005932/0.2295, allocations: 156.2 kB / 243.5 MB, free: 1.805 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2295, allocations: 4 kB / 243.5 MB, free: 1.801 MB / 170.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002115/0.2316, allocations: 0.61 MB / 244.1 MB, free: 1.68 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.2317, allocations: 4.969 kB / 244.1 MB, free: 1.68 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.2317, allocations: 7.812 kB / 244.1 MB, free: 1.676 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009898/0.2327, allocations: 489 kB / 244.6 MB, free: 1.551 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004249/0.2331, allocations: 68.56 kB / 244.7 MB, free: 1.539 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/0.2348, allocations: 1.44 MB / 246.1 MB, free: 444 kB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000737/0.2356, allocations: 93.52 kB / 246.2 MB, free: 412 kB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.932e-05/0.2356, allocations: 27.02 kB / 246.2 MB, free: 408 kB / 170.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 16 (brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002308/0.2359, allocations: 121 kB / 246.3 MB, free: 288 kB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.236, allocations: 31.19 kB / 246.4 MB, free: 272 kB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001277/0.2362, allocations: 39.02 kB / 246.4 MB, free: 260 kB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.343e-06/0.2362, allocations: 3.844 kB / 246.4 MB, free: 260 kB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.2362, allocations: 0 / 246.4 MB, free: 260 kB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.2362, allocations: 3.984 kB / 246.4 MB, free: 256 kB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00406/0.2403, allocations: 1.258 MB / 247.7 MB, free: 15.66 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.601e-06/0.2403, allocations: 3.875 kB / 247.7 MB, free: 15.66 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004494/0.2408, allocations: 56.16 kB / 247.7 MB, free: 15.64 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.2418, allocations: 455.3 kB / 248.2 MB, free: 15.53 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.238e-05/0.2419, allocations: 14.86 kB / 248.2 MB, free: 15.52 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.2438, allocations: 1.38 MB / 249.6 MB, free: 14.41 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.2438, allocations: 3.875 kB / 249.6 MB, free: 14.41 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002422/0.2462, allocations: 0.9169 MB / 250.5 MB, free: 14.02 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.2465, allocations: 150.1 kB / 250.6 MB, free: 13.9 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001294/0.2467, allocations: 14.98 kB / 250.7 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000508/0.2472, allocations: 50.97 kB / 250.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.2475, allocations: 100.3 kB / 250.8 MB, free: 13.82 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.658e-05/0.2476, allocations: 30.69 kB / 250.8 MB, free: 13.81 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001799/0.2478, allocations: 142.1 kB / 251 MB, free: 13.72 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007943/0.2486, allocations: 85.53 kB / 251.1 MB, free: 13.72 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (mass1.s,mass1.v,mass2.s,mass2.v) * Number of discrete variables: 10 (brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode) * Number of discrete states: 6 (brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003329/0.2489, allocations: 141.5 kB / 251.2 MB, free: 13.61 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.25, allocations: 438.7 kB / 251.6 MB, free: 13.58 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.25, allocations: 0 / 251.6 MB, free: 13.58 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006245/0.2507, allocations: 249.4 kB / 251.9 MB, free: 13.55 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005198/0.2512, allocations: 40.27 kB / 251.9 MB, free: 13.54 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.2534, allocations: 0.6934 MB / 252.6 MB, free: 13.1 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006227/0.2541, allocations: 0.8153 MB / 253.4 MB, free: 12.34 MB / 186.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2541, allocations: 0 / 253.4 MB, free: 12.34 MB / 186.7 MB Notification: Performance of Templates: time 0.01826/0.2723, allocations: 7.071 MB / 260.5 MB, free: 8.758 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)