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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 176.4 kB / 8.346 MB, free: 0.7266 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.479/1.479, allocations: 221.5 MB / 230.3 MB, free: 7.59 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.001043/0.001056, allocations: 91.61 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.227e-05/2.229e-05, allocations: 4 kB / 337.1 MB, free: 9.945 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1164, allocations: 50.42 MB / 387.6 MB, free: 7.492 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4602/0.5767, allocations: 78.15 MB / 465.7 MB, free: 0.582 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.5771, allocations: 67.97 kB / 465.8 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02151/0.5986, allocations: 5.608 MB / 471.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.5987, allocations: 0 / 471.4 MB, free: 10.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.5987, allocations: 8 kB / 471.4 MB, free: 10.89 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.001602/0.6003, allocations: 0.6004 MB / 472 MB, free: 10.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.994e-05/0.6004, allocations: 12.03 kB / 472 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.6006, allocations: 35.53 kB / 472 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004726/0.601, allocations: 251.6 kB / 472.3 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/0.6011, allocations: 16 kB / 472.3 MB, free: 9.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.385e-05/0.6012, allocations: 23.89 kB / 472.3 MB, free: 9.875 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008512/0.6021, allocations: 329.7 kB / 472.6 MB, free: 9.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007719/0.6029, allocations: 307.6 kB / 472.9 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.557e-05/0.6029, allocations: 0 / 472.9 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.309e-05/0.603, allocations: 3.953 kB / 472.9 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.603, allocations: 8 kB / 473 MB, free: 9.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002719/0.6057, allocations: 1.068 MB / 474 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005556/0.6063, allocations: 267.2 kB / 474.3 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003502/0.6067, allocations: 168.8 kB / 474.4 MB, free: 7.652 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.236e-05/0.6067, allocations: 7.938 kB / 474.5 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.6068, allocations: 39.25 kB / 474.5 MB, free: 7.598 MB / 346.7 MB Notification: Performance of pre-optimization done (n=41): time 2.235e-06/0.6068, allocations: 0 / 474.5 MB, free: 7.598 MB / 346.7 MB Notification: Performance of matching and sorting (n=47): time 0.004201/0.611, allocations: 1.37 MB / 475.9 MB, free: 6.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.6111, allocations: 55.84 kB / 475.9 MB, free: 6.062 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002442/0.6113, allocations: 175 kB / 476.1 MB, free: 5.883 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.69e-05/0.6114, allocations: 33.7 kB / 476.1 MB, free: 5.844 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.6115, allocations: 152.8 kB / 476.3 MB, free: 5.691 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.6117, allocations: 149.9 kB / 476.4 MB, free: 5.543 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.6118, allocations: 4.109 kB / 476.4 MB, free: 5.539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.612, allocations: 342.7 kB / 476.8 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000419/0.6124, allocations: 161.1 kB / 476.9 MB, free: 5.039 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004606/0.6129, allocations: 239.8 kB / 477.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005229/0.6134, allocations: 148.7 kB / 477.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.6134, allocations: 0 / 477.3 MB, free: 4.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001931/0.6153, allocations: 0.587 MB / 477.9 MB, free: 4.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.842e-05/0.6154, allocations: 8 kB / 477.9 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.024e-05/0.6154, allocations: 0 / 477.9 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009565/0.6164, allocations: 377.6 kB / 478.3 MB, free: 3.648 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.6168, allocations: 75.86 kB / 478.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/0.6185, allocations: 1.358 MB / 479.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006222/0.6192, allocations: 80.05 kB / 479.8 MB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.851e-05/0.6193, allocations: 23.98 kB / 479.8 MB, free: 2.062 MB / 346.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.0002775/0.6195, allocations: 129.4 kB / 479.9 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001567/0.6211, allocations: 0.4905 MB / 480.4 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.6212, allocations: 27.62 kB / 480.4 MB, free: 1.402 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.6232, allocations: 0.6015 MB / 481 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.6232, allocations: 4 kB / 481 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/0.6232, allocations: 0 / 481 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.809e-06/0.6232, allocations: 3.953 kB / 481 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00351/0.6268, allocations: 1.217 MB / 482.3 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/0.6268, allocations: 4 kB / 482.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.6272, allocations: 59.91 kB / 482.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008395/0.628, allocations: 345.6 kB / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.679e-05/0.6281, allocations: 19.97 kB / 482.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.6298, allocations: 1.296 MB / 484 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/0.6298, allocations: 3.938 kB / 484 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002201/0.632, allocations: 0.8698 MB / 484.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.6323, allocations: 156.7 kB / 485 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.6324, allocations: 11.94 kB / 485 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004282/0.6329, allocations: 47.89 kB / 485.1 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/0.6331, allocations: 99.78 kB / 485.2 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.6332, allocations: 23.97 kB / 485.2 MB, free: 12.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001851/0.6334, allocations: 144.5 kB / 485.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6334, allocations: 0 / 485.3 MB, free: 12.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007438/0.6342, allocations: 91.94 kB / 485.4 MB, free: 12.19 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.002978/0.6372, allocations: 1.79 MB / 487.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001253/0.6384, allocations: 485.9 kB / 487.7 MB, free: 9.852 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.6385, allocations: 0 / 487.7 MB, free: 9.852 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000678/0.6391, allocations: 259.7 kB / 487.9 MB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00058/0.6397, allocations: 30.19 kB / 488 MB, free: 9.57 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.643, allocations: 0.8985 MB / 488.9 MB, free: 8.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006143/0.6436, allocations: 0.7878 MB / 489.6 MB, free: 7.805 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000207/0.6439, allocations: 35.27 kB / 489.7 MB, free: 7.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.6441, allocations: 87.39 kB / 489.8 MB, free: 7.684 MB / 362.7 MB Notification: Performance of SimCode: time 1.212e-06/0.6441, allocations: 0 / 489.8 MB, free: 7.684 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04069/0.6848, allocations: 9.353 MB / 499.1 MB, free: 14.38 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002524/0.6851, allocations: 134.7 kB / 499.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.692, allocations: 3 kB / 499.3 MB, free: 14.18 MB / 378.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Brake_res.mat does not exist to compare? outputFormat=mat