Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Translational_Examples_Brake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Brake,fileNamePrefix="Modelica_3_2_3_cpp_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.002301/0.002301, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.075/2.075, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00113/0.00113, allocations: 87.33 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 1.977e-05/1.988e-05, allocations: 0 / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3441/0.3442, allocations: 47.55 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1514/0.4956, allocations: 76.77 MB / 439.2 MB, free: 9.465 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.496, allocations: 63.97 kB / 439.3 MB, free: 9.402 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02767/0.5236, allocations: 5.516 MB / 444.8 MB, free: 3.914 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5237, allocations: 0.9375 kB / 444.8 MB, free: 3.914 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.5237, allocations: 8 kB / 444.8 MB, free: 3.906 MB / 331.1 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.001836/0.5256, allocations: 0.591 MB / 445.4 MB, free: 3.273 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/0.5257, allocations: 15.97 kB / 445.4 MB, free: 3.258 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.5258, allocations: 35.53 kB / 445.4 MB, free: 3.223 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.5264, allocations: 263.5 kB / 445.7 MB, free: 2.926 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.5264, allocations: 12 kB / 445.7 MB, free: 2.914 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.5265, allocations: 27.86 kB / 445.7 MB, free: 2.887 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009945/0.5276, allocations: 321.9 kB / 446 MB, free: 2.57 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008552/0.5284, allocations: 311.6 kB / 446.3 MB, free: 2.258 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.5285, allocations: 9.594 kB / 446.3 MB, free: 2.25 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.5285, allocations: 0 / 446.3 MB, free: 2.25 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.5286, allocations: 8 kB / 446.4 MB, free: 2.242 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003623/0.5322, allocations: 1.055 MB / 447.4 MB, free: 1.125 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006624/0.5329, allocations: 267.1 kB / 447.7 MB, free: 0.8477 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004253/0.5334, allocations: 164.8 kB / 447.8 MB, free: 0.6836 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.84e-05/0.5335, allocations: 4 kB / 447.8 MB, free: 0.6797 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/0.5335, allocations: 38.52 kB / 447.9 MB, free: 0.6328 MB / 331.1 MB Notification: Performance of pre-optimization done (n=41): time 3.697e-06/0.5335, allocations: 0 / 447.9 MB, free: 0.6328 MB / 331.1 MB Notification: Performance of matching and sorting (n=47): time 0.005023/0.5386, allocations: 1.374 MB / 449.2 MB, free: 15.16 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.5387, allocations: 55.84 kB / 449.3 MB, free: 15.1 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002804/0.539, allocations: 171 kB / 449.5 MB, free: 14.92 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.5391, allocations: 37.69 kB / 449.5 MB, free: 14.88 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.5393, allocations: 207.3 kB / 449.7 MB, free: 14.68 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.5395, allocations: 149.9 kB / 449.9 MB, free: 14.53 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.459e-05/0.5395, allocations: 0 / 449.9 MB, free: 14.53 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001593/0.5397, allocations: 334.8 kB / 450.2 MB, free: 14.19 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/0.5402, allocations: 163.5 kB / 450.3 MB, free: 14.04 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005432/0.5408, allocations: 235.8 kB / 450.6 MB, free: 13.78 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005985/0.5414, allocations: 144.7 kB / 450.7 MB, free: 13.63 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.5414, allocations: 4 kB / 450.7 MB, free: 13.63 MB / 347.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00243/0.5438, allocations: 0.587 MB / 451.3 MB, free: 13.04 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.5439, allocations: 4 kB / 451.3 MB, free: 13.03 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.144e-05/0.544, allocations: 8 kB / 451.3 MB, free: 13.02 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.5451, allocations: 377.6 kB / 451.7 MB, free: 12.65 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005539/0.5457, allocations: 71.91 kB / 451.8 MB, free: 12.58 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002209/0.5479, allocations: 1.359 MB / 453.1 MB, free: 11.17 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009202/0.5489, allocations: 79.98 kB / 453.2 MB, free: 11.09 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.549, allocations: 24.09 kB / 453.2 MB, free: 11.07 MB / 347.1 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.0003148/0.5494, allocations: 133 kB / 453.3 MB, free: 10.93 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001958/0.5513, allocations: 0.4895 MB / 453.8 MB, free: 10.43 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.5515, allocations: 27.62 kB / 453.9 MB, free: 10.4 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002381/0.5539, allocations: 0.6051 MB / 454.5 MB, free: 9.781 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.554, allocations: 4 kB / 454.5 MB, free: 9.777 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.554, allocations: 0 / 454.5 MB, free: 9.777 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.554, allocations: 3.984 kB / 454.5 MB, free: 9.773 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004507/0.5586, allocations: 1.219 MB / 455.7 MB, free: 8.492 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.5586, allocations: 4.156 kB / 455.7 MB, free: 8.488 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005809/0.5592, allocations: 59.92 kB / 455.8 MB, free: 8.43 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00102/0.5603, allocations: 345.4 kB / 456.1 MB, free: 8.086 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.766e-05/0.5604, allocations: 20.23 kB / 456.1 MB, free: 8.07 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.5623, allocations: 1.3 MB / 457.4 MB, free: 6.719 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.959e-06/0.5623, allocations: 3.938 kB / 457.4 MB, free: 6.715 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002765/0.5651, allocations: 0.862 MB / 458.3 MB, free: 5.785 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003457/0.5655, allocations: 148.8 kB / 458.4 MB, free: 5.621 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.5657, allocations: 8 kB / 458.4 MB, free: 5.613 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005986/0.5663, allocations: 47.95 kB / 458.5 MB, free: 5.566 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003196/0.5666, allocations: 103.9 kB / 458.6 MB, free: 5.465 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.629e-05/0.5667, allocations: 27.97 kB / 458.6 MB, free: 5.438 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002154/0.5669, allocations: 148.5 kB / 458.8 MB, free: 5.289 MB / 347.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.5669, allocations: 0 / 458.8 MB, free: 5.289 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007102/0.5677, allocations: 95.88 kB / 458.8 MB, free: 5.195 MB / 347.1 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.00358/0.5713, allocations: 1.795 MB / 460.6 MB, free: 3.34 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.5728, allocations: 480.8 kB / 461.1 MB, free: 2.859 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/0.5728, allocations: 4.312 kB / 461.1 MB, free: 2.855 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008093/0.5737, allocations: 251.8 kB / 461.4 MB, free: 2.609 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006281/0.5743, allocations: 36.67 kB / 461.4 MB, free: 2.574 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.5784, allocations: 0.9333 MB / 462.3 MB, free: 1.586 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.5789, allocations: 0.7839 MB / 463.1 MB, free: 0.7734 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.5792, allocations: 91.95 kB / 463.2 MB, free: 0.6836 MB / 347.1 MB Notification: Performance of SimCode: time 3.006e-06/0.5792, allocations: 0 / 463.2 MB, free: 0.6836 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.999/3.578, allocations: 7.545 MB / 470.7 MB, free: 9.172 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Brake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat