Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.CompareBrakingForce,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001195/0.001195, allocations: 195.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001074/0.001074, allocations: 89.94 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.652e-05/4.694e-05, allocations: 4 kB / 350.6 MB, free: 2.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1234, allocations: 51.49 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4137/0.5371, allocations: 79.91 MB / 482 MB, free: 9.504 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000206/0.5373, allocations: 66.77 kB / 482.1 MB, free: 9.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01398/0.5513, allocations: 5.837 MB / 487.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5514, allocations: 0 / 487.9 MB, free: 4.664 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.5514, allocations: 4 kB / 487.9 MB, free: 4.66 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.00055/0.552, allocations: 0.4952 MB / 488.4 MB, free: 4.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.552, allocations: 12.03 kB / 488.4 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.973e-05/0.5521, allocations: 49.36 kB / 488.5 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.159e-05/0.5521, allocations: 27.72 kB / 488.5 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.5524, allocations: 246.2 kB / 488.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.5524, allocations: 20.42 kB / 488.8 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.049e-05/0.5525, allocations: 27.19 kB / 488.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.5528, allocations: 228.5 kB / 489 MB, free: 3.578 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.5528, allocations: 8.719 kB / 489 MB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.5528, allocations: 11.31 kB / 489.1 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.5528, allocations: 4 kB / 489.1 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.553, allocations: 144.1 kB / 489.2 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001003/0.5541, allocations: 1.015 MB / 490.2 MB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.5544, allocations: 263.6 kB / 490.5 MB, free: 2.266 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.847e-05/0.5545, allocations: 87.38 kB / 490.6 MB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.5545, allocations: 8 kB / 490.6 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.855e-05/0.5545, allocations: 37.83 kB / 490.6 MB, free: 2.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 2.946e-06/0.5545, allocations: 3.984 kB / 490.6 MB, free: 2.137 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.001135/0.5557, allocations: 1.234 MB / 491.8 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.5557, allocations: 143.8 kB / 492 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.5559, allocations: 172.2 kB / 492.1 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.685e-05/0.5559, allocations: 28.45 kB / 492.2 MB, free: 484 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.5559, allocations: 157.1 kB / 492.3 MB, free: 348 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.394e-05/0.556, allocations: 121.8 kB / 492.4 MB, free: 240 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.274e-05/0.556, allocations: 10.31 kB / 492.5 MB, free: 236 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.415e-05/0.5561, allocations: 337 kB / 492.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.5563, allocations: 75.44 kB / 492.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001904/0.5564, allocations: 180.6 kB / 493 MB, free: 15.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.5566, allocations: 98.69 kB / 493.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5566, allocations: 4.656 kB / 493.1 MB, free: 15.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004527/0.5571, allocations: 314.1 kB / 493.4 MB, free: 15.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.5571, allocations: 8 kB / 493.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.5571, allocations: 4 kB / 493.5 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.5572, allocations: 8.188 kB / 493.5 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.5575, allocations: 99.89 kB / 493.6 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.5575, allocations: 4 kB / 493.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.5577, allocations: 16.55 kB / 493.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.5578, allocations: 23.94 kB / 493.6 MB, free: 15.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.733e-05/0.5579, allocations: 124.9 kB / 493.7 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.296e-05/0.558, allocations: 24.66 kB / 493.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.86e-05/0.5581, allocations: 33.52 kB / 493.8 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.5581, allocations: 11.94 kB / 493.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5581, allocations: 6.531 kB / 493.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.5581, allocations: 0 / 493.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.5593, allocations: 0.962 MB / 494.8 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.5594, allocations: 3.984 kB / 494.8 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.5597, allocations: 79.89 kB / 494.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.5598, allocations: 4.25 kB / 494.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.5598, allocations: 20 kB / 494.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.969e-06/0.5598, allocations: 7.938 kB / 494.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.5598, allocations: 3.953 kB / 494.9 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006655/0.5605, allocations: 0.8007 MB / 495.7 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.934e-05/0.5606, allocations: 100.8 kB / 495.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.5606, allocations: 8 kB / 495.8 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.5609, allocations: 19.98 kB / 495.8 MB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.5609, allocations: 31.86 kB / 495.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.561, allocations: 13.94 kB / 495.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000114/0.5611, allocations: 144.4 kB / 496 MB, free: 12.56 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5611, allocations: 0 / 496 MB, free: 12.56 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004371/0.5615, allocations: 64 kB / 496.1 MB, free: 12.5 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 8 (mass4.s,mass4.v,mass3.s,mass3.v,mass2.s,mass2.v,mass1.s,mass1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001215/0.5628, allocations: 2.12 MB / 498.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003811/0.5631, allocations: 219.4 kB / 498.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.5632, allocations: 0 / 498.4 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.5633, allocations: 115.8 kB / 498.5 MB, free: 9.969 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.5639, allocations: 62.72 kB / 498.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.5656, allocations: 0.9346 MB / 499.5 MB, free: 8.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.5659, allocations: 0.7686 MB / 0.4885 GB, free: 8.117 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.5661, allocations: 34.95 kB / 0.4886 GB, free: 8.078 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.5662, allocations: 83.41 kB / 0.4887 GB, free: 7.996 MB / 362.7 MB Notification: Performance of SimCode: time 8.31e-07/0.5662, allocations: 0 / 0.4887 GB, free: 7.996 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03606/0.6023, allocations: 5.084 MB / 0.4936 GB, free: 3.148 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.6026, allocations: 180.3 kB / 0.4938 GB, free: 2.914 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.994/2.596, allocations: 0 / 0.4938 GB, free: 2.914 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_CompareBrakingForce.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.CompareBrakingForce.pipe 2>&1)