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.001632/0.001632, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.653/1.653, allocations: 225.6 MB / 234.8 MB, free: 3.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009619/0.0009618, allocations: 92.69 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.531e-05/3.519e-05, allocations: 4 kB / 343.8 MB, free: 8.156 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1559, allocations: 51.47 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4922/0.6482, allocations: 78.32 MB / 473.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003255/0.6486, allocations: 65.5 kB / 473.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009019/0.6577, allocations: 2.763 MB / 476.4 MB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.6578, allocations: 4 kB / 476.4 MB, free: 11.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.6578, allocations: 4 kB / 476.4 MB, free: 11.45 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.0007582/0.6586, allocations: 410.6 kB / 476.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.858e-05/0.6587, allocations: 8.031 kB / 476.8 MB, free: 11.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002039/0.6589, allocations: 26.62 kB / 476.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002848/0.6592, allocations: 199.5 kB / 477 MB, free: 10.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.6592, allocations: 12 kB / 477 MB, free: 10.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.6593, allocations: 13.34 kB / 477.1 MB, free: 10.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002035/0.6595, allocations: 76.97 kB / 477.1 MB, free: 10.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.6597, allocations: 106.1 kB / 477.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.6597, allocations: 3.906 kB / 477.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.6597, allocations: 1.5 kB / 477.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.6598, allocations: 4 kB / 477.3 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008404/0.6606, allocations: 0.4928 MB / 477.7 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001334/0.6608, allocations: 72.95 kB / 477.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.752e-05/0.6608, allocations: 22.62 kB / 477.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.6608, allocations: 0 / 477.8 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.6609, allocations: 37.75 kB / 477.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=9): time 1.103e-06/0.6609, allocations: 0 / 477.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0008328/0.6617, allocations: 0.5269 MB / 478.4 MB, free: 9.559 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.47e-05/0.6618, allocations: 52.2 kB / 478.5 MB, free: 9.496 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.724e-05/0.6619, allocations: 113.4 kB / 478.6 MB, free: 9.391 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.6619, allocations: 25.7 kB / 478.6 MB, free: 9.359 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.567e-05/0.662, allocations: 142.4 kB / 478.7 MB, free: 9.234 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.662, allocations: 34.56 kB / 478.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.662, allocations: 0 / 478.8 MB, free: 9.207 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.941e-05/0.6621, allocations: 325.3 kB / 479.1 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.123e-05/0.6622, allocations: 30.69 kB / 479.1 MB, free: 8.867 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.817e-05/0.6623, allocations: 67.59 kB / 479.2 MB, free: 8.789 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.936e-05/0.6623, allocations: 41.98 kB / 479.2 MB, free: 8.766 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.6624, allocations: 4 kB / 479.2 MB, free: 8.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001964/0.6626, allocations: 120.9 kB / 479.3 MB, free: 8.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.6626, allocations: 4 kB / 479.3 MB, free: 8.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.6626, allocations: 4 kB / 479.3 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.6626, allocations: 4 kB / 479.3 MB, free: 8.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001644/0.6628, allocations: 37.47 kB / 479.4 MB, free: 8.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.6628, allocations: 8.188 kB / 479.4 MB, free: 8.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.66e-05/0.6629, allocations: 17.22 kB / 479.4 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/0.6629, allocations: 7.25 kB / 479.4 MB, free: 8.598 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 5.945e-05/0.663, allocations: 108.9 kB / 479.5 MB, free: 8.484 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001286/0.6631, allocations: 84.67 kB / 479.6 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.6632, allocations: 11.91 kB / 479.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.97e-05/0.6632, allocations: 9.875 kB / 479.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.6632, allocations: 0 / 479.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.6632, allocations: 7.891 kB / 479.6 MB, free: 8.395 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.6632, allocations: 8 kB / 479.6 MB, free: 8.387 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004064/0.6636, allocations: 386 kB / 480 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.6637, allocations: 0 / 480 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001328/0.6638, allocations: 31.03 kB / 480.1 MB, free: 8.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.6638, allocations: 3.953 kB / 480.1 MB, free: 8.004 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.6638, allocations: 4.062 kB / 480.1 MB, free: 8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.6638, allocations: 5.594 kB / 480.1 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6638, allocations: 0 / 480.1 MB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.6641, allocations: 252 kB / 480.3 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.505e-05/0.6641, allocations: 90.28 kB / 480.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.6642, allocations: 0 / 480.4 MB, free: 7.648 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.111e-05/0.6643, allocations: 4.984 kB / 480.4 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.525e-05/0.6643, allocations: 7.797 kB / 480.4 MB, free: 7.641 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.6643, allocations: 7.688 kB / 480.4 MB, free: 7.637 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.6644, allocations: 89.12 kB / 480.5 MB, free: 7.555 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6644, allocations: 0 / 480.5 MB, free: 7.555 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002805/0.6647, allocations: 27.94 kB / 480.5 MB, free: 7.527 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.0004531/0.6651, allocations: 0.9279 MB / 481.5 MB, free: 6.602 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001567/0.6653, allocations: 76.62 kB / 481.5 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6653, allocations: 0 / 481.5 MB, free: 6.547 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.068e-05/0.6654, allocations: 30.17 kB / 481.6 MB, free: 6.527 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002415/0.6656, allocations: 13.61 kB / 481.6 MB, free: 6.516 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008631/0.6665, allocations: 339.9 kB / 481.9 MB, free: 6.199 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.6667, allocations: 0.7183 MB / 482.6 MB, free: 5.473 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 6.499e-05/0.6668, allocations: 19.41 kB / 482.6 MB, free: 5.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.274e-05/0.6669, allocations: 37.03 kB / 482.7 MB, free: 5.441 MB / 346.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6669, allocations: 0 / 482.7 MB, free: 5.441 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02345/0.6903, allocations: 1.765 MB / 484.4 MB, free: 4.172 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.6906, allocations: 139.7 kB / 484.6 MB, free: 3.98 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.76/2.451, allocations: 4.031 kB / 484.6 MB, free: 3.977 MB / 346.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