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.001325/0.001325, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002454/0.002454, allocations: 283 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1/1, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002627/0.002627, allocations: 103.2 kB / 0.6065 GB, free: 24.78 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1402, allocations: 89.14 MB / 0.6936 GB, free: 4.242 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.3876/0.5279, allocations: 135.4 MB / 0.8258 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001934/0.5281, allocations: 52.84 kB / 0.8258 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.697e-05/0.5281, allocations: 1.344 kB / 0.8258 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.5283, allocations: 6.422 kB / 0.8258 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.067e-05/0.5284, allocations: 13.17 kB / 0.8259 GB, free: 7.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008785/0.5293, allocations: 238.3 kB / 0.8261 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.529e-05/0.5294, allocations: 35.41 kB / 0.8261 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.6e-05/0.5294, allocations: 4.688 kB / 0.8261 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.08e-05/0.5295, allocations: 19.06 kB / 0.8261 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.5295, allocations: 10.55 kB / 0.8261 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.5296, allocations: 1 kB / 0.8261 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004766/0.5301, allocations: 237 kB / 0.8264 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.332e-05/0.5301, allocations: 11.72 kB / 0.8264 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.038e-05/0.5302, allocations: 14.44 kB / 0.8264 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.5305, allocations: 192.1 kB / 0.8266 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.5305, allocations: 0 / 0.8266 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.163e-06/0.5305, allocations: 0 / 0.8266 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.5305, allocations: 1.094 kB / 0.8266 GB, free: 6.812 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.0004492/0.531, allocations: 355.2 kB / 0.8269 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.531, allocations: 9.188 kB / 0.8269 GB, free: 6.445 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.871e-05/0.5311, allocations: 30.75 kB / 0.827 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.5311, allocations: 7.906 kB / 0.827 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.5313, allocations: 170.8 kB / 0.8271 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.794e-05/0.5313, allocations: 28.98 kB / 0.8272 GB, free: 6.168 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.356e-05/0.5313, allocations: 3.938 kB / 0.8272 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.5315, allocations: 43.22 kB / 0.8272 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.5315, allocations: 1.406 kB / 0.8272 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.01e-05/0.5315, allocations: 0.8438 kB / 0.8272 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.5315, allocations: 1.062 kB / 0.8272 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.61e-05/0.5316, allocations: 17.61 kB / 0.8272 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008007/0.5324, allocations: 0.6008 MB / 0.8278 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.018e-05/0.5324, allocations: 19.83 kB / 0.8278 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.5325, allocations: 6.297 kB / 0.8278 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002339/0.5327, allocations: 337.9 kB / 0.8282 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.5327, allocations: 39.48 kB / 0.8282 GB, free: 5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.5327, allocations: 0 / 0.8282 GB, free: 5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001439/0.5329, allocations: 39.72 kB / 0.8282 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.5329, allocations: 56.78 kB / 0.8283 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.828e-05/0.533, allocations: 104.5 kB / 0.8284 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.5331, allocations: 25.7 kB / 0.8284 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.33e-05/0.5331, allocations: 89.19 kB / 0.8285 GB, free: 4.676 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.325e-06/0.5331, allocations: 9.156 kB / 0.8285 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.5332, allocations: 23.31 kB / 0.8285 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5333, allocations: 316 kB / 0.8288 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.482e-05/0.5333, allocations: 4.938 kB / 0.8288 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.559e-05/0.5334, allocations: 17.09 kB / 0.8288 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.635e-05/0.5334, allocations: 23.11 kB / 0.8289 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.5334, allocations: 0 / 0.8289 GB, free: 4.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.979e-05/0.5335, allocations: 48.72 kB / 0.8289 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.5335, allocations: 5.438 kB / 0.8289 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.5335, allocations: 0 / 0.8289 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.5335, allocations: 3.594 kB / 0.8289 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.369e-05/0.5336, allocations: 4.875 kB / 0.8289 GB, free: 4.25 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.5336, allocations: 5.844 kB / 0.8289 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.812e-05/0.5336, allocations: 1 kB / 0.8289 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.919e-06/0.5336, allocations: 9.031 kB / 0.8289 GB, free: 4.238 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 8.245e-05/0.5337, allocations: 118.3 kB / 0.8291 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.682e-05/0.5338, allocations: 1.219 kB / 0.8291 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.5339, allocations: 115.3 kB / 0.8292 GB, free: 4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.375e-05/0.534, allocations: 185.3 kB / 0.8293 GB, free: 3.812 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.939e-05/0.534, allocations: 177.4 kB / 0.8295 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.826e-05/0.5341, allocations: 178.6 kB / 0.8297 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.5344, allocations: 418 kB / 0.8301 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.413e-05/0.5344, allocations: 106.2 kB / 0.8302 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.495e-05/0.5345, allocations: 106 kB / 0.8303 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.794e-05/0.5345, allocations: 181.4 kB / 0.8305 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.024e-05/0.5346, allocations: 179.7 kB / 0.8306 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.117e-05/0.5347, allocations: 185.2 kB / 0.8308 GB, free: 2.227 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.645e-05/0.5348, allocations: 177.3 kB / 0.831 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001543/0.5349, allocations: 314 kB / 0.8313 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 7.822e-05/0.535, allocations: 185.5 kB / 0.8315 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.54e-05/0.5351, allocations: 183.3 kB / 0.8316 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.5352, allocations: 114.1 kB / 0.8317 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.201e-05/0.5353, allocations: 181.3 kB / 0.8319 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.372e-05/0.5354, allocations: 104.4 kB / 0.832 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.907e-05/0.5354, allocations: 84.22 kB / 0.8321 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5354, allocations: 0 / 0.8321 GB, free: 0.8555 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000297/0.5357, allocations: 60.06 kB / 0.8321 GB, free: 0.8359 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.0006002/0.5363, allocations: 0.8804 MB / 0.833 GB, free: 0 / 0.5606 GB Notification: Performance of simCode: created initialization part: time 8.242e-05/0.5364, allocations: 12.39 kB / 0.833 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.5364, allocations: 0 / 0.833 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.252e-06/0.5364, allocations: 1.438 kB / 0.833 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.5368, allocations: 463.5 kB / 0.8335 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.5379, allocations: 1.346 MB / 0.8348 GB, free: 14.19 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.5383, allocations: 0.6739 MB / 0.8354 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 4.061e-05/0.5383, allocations: 5.688 kB / 0.8354 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.514e-05/0.5384, allocations: 16.38 kB / 0.8355 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of SimCode: time 2.61e-07/0.5384, allocations: 4 kB / 0.8355 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.5605, allocations: 2.214 MB / 0.8376 GB, free: 12.39 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.479/8.04, allocations: 9.375 kB / 0.8376 GB, free: 12.38 MB / 0.5762 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Media_Examples_SteamTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1)