Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.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.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Sensors,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001744/0.001744, allocations: 196.1 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.565/1.565, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001185/0.001186, allocations: 101.3 kB / 292.1 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.663e-05/5.678e-05, allocations: 0 / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1534, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4822/0.6357, allocations: 78.98 MB / 481.1 MB, free: 10.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/0.636, allocations: 74.28 kB / 481.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007901/0.6439, allocations: 2.778 MB / 483.9 MB, free: 8.051 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.644, allocations: 0 / 483.9 MB, free: 8.051 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.644, allocations: 7.938 kB / 484 MB, free: 8.043 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005363/0.6445, allocations: 405.3 kB / 484.4 MB, free: 7.617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.6446, allocations: 12.03 kB / 484.4 MB, free: 7.605 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.013e-05/0.6447, allocations: 47.42 kB / 484.4 MB, free: 7.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001718/0.6448, allocations: 32.58 kB / 484.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.6451, allocations: 201.6 kB / 484.6 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.6451, allocations: 12.62 kB / 484.7 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.363e-05/0.6451, allocations: 22.17 kB / 484.7 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.6454, allocations: 130.6 kB / 484.8 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.6455, allocations: 3.906 kB / 484.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.6455, allocations: 3.5 kB / 484.8 MB, free: 7.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.6455, allocations: 4 kB / 484.8 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.6457, allocations: 85.17 kB / 484.9 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008562/0.6465, allocations: 0.5382 MB / 485.4 MB, free: 6.609 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001482/0.6467, allocations: 66.19 kB / 485.5 MB, free: 6.551 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.575e-05/0.6468, allocations: 23.55 kB / 485.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.6468, allocations: 4 kB / 485.5 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.6468, allocations: 33.75 kB / 485.6 MB, free: 6.488 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 2.524e-06/0.6468, allocations: 0 / 485.6 MB, free: 6.488 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008196/0.6476, allocations: 0.5573 MB / 486.1 MB, free: 5.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.377e-05/0.6477, allocations: 55.41 kB / 486.2 MB, free: 5.828 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001004/0.6478, allocations: 116.7 kB / 486.3 MB, free: 5.715 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.6478, allocations: 25.7 kB / 486.3 MB, free: 5.684 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.622e-05/0.6479, allocations: 139.2 kB / 486.4 MB, free: 5.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.811e-05/0.6479, allocations: 37.95 kB / 486.5 MB, free: 5.523 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-06/0.648, allocations: 4 kB / 486.5 MB, free: 5.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.631e-05/0.648, allocations: 325.1 kB / 486.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.837e-05/0.6481, allocations: 23.19 kB / 486.8 MB, free: 5.184 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.939e-05/0.6482, allocations: 81.73 kB / 486.9 MB, free: 5.094 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.963e-05/0.6482, allocations: 41.48 kB / 486.9 MB, free: 5.062 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.6483, allocations: 2.25 kB / 486.9 MB, free: 5.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001961/0.6485, allocations: 140 kB / 487.1 MB, free: 4.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.6485, allocations: 11.98 kB / 487.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.6485, allocations: 4.188 kB / 487.1 MB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.6485, allocations: 7.953 kB / 487.1 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.6487, allocations: 35.92 kB / 487.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.6487, allocations: 10.33 kB / 487.2 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.707e-05/0.6488, allocations: 9.688 kB / 487.2 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.6488, allocations: 8 kB / 487.2 MB, free: 4.871 MB / 346.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 () * 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 6.802e-05/0.6489, allocations: 108.7 kB / 487.3 MB, free: 4.762 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.6489, allocations: 15.12 kB / 487.3 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.17e-05/0.649, allocations: 19.56 kB / 487.3 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.649, allocations: 0 / 487.3 MB, free: 4.742 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.812e-06/0.649, allocations: 3.953 kB / 487.3 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.649, allocations: 4 kB / 487.3 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004089/0.6494, allocations: 431.6 kB / 487.7 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.6494, allocations: 0 / 487.7 MB, free: 4.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001322/0.6496, allocations: 32 kB / 487.8 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.6496, allocations: 4 kB / 487.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.6496, allocations: 0 / 487.8 MB, free: 4.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.6496, allocations: 7.984 kB / 487.8 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.6496, allocations: 0 / 487.8 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002509/0.6499, allocations: 265.8 kB / 488 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.689e-05/0.6499, allocations: 86.83 kB / 488.1 MB, free: 3.898 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.6499, allocations: 4 kB / 488.1 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-05/0.65, allocations: 7.25 kB / 488.1 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.6501, allocations: 7.984 kB / 488.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.595e-06/0.6501, allocations: 2.062 kB / 488.1 MB, free: 3.883 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.715e-05/0.6501, allocations: 100 kB / 488.2 MB, free: 3.793 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6501, allocations: 4.062 kB / 488.2 MB, free: 3.789 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002506/0.6504, allocations: 35.12 kB / 488.3 MB, free: 3.758 MB / 346.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 () * 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.0004477/0.6508, allocations: 0.9307 MB / 489.2 MB, free: 2.816 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001534/0.651, allocations: 82.67 kB / 489.3 MB, free: 2.754 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.651, allocations: 0 / 489.3 MB, free: 2.754 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.178e-05/0.6511, allocations: 37.97 kB / 489.3 MB, free: 2.727 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.6513, allocations: 15.2 kB / 489.3 MB, free: 2.715 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000734/0.652, allocations: 341.2 kB / 489.7 MB, free: 2.375 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001906/0.6523, allocations: 0.7238 MB / 490.4 MB, free: 1.625 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.723e-05/0.6523, allocations: 4.891 kB / 490.4 MB, free: 1.617 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.127e-05/0.6524, allocations: 42.67 kB / 490.4 MB, free: 1.598 MB / 346.7 MB Notification: Performance of SimCode: time 5.1e-07/0.6524, allocations: 0.8438 kB / 490.5 MB, free: 1.598 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01416/0.6666, allocations: 2.071 MB / 492.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.6668, allocations: 168.7 kB / 492.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.391, allocations: 0 / 492.7 MB, free: 15.49 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Sensors.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Sensors_res.mat does not exist to compare? outputFormat=mat