Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002117/0.002117, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008175/0.0008173, allocations: 90.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.898e-05/1.894e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08685/0.08689, allocations: 47.58 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3259/0.4129, allocations: 77 MB / 440.2 MB, free: 2.363 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002154/0.4131, allocations: 69.91 kB / 440.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01573/0.4289, allocations: 5.537 MB / 445.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4289, allocations: 0.75 kB / 445.8 MB, free: 13.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.654e-05/0.429, allocations: 4 kB / 445.8 MB, free: 13.54 MB / 330.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.001084/0.4301, allocations: 0.5907 MB / 446.4 MB, free: 12.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.4301, allocations: 8.031 kB / 446.4 MB, free: 12.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.601e-05/0.4302, allocations: 35.53 kB / 446.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.4305, allocations: 267.1 kB / 446.7 MB, free: 12.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.4306, allocations: 8 kB / 446.7 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.536e-05/0.4306, allocations: 23.86 kB / 446.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005603/0.4312, allocations: 327.9 kB / 447 MB, free: 12.36 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005171/0.4317, allocations: 311.6 kB / 447.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.4318, allocations: 4 kB / 447.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.4318, allocations: 0 / 447.3 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.4318, allocations: 8 kB / 447.3 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001906/0.4337, allocations: 1.058 MB / 448.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000367/0.4341, allocations: 266.4 kB / 448.7 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.4343, allocations: 166 kB / 448.8 MB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.92e-05/0.4344, allocations: 11.98 kB / 448.8 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.4344, allocations: 42 kB / 448.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=41): time 1.813e-06/0.4344, allocations: 0 / 448.9 MB, free: 10.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.002795/0.4372, allocations: 1.36 MB / 450.2 MB, free: 9.629 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.4373, allocations: 59.78 kB / 450.3 MB, free: 9.559 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.4375, allocations: 170.6 kB / 450.5 MB, free: 9.406 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.723e-05/0.4375, allocations: 33.06 kB / 450.5 MB, free: 9.371 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.917e-05/0.4376, allocations: 150.1 kB / 450.6 MB, free: 9.242 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.4377, allocations: 149.8 kB / 450.8 MB, free: 9.117 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-05/0.4378, allocations: 4 kB / 450.8 MB, free: 9.113 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4379, allocations: 337.2 kB / 451.1 MB, free: 8.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000249/0.4382, allocations: 162.5 kB / 451.3 MB, free: 8.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003151/0.4385, allocations: 237.5 kB / 451.5 MB, free: 8.516 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.4389, allocations: 145.9 kB / 451.7 MB, free: 8.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.4389, allocations: 0 / 451.7 MB, free: 8.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001276/0.4402, allocations: 0.6004 MB / 452.3 MB, free: 7.945 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.4402, allocations: 8 kB / 452.3 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.4402, allocations: 4 kB / 452.3 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006181/0.4408, allocations: 371 kB / 452.6 MB, free: 7.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.4411, allocations: 78.95 kB / 452.7 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.4424, allocations: 1.355 MB / 454.1 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004413/0.4429, allocations: 88.11 kB / 454.1 MB, free: 6.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.797e-05/0.443, allocations: 27.11 kB / 454.2 MB, free: 6.195 MB / 330.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.000212/0.4432, allocations: 116.2 kB / 454.3 MB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009855/0.4442, allocations: 497.5 kB / 454.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.4443, allocations: 35.19 kB / 454.8 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.4455, allocations: 0.5992 MB / 455.4 MB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.483e-06/0.4455, allocations: 4 kB / 455.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4456, allocations: 4 kB / 455.4 MB, free: 5.195 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.4456, allocations: 3.984 kB / 455.4 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.4479, allocations: 1.221 MB / 456.6 MB, free: 4.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.448, allocations: 4.156 kB / 456.6 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.4482, allocations: 66.78 kB / 456.7 MB, free: 4.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005406/0.4488, allocations: 338.7 kB / 457 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.894e-05/0.4488, allocations: 14.53 kB / 457 MB, free: 3.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.45, allocations: 1.304 MB / 458.4 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.45, allocations: 4.031 kB / 458.4 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.4514, allocations: 0.8672 MB / 459.2 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/0.4516, allocations: 141.2 kB / 459.4 MB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/0.4517, allocations: 14.92 kB / 459.4 MB, free: 1.664 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.452, allocations: 43.22 kB / 459.4 MB, free: 1.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.4521, allocations: 109.2 kB / 459.5 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.4522, allocations: 27.23 kB / 459.6 MB, free: 1.504 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001084/0.4523, allocations: 145 kB / 459.7 MB, free: 1.379 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4523, allocations: 0 / 459.7 MB, free: 1.379 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004352/0.4528, allocations: 99.86 kB / 459.8 MB, free: 1.281 MB / 330.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.001786/0.4546, allocations: 1.781 MB / 461.6 MB, free: 15.65 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007271/0.4553, allocations: 486.2 kB / 462 MB, free: 15.31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.4553, allocations: 320 / 462 MB, free: 15.31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004033/0.4557, allocations: 250.1 kB / 462.3 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003596/0.4561, allocations: 35.66 kB / 462.3 MB, free: 15.12 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.4583, allocations: 0.8933 MB / 463.2 MB, free: 14.24 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.4587, allocations: 0.7915 MB / 464 MB, free: 13.42 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.4588, allocations: 35.27 kB / 464 MB, free: 13.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001332/0.459, allocations: 88.66 kB / 464.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.459, allocations: 0 / 464.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03934/0.4983, allocations: 9.356 MB / 473.5 MB, free: 3.988 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003724/0.4988, allocations: 134.2 kB / 473.6 MB, free: 3.797 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.154/2.653, allocations: 0 / 473.6 MB, free: 3.797 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat