Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.0009551/0.0009551, allocations: 185.5 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.067/1.067, allocations: 221.4 MB / 229.9 MB, free: 3.07 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008678/0.0008678, allocations: 105.5 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09544/0.09634, allocations: 55.82 MB / 336.6 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1822/0.2786, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0791/0.3577, allocations: 78.08 MB / 465.1 MB, free: 8.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.3579, allocations: 67.91 kB / 465.1 MB, free: 8.656 MB / 346.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.01589/0.3738, allocations: 6.017 MB / 471.2 MB, free: 2.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.3739, allocations: 12 kB / 471.2 MB, free: 2.598 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.087e-05/0.374, allocations: 35.53 kB / 471.2 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003144/0.3743, allocations: 267.4 kB / 471.5 MB, free: 2.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.103e-05/0.3744, allocations: 12 kB / 471.5 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.3744, allocations: 24 kB / 471.5 MB, free: 2.227 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005603/0.375, allocations: 325.2 kB / 471.8 MB, free: 1.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000511/0.3755, allocations: 317.5 kB / 472.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.905e-05/0.3755, allocations: 8.75 kB / 472.1 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.692e-05/0.3756, allocations: 0 / 472.1 MB, free: 1.586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.3756, allocations: 4 kB / 472.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.3776, allocations: 1.08 MB / 473.2 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.378, allocations: 238.2 kB / 473.5 MB, free: 192 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.3782, allocations: 160.8 kB / 473.6 MB, free: 28 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.3783, allocations: 8 kB / 473.6 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.3783, allocations: 39.25 kB / 473.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 1.653e-06/0.3783, allocations: 0 / 473.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.002864/0.3812, allocations: 1.354 MB / 475 MB, free: 14.52 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.3813, allocations: 55.84 kB / 475.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3814, allocations: 182.9 kB / 475.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.3815, allocations: 33.7 kB / 475.3 MB, free: 14.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.786e-05/0.3816, allocations: 132.8 kB / 475.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.3817, allocations: 153.9 kB / 475.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.714e-05/0.3818, allocations: 0 / 475.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3819, allocations: 334.8 kB / 475.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002878/0.3822, allocations: 169 kB / 476.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.3825, allocations: 239.3 kB / 476.3 MB, free: 13.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.3829, allocations: 136.7 kB / 476.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.3829, allocations: 8.109 kB / 476.4 MB, free: 13.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001408/0.3843, allocations: 0.5954 MB / 477 MB, free: 12.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3844, allocations: 8.156 kB / 477 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/0.3844, allocations: 7.984 kB / 477 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006697/0.3851, allocations: 357.5 kB / 477.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.3853, allocations: 71.89 kB / 477.5 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001283/0.3866, allocations: 1.372 MB / 478.8 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/0.3871, allocations: 96.03 kB / 478.9 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/0.3872, allocations: 24.73 kB / 478.9 MB, free: 10.45 MB / 362.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.0001589/0.3873, allocations: 113.5 kB / 479.1 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.19e-05/0.3874, allocations: 35.62 kB / 479.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/0.3888, allocations: 0.6113 MB / 479.7 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3888, allocations: 4 kB / 479.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3888, allocations: 0 / 479.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.3888, allocations: 0 / 479.7 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.3914, allocations: 1.221 MB / 480.9 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3914, allocations: 1.031 kB / 480.9 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002912/0.3917, allocations: 63.91 kB / 481 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005735/0.3923, allocations: 333.6 kB / 481.3 MB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.13e-05/0.3923, allocations: 15.97 kB / 481.3 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.3935, allocations: 1.315 MB / 482.7 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3935, allocations: 0 / 482.7 MB, free: 6.609 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001556/0.3951, allocations: 0.8815 MB / 483.5 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001895/0.397, allocations: 1.448 MB / 485 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/0.3971, allocations: 152.7 kB / 485.1 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.135e-05/0.3972, allocations: 16.06 kB / 485.1 MB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003217/0.3976, allocations: 51.95 kB / 485.2 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001825/0.3977, allocations: 103.7 kB / 485.3 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.03e-05/0.3978, allocations: 23.97 kB / 485.3 MB, free: 3.781 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001074/0.3979, allocations: 144.5 kB / 485.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001109/0.399, allocations: 88 kB / 485.5 MB, free: 3.555 MB / 362.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.000228/0.3993, allocations: 134 kB / 485.7 MB, free: 3.418 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000807/0.4001, allocations: 497.5 kB / 486.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.4001, allocations: 0 / 486.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004758/0.4006, allocations: 252 kB / 486.4 MB, free: 2.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.4009, allocations: 33.28 kB / 486.4 MB, free: 2.641 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.4024, allocations: 0.6954 MB / 487.1 MB, free: 1.906 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.4029, allocations: 0.819 MB / 488 MB, free: 1.062 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4029, allocations: 0 / 488 MB, free: 1.062 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1)