Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.332/2.332, allocations: 390.3 MB / 402.8 MB, free: 6.664 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 176.8 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.568/1.568, allocations: 221.3 MB / 0.7915 GB, free: 5.41 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000956/0.0009558, allocations: 87.84 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.757e-05/3.781e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2734, allocations: 143 MB / 1.219 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.105/1.379, allocations: 389.9 MB / 1.6 GB, free: 12.34 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001953/1.379, allocations: 72.78 kB / 1.6 GB, free: 12.3 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 0.02744/1.406, allocations: 13.27 MB / 1.613 GB, free: 15.18 MB / 1.073 GB Notification: Performance of FrontEnd: time 1.563e-06/1.406, allocations: 0 / 1.613 GB, free: 15.18 MB / 1.073 GB Notification: Performance of Transformations before backend: time 5.971e-06/1.406, allocations: 0 / 1.613 GB, free: 15.18 MB / 1.073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002971/1.407, allocations: 334.5 kB / 1.613 GB, free: 14.81 MB / 1.073 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/1.407, allocations: 16.03 kB / 1.613 GB, free: 14.79 MB / 1.073 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.884e-05/1.407, allocations: 38.48 kB / 1.613 GB, free: 14.75 MB / 1.073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.009e-05/1.407, allocations: 3.953 kB / 1.613 GB, free: 14.74 MB / 1.073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/1.407, allocations: 163.1 kB / 1.613 GB, free: 14.54 MB / 1.073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.512e-05/1.407, allocations: 29.7 kB / 1.613 GB, free: 14.51 MB / 1.073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/1.407, allocations: 0 / 1.613 GB, free: 14.51 MB / 1.073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/1.407, allocations: 41.69 kB / 1.613 GB, free: 14.46 MB / 1.073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/1.407, allocations: 0 / 1.613 GB, free: 14.46 MB / 1.073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/1.407, allocations: 0 / 1.613 GB, free: 14.46 MB / 1.073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.981e-05/1.407, allocations: 8 kB / 1.613 GB, free: 14.45 MB / 1.073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.078e-05/1.407, allocations: 19.94 kB / 1.613 GB, free: 14.43 MB / 1.073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004271/1.408, allocations: 342.6 kB / 1.614 GB, free: 14.03 MB / 1.073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.642e-05/1.408, allocations: 18.58 kB / 1.614 GB, free: 14 MB / 1.073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.429e-05/1.408, allocations: 4.859 kB / 1.614 GB, free: 14 MB / 1.073 GB Notification: Performance of preOpt evalFunc (simulation): time 7.057e-05/1.408, allocations: 81.17 kB / 1.614 GB, free: 13.9 MB / 1.073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/1.408, allocations: 34.56 kB / 1.614 GB, free: 13.86 MB / 1.073 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/1.408, allocations: 4 kB / 1.614 GB, free: 13.85 MB / 1.073 GB Notification: Performance of matching and sorting (n=1): time 0.0001293/1.408, allocations: 41.58 kB / 1.614 GB, free: 13.8 MB / 1.073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/1.408, allocations: 55.41 kB / 1.614 GB, free: 13.74 MB / 1.073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.035e-05/1.408, allocations: 89 kB / 1.614 GB, free: 13.64 MB / 1.073 GB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/1.408, allocations: 25.7 kB / 1.614 GB, free: 13.61 MB / 1.073 GB Notification: Performance of collectInitialEqns (initialization): time 4.815e-05/1.408, allocations: 99.97 kB / 1.614 GB, free: 13.51 MB / 1.073 GB Notification: Performance of collectInitialBindings (initialization): time 4.689e-06/1.408, allocations: 0 / 1.614 GB, free: 13.51 MB / 1.073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-06/1.408, allocations: 4.031 kB / 1.614 GB, free: 13.51 MB / 1.073 GB Notification: Performance of setup shared object (initialization): time 9.37e-05/1.408, allocations: 314.8 kB / 1.614 GB, free: 13.19 MB / 1.073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.339e-05/1.408, allocations: 4 kB / 1.614 GB, free: 13.19 MB / 1.073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.36e-05/1.408, allocations: 17.72 kB / 1.614 GB, free: 13.16 MB / 1.073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.076e-05/1.408, allocations: 4 kB / 1.614 GB, free: 13.16 MB / 1.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/1.408, allocations: 0 / 1.614 GB, free: 13.16 MB / 1.073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.053e-05/1.408, allocations: 53.56 kB / 1.614 GB, free: 13.1 MB / 1.073 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.408, allocations: 9.406 kB / 1.614 GB, free: 13.09 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/1.408, allocations: 0 / 1.614 GB, free: 13.09 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/1.408, allocations: 3.953 kB / 1.614 GB, free: 13.09 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.142e-05/1.408, allocations: 11.98 kB / 1.614 GB, free: 13.08 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/1.408, allocations: 0 / 1.614 GB, free: 13.08 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.94e-05/1.409, allocations: 7.906 kB / 1.614 GB, free: 13.07 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.018e-05/1.409, allocations: 0 / 1.614 GB, free: 13.07 MB / 1.073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.508e-05/1.409, allocations: 105 kB / 1.614 GB, free: 12.96 MB / 1.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.25e-05/1.409, allocations: 4.062 kB / 1.614 GB, free: 12.96 MB / 1.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/1.409, allocations: 120.9 kB / 1.615 GB, free: 12.83 MB / 1.073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.888e-05/1.409, allocations: 180.2 kB / 1.615 GB, free: 12.64 MB / 1.073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.741e-05/1.409, allocations: 184.2 kB / 1.615 GB, free: 12.46 MB / 1.073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.919e-05/1.409, allocations: 180.3 kB / 1.615 GB, free: 12.27 MB / 1.073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/1.409, allocations: 409.2 kB / 1.616 GB, free: 11.82 MB / 1.073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.264e-05/1.409, allocations: 101 kB / 1.616 GB, free: 11.71 MB / 1.073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.346e-05/1.409, allocations: 105 kB / 1.616 GB, free: 11.6 MB / 1.073 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.035e-05/1.409, allocations: 184.2 kB / 1.616 GB, free: 11.41 MB / 1.073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.429e-05/1.409, allocations: 176.6 kB / 1.616 GB, free: 11.23 MB / 1.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.477e-05/1.409, allocations: 184.2 kB / 1.616 GB, free: 11.05 MB / 1.073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.988e-05/1.41, allocations: 188.3 kB / 1.616 GB, free: 10.86 MB / 1.073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/1.41, allocations: 307.7 kB / 1.617 GB, free: 10.53 MB / 1.073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.789e-05/1.41, allocations: 186.1 kB / 1.617 GB, free: 10.32 MB / 1.073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/1.41, allocations: 184.2 kB / 1.617 GB, free: 10.14 MB / 1.073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/1.41, allocations: 113 kB / 1.617 GB, free: 10.02 MB / 1.073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/1.41, allocations: 176.3 kB / 1.617 GB, free: 9.84 MB / 1.073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.91e-05/1.41, allocations: 104.9 kB / 1.617 GB, free: 9.73 MB / 1.073 GB Notification: Performance of sorting global known variables: time 4.525e-05/1.41, allocations: 91.23 kB / 1.618 GB, free: 9.641 MB / 1.073 GB Notification: Performance of sort global known variables: time 1.31e-07/1.41, allocations: 3.938 kB / 1.618 GB, free: 9.637 MB / 1.073 GB Notification: Performance of remove unused functions: time 0.0002294/1.41, allocations: 19.94 kB / 1.618 GB, free: 9.617 MB / 1.073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0004277/1.411, allocations: 0.8416 MB / 1.618 GB, free: 8.746 MB / 1.073 GB Notification: Performance of simCode: created initialization part: time 5.688e-05/1.411, allocations: 15.98 kB / 1.618 GB, free: 8.73 MB / 1.073 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/1.411, allocations: 0 / 1.618 GB, free: 8.73 MB / 1.073 GB Notification: Performance of simCode: created simulation system equations: time 1.412e-06/1.411, allocations: 0 / 1.618 GB, free: 8.73 MB / 1.073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/1.411, allocations: 0.5192 MB / 1.619 GB, free: 8.207 MB / 1.073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003011/1.411, allocations: 173.9 kB / 1.619 GB, free: 8 MB / 1.073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/1.412, allocations: 0.677 MB / 1.62 GB, free: 7.297 MB / 1.073 GB Notification: Performance of simCode: alias equations: time 3.991e-05/1.412, allocations: 4 kB / 1.62 GB, free: 7.293 MB / 1.073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.652e-05/1.412, allocations: 11.44 kB / 1.62 GB, free: 7.281 MB / 1.073 GB Notification: Performance of SimCode: time 2.71e-07/1.412, allocations: 3.938 kB / 1.62 GB, free: 7.277 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01112/1.423, allocations: 1.629 MB / 1.621 GB, free: 5.789 MB / 1.073 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001497/1.423, allocations: 167 kB / 1.621 GB, free: 5.562 MB / 1.073 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.425/2.848, allocations: 0 / 1.621 GB, free: 5.562 MB / 1.073 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat does not exist to compare? outputFormat=mat