Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.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.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors",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.001293/0.001293, allocations: 180.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009517/0.0009517, allocations: 91.16 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002644/0.0002644, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2416/0.2419, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1014/0.3433, allocations: 78.23 MB / 479.8 MB, free: 2.254 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.3436, allocations: 67.97 kB / 479.9 MB, free: 2.188 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007291/0.3509, allocations: 2.678 MB / 482.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.351, allocations: 4 kB / 482.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.351, allocations: 0 / 482.6 MB, free: 15.5 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006674/0.3517, allocations: 426.7 kB / 483 MB, free: 15.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.3517, allocations: 12.03 kB / 483 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.192e-05/0.3518, allocations: 46.55 kB / 483 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.043e-05/0.3519, allocations: 19.81 kB / 483.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.3521, allocations: 198.8 kB / 483.2 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.3521, allocations: 12 kB / 483.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.3522, allocations: 16 kB / 483.3 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003024/0.3525, allocations: 133.6 kB / 483.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.3525, allocations: 4 kB / 483.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.3525, allocations: 7.953 kB / 483.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.698e-06/0.3525, allocations: 4 kB / 483.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.3528, allocations: 107.6 kB / 483.5 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008492/0.3536, allocations: 0.5291 MB / 484.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001742/0.3538, allocations: 78.48 kB / 484.1 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.3538, allocations: 11.98 kB / 484.1 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.3539, allocations: 30.56 kB / 484.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/0.3539, allocations: 4 kB / 484.2 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.001092/0.355, allocations: 0.6109 MB / 484.8 MB, free: 13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.355, allocations: 51.41 kB / 484.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.3552, allocations: 116.9 kB / 485 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.3552, allocations: 29.7 kB / 485 MB, free: 12.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.046e-05/0.3553, allocations: 132 kB / 485.1 MB, free: 12.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.218e-05/0.3553, allocations: 39.36 kB / 485.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.926e-06/0.3553, allocations: 8 kB / 485.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3555, allocations: 322.8 kB / 485.5 MB, free: 12.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.462e-05/0.3556, allocations: 35.98 kB / 485.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.3557, allocations: 89.72 kB / 485.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.173e-05/0.3558, allocations: 47.94 kB / 485.6 MB, free: 12.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.3558, allocations: 7.984 kB / 485.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002467/0.356, allocations: 153.5 kB / 485.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.3561, allocations: 12.03 kB / 485.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3561, allocations: 0 / 485.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.3561, allocations: 4 kB / 485.8 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.3563, allocations: 39.92 kB / 485.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.3563, allocations: 0 / 485.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.807e-05/0.3564, allocations: 7.984 kB / 485.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.352e-05/0.3564, allocations: 12 kB / 485.9 MB, free: 11.85 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 0.0001053/0.3565, allocations: 137.7 kB / 486 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.3565, allocations: 7.906 kB / 486 MB, free: 11.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.291e-05/0.3566, allocations: 12.38 kB / 486 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.3566, allocations: 4 kB / 486 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3566, allocations: 0 / 486 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3566, allocations: 0 / 486 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005701/0.3572, allocations: 456.2 kB / 486.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3572, allocations: 0 / 486.5 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001316/0.3573, allocations: 27.98 kB / 486.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3573, allocations: 0 / 486.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.3573, allocations: 3.984 kB / 486.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.3574, allocations: 8 kB / 486.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3574, allocations: 0 / 486.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003222/0.3577, allocations: 281.6 kB / 486.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.693e-05/0.3577, allocations: 85.05 kB / 486.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.271e-05/0.3578, allocations: 12 kB / 486.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.247e-05/0.3579, allocations: 8 kB / 486.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.216e-05/0.3579, allocations: 7.984 kB / 486.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.3579, allocations: 4 kB / 486.9 MB, free: 10.69 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.446e-05/0.358, allocations: 99.27 kB / 487 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.358, allocations: 0 / 487 MB, free: 10.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002581/0.3583, allocations: 28 kB / 487 MB, free: 10.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0006564/0.3589, allocations: 0.9494 MB / 488 MB, free: 9.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.3591, allocations: 91.84 kB / 488.1 MB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3592, allocations: 4 kB / 488.1 MB, free: 9.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.684e-05/0.3592, allocations: 43.91 kB / 488.1 MB, free: 9.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002406/0.3595, allocations: 4.562 kB / 488.1 MB, free: 9.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.3612, allocations: 2.026 MB / 490.1 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.3615, allocations: 0.7199 MB / 490.9 MB, free: 6.57 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.067e-05/0.3616, allocations: 16.88 kB / 490.9 MB, free: 6.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.707e-05/0.3616, allocations: 39.89 kB / 490.9 MB, free: 6.516 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.3617, allocations: 0 / 490.9 MB, free: 6.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01463/0.3763, allocations: 2.08 MB / 493 MB, free: 4.57 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.3766, allocations: 180.1 kB / 493.2 MB, free: 4.328 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.603/1.98, allocations: 0 / 493.2 MB, free: 4.328 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat