Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008841/0.0008842, allocations: 92.23 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005313/0.005313, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.244/1.244, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001668/0.001668, allocations: 262.2 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8886/0.8886, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003859/0.0003859, allocations: 11.06 kB / 0.5987 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1379, allocations: 88.54 MB / 0.6852 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.3953/0.5332, allocations: 131.6 MB / 0.8137 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0001261/0.5333, allocations: 60.55 kB / 0.8138 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.5334, allocations: 0 / 0.8138 GB, free: 0.5664 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.687e-05/0.5335, allocations: 4.469 kB / 0.8138 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 6.392e-05/0.5335, allocations: 13.22 kB / 0.8138 GB, free: 0.5586 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006962/0.5342, allocations: 221.3 kB / 0.814 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 9.352e-05/0.5343, allocations: 64.62 kB / 0.8141 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 2.812e-05/0.5344, allocations: 5.656 kB / 0.8141 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.5344, allocations: 13.61 kB / 0.8141 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.96e-05/0.5345, allocations: 14.67 kB / 0.8141 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.091e-05/0.5345, allocations: 0.9688 kB / 0.8141 GB, free: 0.5078 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003917/0.5349, allocations: 243.7 kB / 0.8143 GB, free: 496 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.5349, allocations: 10.05 kB / 0.8143 GB, free: 496 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.701e-05/0.535, allocations: 33.92 kB / 0.8144 GB, free: 16.45 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002843/0.5353, allocations: 197.5 kB / 0.8145 GB, free: 16.44 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.5353, allocations: 0 / 0.8145 GB, free: 16.44 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.884e-06/0.5353, allocations: 4 kB / 0.8146 GB, free: 16.43 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.297e-06/0.5353, allocations: 5 kB / 0.8146 GB, free: 16.43 MB / 0.5606 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.0003015/0.5356, allocations: 348.1 kB / 0.8149 GB, free: 16.07 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.5357, allocations: 9.781 kB / 0.8149 GB, free: 16.07 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.5357, allocations: 35.47 kB / 0.8149 GB, free: 16.03 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.5357, allocations: 5.812 kB / 0.8149 GB, free: 16.02 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.94e-05/0.5358, allocations: 164.8 kB / 0.8151 GB, free: 15.83 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.068e-05/0.5359, allocations: 31.11 kB / 0.8151 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.712e-06/0.5359, allocations: 5.094 kB / 0.8151 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001023/0.536, allocations: 47.78 kB / 0.8152 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.44e-06/0.536, allocations: 0 / 0.8152 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.536, allocations: 1.156 kB / 0.8152 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.5361, allocations: 1.125 kB / 0.8152 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.083e-05/0.5361, allocations: 19.33 kB / 0.8152 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005989/0.5367, allocations: 0.6031 MB / 0.8158 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 2.473e-05/0.5367, allocations: 20.8 kB / 0.8158 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.137e-05/0.5368, allocations: 5.797 kB / 0.8158 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001697/0.5369, allocations: 336.6 kB / 0.8161 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.762e-05/0.537, allocations: 34.42 kB / 0.8162 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.537, allocations: 0 / 0.8162 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001147/0.5371, allocations: 32.08 kB / 0.8162 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.821e-05/0.5371, allocations: 60.59 kB / 0.8163 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.7e-05/0.5372, allocations: 101.6 kB / 0.8163 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.5372, allocations: 26.73 kB / 0.8164 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.451e-05/0.5373, allocations: 97.48 kB / 0.8165 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.137e-06/0.5373, allocations: 1.156 kB / 0.8165 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.682e-05/0.5373, allocations: 9.719 kB / 0.8165 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.726e-05/0.5374, allocations: 321.8 kB / 0.8168 GB, free: 14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.291e-05/0.5374, allocations: 3.375 kB / 0.8168 GB, free: 14 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.681e-05/0.5374, allocations: 23.11 kB / 0.8168 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.531e-05/0.5374, allocations: 19.69 kB / 0.8168 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5374, allocations: 0 / 0.8168 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.693e-05/0.5375, allocations: 49.58 kB / 0.8169 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.5375, allocations: 7.625 kB / 0.8169 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-06/0.5375, allocations: 1.312 kB / 0.8169 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.185e-06/0.5376, allocations: 4.062 kB / 0.8169 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.621e-05/0.5376, allocations: 5.781 kB / 0.8169 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.5376, allocations: 1.406 kB / 0.8169 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.779e-05/0.5376, allocations: 4.938 kB / 0.8169 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.275e-06/0.5376, allocations: 5.5 kB / 0.8169 GB, free: 13.91 MB / 0.5606 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.934e-05/0.5377, allocations: 115.7 kB / 0.817 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.325e-05/0.5377, allocations: 1.25 kB / 0.817 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.279e-05/0.5378, allocations: 117.5 kB / 0.8171 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.798e-05/0.5379, allocations: 185.6 kB / 0.8173 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.715e-05/0.5379, allocations: 179 kB / 0.8175 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.337e-05/0.538, allocations: 180 kB / 0.8176 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.5381, allocations: 409.6 kB / 0.818 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.626e-05/0.5382, allocations: 107.9 kB / 0.8181 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.952e-05/0.5382, allocations: 110 kB / 0.8182 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.39e-05/0.5383, allocations: 177.3 kB / 0.8184 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.473e-05/0.5383, allocations: 183.4 kB / 0.8186 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.485e-05/0.5384, allocations: 181.2 kB / 0.8188 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.525e-05/0.5384, allocations: 177.3 kB / 0.8189 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.5385, allocations: 318.1 kB / 0.8192 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.877e-05/0.5386, allocations: 182.7 kB / 0.8194 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.5387, allocations: 181.2 kB / 0.8196 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.5388, allocations: 113.2 kB / 0.8197 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.79e-05/0.5389, allocations: 185.2 kB / 0.8199 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.5389, allocations: 104.5 kB / 0.82 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.041e-05/0.5389, allocations: 87.06 kB / 0.82 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5389, allocations: 1.094 kB / 0.8201 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002806/0.5392, allocations: 56.75 kB / 0.8201 GB, free: 10.54 MB / 0.5606 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004573/0.5397, allocations: 0.8854 MB / 0.821 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 5.286e-05/0.5398, allocations: 12.14 kB / 0.821 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.5398, allocations: 128 / 0.821 GB, free: 9.711 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.302e-06/0.5398, allocations: 5.062 kB / 0.821 GB, free: 9.707 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000353/0.5401, allocations: 0.5223 MB / 0.8215 GB, free: 9.184 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008233/0.541, allocations: 1.352 MB / 0.8228 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.5411, allocations: 0.6768 MB / 0.8235 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.55e-05/0.5412, allocations: 5.641 kB / 0.8235 GB, free: 7.164 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.837e-05/0.5412, allocations: 9.438 kB / 0.8235 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of SimCode: time 2.41e-07/0.5412, allocations: 0 / 0.8235 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0108/0.552, allocations: 2.031 MB / 0.8255 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.5522, allocations: 221.3 kB / 0.8257 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.552/2.104, allocations: 7.875 kB / 0.8257 GB, free: 6.375 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)