Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001143/0.001143, allocations: 196.1 kB / 8.138 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.184/1.184, allocations: 194.2 MB / 202.8 MB, free: 8.754 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001753/0.001753, allocations: 119.4 kB / 247.7 MB, free: 6.309 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.421e-06/5.451e-06, allocations: 0 / 297.6 MB, free: 8.066 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07069/0.07071, allocations: 44.49 MB / 342.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1932/0.2639, allocations: 72.43 MB / 414.5 MB, free: 22.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001737/0.2641, allocations: 67.89 kB / 414.6 MB, free: 22.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01522/0.2794, allocations: 5.203 MB / 419.8 MB, free: 18.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.711e-05/0.2794, allocations: 9.875 kB / 419.8 MB, free: 18.48 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001065/0.2805, allocations: 0.6097 MB / 420.4 MB, free: 17.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.2806, allocations: 8.031 kB / 420.4 MB, free: 17.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.2807, allocations: 39.53 kB / 420.4 MB, free: 17.8 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002939/0.281, allocations: 275.8 kB / 420.7 MB, free: 17.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.281, allocations: 12 kB / 420.7 MB, free: 17.5 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.39e-05/0.2811, allocations: 16 kB / 420.7 MB, free: 17.49 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005561/0.2816, allocations: 328.9 kB / 421 MB, free: 17.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.2821, allocations: 306.2 kB / 421.3 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.15e-05/0.2822, allocations: 5.906 kB / 421.3 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.221e-05/0.2822, allocations: 8 kB / 421.4 MB, free: 17.04 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2822, allocations: 4 kB / 421.4 MB, free: 17.03 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.2843, allocations: 1.082 MB / 422.4 MB, free: 16.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003117/0.2846, allocations: 227.9 kB / 422.7 MB, free: 15.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.2849, allocations: 173 kB / 422.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.668e-05/0.2849, allocations: 7.984 kB / 422.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.334e-05/0.285, allocations: 38.81 kB / 422.9 MB, free: 15.78 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.285, allocations: 0 / 422.9 MB, free: 15.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=47): time 0.002892/0.2879, allocations: 1.347 MB / 424.2 MB, free: 14.58 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.836e-05/0.2879, allocations: 55.84 kB / 424.3 MB, free: 14.52 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.288, allocations: 178.4 kB / 424.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.36e-05/0.2881, allocations: 37.62 kB / 424.5 MB, free: 14.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.712e-05/0.2882, allocations: 139.5 kB / 424.6 MB, free: 14.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.653e-05/0.2883, allocations: 147.1 kB / 424.8 MB, free: 14.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.2883, allocations: 0 / 424.8 MB, free: 14.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.36e-05/0.2884, allocations: 341 kB / 425.1 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.2886, allocations: 166.3 kB / 425.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.2889, allocations: 242.4 kB / 425.5 MB, free: 13.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003607/0.2893, allocations: 137.6 kB / 425.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2893, allocations: 0 / 425.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001371/0.2907, allocations: 0.5939 MB / 426.2 MB, free: 12.9 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.2907, allocations: 4 kB / 426.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.2907, allocations: 4 kB / 426.2 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006153/0.2913, allocations: 365.5 kB / 426.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002739/0.2916, allocations: 71.84 kB / 426.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001075/0.2927, allocations: 1.374 MB / 428 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.2932, allocations: 92.05 kB / 428.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.2933, allocations: 27.61 kB / 428.2 MB, free: 11.14 MB / 314.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 (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001681/0.2934, allocations: 116.4 kB / 428.3 MB, free: 11.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.607e-05/0.2935, allocations: 35.61 kB / 428.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001409/0.2949, allocations: 0.5952 MB / 428.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.295, allocations: 8 kB / 428.9 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.295, allocations: 4 kB / 428.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.295, allocations: 3.984 kB / 428.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.2975, allocations: 1.233 MB / 430.1 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2975, allocations: 4 kB / 430.2 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000306/0.2978, allocations: 63.34 kB / 430.2 MB, free: 9.395 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005049/0.2983, allocations: 333.4 kB / 430.5 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.282e-05/0.2984, allocations: 13.84 kB / 430.6 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009275/0.2993, allocations: 1.31 MB / 431.9 MB, free: 7.867 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2993, allocations: 4 kB / 431.9 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001392/0.3007, allocations: 0.8777 MB / 432.7 MB, free: 7.129 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.3009, allocations: 149.6 kB / 432.9 MB, free: 6.98 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.585e-05/0.301, allocations: 11.42 kB / 432.9 MB, free: 6.973 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000333/0.3013, allocations: 47.91 kB / 432.9 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.3015, allocations: 103.6 kB / 433 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.757e-05/0.3016, allocations: 27.03 kB / 433.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.386e-05/0.3017, allocations: 147.1 kB / 433.2 MB, free: 6.691 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004289/0.3021, allocations: 88 kB / 433.3 MB, free: 6.605 MB / 314.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 (35): * Single equations (assignments): 33 * 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.0001919/0.3023, allocations: 134.5 kB / 433.4 MB, free: 6.473 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006903/0.303, allocations: 488.5 kB / 433.9 MB, free: 6.125 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.303, allocations: 320 / 433.9 MB, free: 6.125 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004358/0.3035, allocations: 254.7 kB / 434.2 MB, free: 5.957 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003612/0.3038, allocations: 30.16 kB / 434.2 MB, free: 5.938 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.3052, allocations: 0.6922 MB / 434.9 MB, free: 5.281 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.3055, allocations: 0.8183 MB / 435.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3055, allocations: 0 / 435.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of Templates: time 0.01076/0.3162, allocations: 7.491 MB / 443.2 MB, free: 13.01 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)