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.004794/0.004794, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001668/0.001669, allocations: 194.8 kB / 16.67 MB, free: 5.973 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002566/0.002566, allocations: 291.1 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.127/1.127, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00274/0.00274, allocations: 99.84 kB / 0.6943 GB, free: 3.633 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4384/0.4412, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.159/0.6002, allocations: 135.4 MB / 0.9135 GB, free: 7.422 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.0001532/0.6004, allocations: 51.86 kB / 0.9136 GB, free: 7.371 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.05e-05/0.6005, allocations: 0 / 0.9136 GB, free: 7.371 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 9.475e-05/0.6006, allocations: 3.938 kB / 0.9136 GB, free: 7.367 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 6.911e-05/0.6007, allocations: 19.91 kB / 0.9136 GB, free: 7.348 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008258/0.6015, allocations: 235 kB / 0.9138 GB, free: 7.117 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 8.265e-05/0.6016, allocations: 31.92 kB / 0.9139 GB, free: 7.086 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 3.695e-05/0.6017, allocations: 0 / 0.9139 GB, free: 7.086 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 3.882e-05/0.6017, allocations: 19.91 kB / 0.9139 GB, free: 7.066 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 5.992e-05/0.6018, allocations: 15.92 kB / 0.9139 GB, free: 7.051 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 1.145e-05/0.6018, allocations: 4 kB / 0.9139 GB, free: 7.047 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004876/0.6023, allocations: 239.4 kB / 0.9141 GB, free: 6.812 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 3.966e-05/0.6023, allocations: 11.98 kB / 0.9141 GB, free: 6.801 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 2.698e-05/0.6024, allocations: 11.92 kB / 0.9141 GB, free: 6.789 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0003548/0.6027, allocations: 180.8 kB / 0.9143 GB, free: 6.617 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.6027, allocations: 0 / 0.9143 GB, free: 6.617 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.172e-06/0.6027, allocations: 0 / 0.9143 GB, free: 6.617 MB / 0.67 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.6028, allocations: 0 / 0.9143 GB, free: 6.617 MB / 0.67 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.0004274/0.6032, allocations: 367.1 kB / 0.9147 GB, free: 6.211 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.6032, allocations: 12.03 kB / 0.9147 GB, free: 6.199 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.6033, allocations: 42.62 kB / 0.9147 GB, free: 6.148 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.6033, allocations: 4.938 kB / 0.9147 GB, free: 6.145 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.6034, allocations: 164.3 kB / 0.9149 GB, free: 5.945 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.758e-05/0.6035, allocations: 30.02 kB / 0.9149 GB, free: 5.91 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.6035, allocations: 7.984 kB / 0.9149 GB, free: 5.902 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.6036, allocations: 41.67 kB / 0.915 GB, free: 5.855 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.6037, allocations: 0 / 0.915 GB, free: 5.855 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.6037, allocations: 4 kB / 0.915 GB, free: 5.852 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.6037, allocations: 11.98 kB / 0.915 GB, free: 5.84 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.979e-05/0.6037, allocations: 8 kB / 0.915 GB, free: 5.832 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007648/0.6045, allocations: 0.5949 MB / 0.9156 GB, free: 5.113 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 4.976e-05/0.6046, allocations: 26.61 kB / 0.9156 GB, free: 5.078 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.6046, allocations: 4.859 kB / 0.9156 GB, free: 5.07 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002475/0.6049, allocations: 336.5 kB / 0.9159 GB, free: 4.668 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.6049, allocations: 34.56 kB / 0.9159 GB, free: 4.625 MB / 0.67 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.6049, allocations: 0 / 0.9159 GB, free: 4.625 MB / 0.67 GB Notification: Performance of matching and sorting (n=1): time 0.0001311/0.605, allocations: 37.59 kB / 0.916 GB, free: 4.582 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.6051, allocations: 55.41 kB / 0.916 GB, free: 4.516 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.019e-05/0.6052, allocations: 101.8 kB / 0.9161 GB, free: 4.406 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.6052, allocations: 25.7 kB / 0.9162 GB, free: 4.375 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 5.346e-05/0.6053, allocations: 92.22 kB / 0.9162 GB, free: 4.281 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 6.563e-06/0.6053, allocations: 4 kB / 0.9162 GB, free: 4.277 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.6053, allocations: 17.7 kB / 0.9163 GB, free: 4.254 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.6054, allocations: 318.8 kB / 0.9166 GB, free: 3.934 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.517e-05/0.6055, allocations: 0 / 0.9166 GB, free: 3.934 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.966e-05/0.6055, allocations: 17.66 kB / 0.9166 GB, free: 3.91 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.262e-05/0.6055, allocations: 33.64 kB / 0.9166 GB, free: 3.871 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.6056, allocations: 0 / 0.9166 GB, free: 3.871 MB / 0.67 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.005e-05/0.6056, allocations: 41.7 kB / 0.9167 GB, free: 3.824 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.6057, allocations: 11.98 kB / 0.9167 GB, free: 3.812 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.277e-06/0.6057, allocations: 0 / 0.9167 GB, free: 3.812 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.6057, allocations: 0 / 0.9167 GB, free: 3.812 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.146e-05/0.6057, allocations: 7.938 kB / 0.9167 GB, free: 3.805 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.027e-06/0.6057, allocations: 0 / 0.9167 GB, free: 3.805 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.159e-05/0.6058, allocations: 11.89 kB / 0.9167 GB, free: 3.793 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-06/0.6058, allocations: 4.062 kB / 0.9167 GB, free: 3.789 MB / 0.67 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 7.675e-05/0.6059, allocations: 109.8 kB / 0.9168 GB, free: 3.672 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.558e-05/0.6059, allocations: 0 / 0.9168 GB, free: 3.672 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.606, allocations: 121 kB / 0.9169 GB, free: 3.543 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.497e-05/0.6061, allocations: 180.2 kB / 0.9171 GB, free: 3.359 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-05/0.6062, allocations: 176.3 kB / 0.9173 GB, free: 3.18 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.662e-05/0.6063, allocations: 196.1 kB / 0.9174 GB, free: 2.98 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002531/0.6065, allocations: 409.1 kB / 0.9178 GB, free: 2.523 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.845e-05/0.6066, allocations: 109 kB / 0.9179 GB, free: 2.41 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.571e-05/0.6066, allocations: 104.9 kB / 0.918 GB, free: 2.301 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.636e-05/0.6067, allocations: 180.3 kB / 0.9182 GB, free: 2.117 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.857e-05/0.6068, allocations: 184.2 kB / 0.9184 GB, free: 1.93 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.415e-05/0.6069, allocations: 184.3 kB / 0.9186 GB, free: 1.742 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.268e-05/0.607, allocations: 180.2 kB / 0.9187 GB, free: 1.559 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.6071, allocations: 308 kB / 0.919 GB, free: 1.234 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 8.007e-05/0.6072, allocations: 182.3 kB / 0.9192 GB, free: 1.031 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.137e-05/0.6073, allocations: 188.2 kB / 0.9194 GB, free: 0.8398 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.6075, allocations: 109 kB / 0.9195 GB, free: 0.7266 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.886e-05/0.6075, allocations: 184.2 kB / 0.9197 GB, free: 0.5391 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.57e-05/0.6076, allocations: 104.9 kB / 0.9198 GB, free: 440 kB / 0.67 GB Notification: Performance of sorting global known variables: time 5.54e-05/0.6077, allocations: 87.27 kB / 0.9198 GB, free: 352 kB / 0.67 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6077, allocations: 0 / 0.9198 GB, free: 352 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.0003235/0.608, allocations: 55.81 kB / 0.9199 GB, free: 296 kB / 0.67 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.0006635/0.6087, allocations: 0.8942 MB / 0.9208 GB, free: 15.36 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 6.96e-05/0.6088, allocations: 8 kB / 0.9208 GB, free: 15.36 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.6088, allocations: 0 / 0.9208 GB, free: 15.36 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 3.887e-06/0.6088, allocations: 3.938 kB / 0.9208 GB, free: 15.35 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004271/0.6092, allocations: 467.8 kB / 0.9212 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.6103, allocations: 1.352 MB / 0.9225 GB, free: 13.45 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.6106, allocations: 0.6729 MB / 0.9232 GB, free: 12.75 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 3.894e-05/0.6107, allocations: 8 kB / 0.9232 GB, free: 12.74 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.225e-05/0.6107, allocations: 11.44 kB / 0.9232 GB, free: 12.73 MB / 0.6856 GB Notification: Performance of SimCode: time 2.4e-07/0.6107, allocations: 0 / 0.9232 GB, free: 12.73 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.6326, allocations: 2.233 MB / 0.9254 GB, free: 10.64 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/8.4, allocations: 9.984 kB / 0.9254 GB, free: 10.63 MB / 0.6856 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)