Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake") translateModel(Modelica.Mechanics.Translational.Examples.Brake,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.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/Complex 3.2.1+maint.om/package.mo): time 0.003637/0.003637, allocations: 180.7 kB / 7.455 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.248/1.248, allocations: 170.6 MB / 178.4 MB, free: 15.39 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001755/0.001755, allocations: 111.8 kB / 217.7 MB, free: 8.152 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.316e-06/8.616e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 38.76 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/0.4007, allocations: 67.11 MB / 367.6 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002107/0.401, allocations: 68.45 kB / 367.7 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.01511/0.4161, allocations: 5.145 MB / 372.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.4162, allocations: 4 kB / 372.8 MB, free: 12.87 MB / 266.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.001367/0.4176, allocations: 0.6236 MB / 373.4 MB, free: 12.21 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.4176, allocations: 8.031 kB / 373.5 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001531/0.4178, allocations: 31.62 kB / 373.5 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.4182, allocations: 267.1 kB / 373.7 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.209e-05/0.4183, allocations: 12 kB / 373.8 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.781e-05/0.4184, allocations: 19.91 kB / 373.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007012/0.4191, allocations: 375 kB / 374.1 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005873/0.4197, allocations: 326.7 kB / 374.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.4197, allocations: 4 kB / 374.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.125e-05/0.4198, allocations: 3.906 kB / 374.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.4198, allocations: 8 kB / 374.5 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002157/0.4219, allocations: 1.074 MB / 375.6 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.4223, allocations: 246.7 kB / 375.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.4226, allocations: 179 kB / 376 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.078e-05/0.4227, allocations: 4 kB / 376 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.4227, allocations: 37.81 kB / 376 MB, free: 10.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=39): time 2.074e-06/0.4227, allocations: 0 / 376 MB, free: 10.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=45): time 0.003521/0.4262, allocations: 1.52 MB / 377.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.4263, allocations: 55.41 kB / 377.6 MB, free: 8.645 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002168/0.4265, allocations: 181.5 kB / 377.8 MB, free: 8.484 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.676e-05/0.4266, allocations: 37.02 kB / 377.8 MB, free: 8.445 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001/0.4267, allocations: 146 kB / 377.9 MB, free: 8.305 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/0.4269, allocations: 154.1 kB / 378.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.427, allocations: 0 / 378.1 MB, free: 8.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.4271, allocations: 340.5 kB / 378.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.4275, allocations: 179.3 kB / 378.6 MB, free: 7.742 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003401/0.4278, allocations: 259 kB / 378.8 MB, free: 7.551 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.4282, allocations: 159.8 kB / 379 MB, free: 7.438 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4282, allocations: 7.938 kB / 379 MB, free: 7.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00154/0.4298, allocations: 0.7313 MB / 379.7 MB, free: 6.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.4298, allocations: 4 kB / 379.7 MB, free: 6.836 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.4298, allocations: 4 kB / 379.8 MB, free: 6.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008431/0.4307, allocations: 483.9 kB / 380.2 MB, free: 6.449 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003526/0.431, allocations: 75.22 kB / 380.3 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001583/0.4326, allocations: 1.431 MB / 381.7 MB, free: 5.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005257/0.4332, allocations: 92.05 kB / 381.8 MB, free: 4.949 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.862e-05/0.4333, allocations: 23.36 kB / 381.8 MB, free: 4.93 MB / 266.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): 47 * 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.000264/0.4335, allocations: 128 kB / 382 MB, free: 4.801 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-05/0.4336, allocations: 31.62 kB / 382 MB, free: 4.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001125/0.4337, allocations: 45.81 kB / 382 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.4338, allocations: 4 kB / 382 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.4338, allocations: 0 / 382 MB, free: 4.746 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.949e-06/0.4338, allocations: 7.984 kB / 382.1 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003161/0.437, allocations: 1.387 MB / 383.4 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.723e-06/0.437, allocations: 4 kB / 383.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.4373, allocations: 64.06 kB / 383.5 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000695/0.438, allocations: 456.1 kB / 384 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.017e-05/0.4381, allocations: 15.36 kB / 384 MB, free: 3.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/0.4396, allocations: 1.371 MB / 385.3 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.4396, allocations: 4 kB / 385.3 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001903/0.4415, allocations: 1.035 MB / 386.4 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002036/0.4417, allocations: 157.2 kB / 386.5 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.14e-05/0.4418, allocations: 11.16 kB / 386.5 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.4422, allocations: 50.52 kB / 386.6 MB, free: 0.6797 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/0.4424, allocations: 110.5 kB / 386.7 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.78e-05/0.4425, allocations: 23.59 kB / 386.7 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.0001526/0.4426, allocations: 150.1 kB / 386.9 MB, free: 448 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005087/0.4431, allocations: 84 kB / 387 MB, free: 364 kB / 266.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.0003242/0.4435, allocations: 130 kB / 387.1 MB, free: 228 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000875/0.4444, allocations: 452.6 kB / 387.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4444, allocations: 0 / 387.5 MB, free: 15.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005362/0.4449, allocations: 273.5 kB / 387.8 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/0.4453, allocations: 37.59 kB / 387.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00177/0.4471, allocations: 0.6905 MB / 388.5 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005028/0.4476, allocations: 0.818 MB / 389.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4477, allocations: 0 / 389.3 MB, free: 14.2 MB / 282.7 MB Notification: Performance of Templates: time 0.01337/0.461, allocations: 7.156 MB / 396.5 MB, free: 7.055 MB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.sim & ./Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)