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.001732/0.001732, allocations: 108 kB / 15.6 MB, free: 132 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.002133/0.002133, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.865/1.865, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003508/0.003508, allocations: 283 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.64/1.64, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003286/0.003286, allocations: 94.3 kB / 0.5953 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2547, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.8147/1.069, allocations: 135.4 MB / 0.8125 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.000238/1.07, allocations: 52.8 kB / 0.8126 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.486e-05/1.07, allocations: 0 / 0.8126 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/1.07, allocations: 5.281 kB / 0.8126 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001038/1.07, allocations: 11.81 kB / 0.8126 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001303/1.071, allocations: 247.1 kB / 0.8128 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.684e-05/1.071, allocations: 30.77 kB / 0.8128 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.684e-05/1.072, allocations: 3.203 kB / 0.8128 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.349e-05/1.072, allocations: 16.91 kB / 0.8129 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.388e-05/1.072, allocations: 21.12 kB / 0.8129 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/1.072, allocations: 0 / 0.8129 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006802/1.072, allocations: 246.7 kB / 0.8131 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.408e-05/1.072, allocations: 3.391 kB / 0.8131 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/1.073, allocations: 16.36 kB / 0.8131 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005289/1.073, allocations: 184.3 kB / 0.8133 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/1.073, allocations: 3.234 kB / 0.8133 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.675e-06/1.073, allocations: 0 / 0.8133 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.638e-06/1.073, allocations: 1.375 kB / 0.8133 GB, free: 2.488 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.0008277/1.074, allocations: 362.5 kB / 0.8137 GB, free: 18.12 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/1.074, allocations: 12.12 kB / 0.8137 GB, free: 18.12 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.401e-05/1.074, allocations: 30.75 kB / 0.8137 GB, free: 18.08 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/1.074, allocations: 0.9375 kB / 0.8137 GB, free: 18.08 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/1.074, allocations: 165.1 kB / 0.8139 GB, free: 17.88 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-05/1.074, allocations: 32.45 kB / 0.8139 GB, free: 17.85 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.121e-05/1.074, allocations: 3.938 kB / 0.8139 GB, free: 17.85 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001727/1.075, allocations: 46.73 kB / 0.8139 GB, free: 17.81 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/1.075, allocations: 1.5 kB / 0.8139 GB, free: 17.81 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.418e-05/1.075, allocations: 4 kB / 0.8139 GB, free: 17.81 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/1.075, allocations: 1.531 kB / 0.8139 GB, free: 17.81 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.557e-05/1.075, allocations: 17.2 kB / 0.814 GB, free: 17.81 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001088/1.076, allocations: 0.5968 MB / 0.8145 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.576e-05/1.076, allocations: 22.19 kB / 0.8146 GB, free: 17.14 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.045e-05/1.076, allocations: 10.39 kB / 0.8146 GB, free: 17.12 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003282/1.076, allocations: 339.6 kB / 0.8149 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.523e-05/1.076, allocations: 30.56 kB / 0.8149 GB, free: 16.71 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.573e-06/1.076, allocations: 1.469 kB / 0.8149 GB, free: 16.71 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0002112/1.077, allocations: 40.11 kB / 0.815 GB, free: 16.68 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.402e-05/1.077, allocations: 51.41 kB / 0.815 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/1.077, allocations: 100.5 kB / 0.8151 GB, free: 16.52 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/1.077, allocations: 25.83 kB / 0.8151 GB, free: 16.48 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.103e-05/1.077, allocations: 99.81 kB / 0.8152 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.742e-06/1.077, allocations: 1.203 kB / 0.8152 GB, free: 16.39 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/1.077, allocations: 18.84 kB / 0.8153 GB, free: 16.37 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001637/1.077, allocations: 321 kB / 0.8156 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.005e-05/1.077, allocations: 3.531 kB / 0.8156 GB, free: 16.05 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.155e-05/1.077, allocations: 15.33 kB / 0.8156 GB, free: 16.04 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.829e-05/1.077, allocations: 23.31 kB / 0.8156 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/1.077, allocations: 5.406 kB / 0.8156 GB, free: 16.02 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001211/1.077, allocations: 49.83 kB / 0.8156 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.038e-05/1.077, allocations: 4.594 kB / 0.8157 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/1.077, allocations: 1.094 kB / 0.8157 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/1.077, allocations: 0.625 kB / 0.8157 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/1.078, allocations: 9.609 kB / 0.8157 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/1.078, allocations: 0 / 0.8157 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.251e-05/1.078, allocations: 9.469 kB / 0.8157 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.211e-05/1.078, allocations: 5.25 kB / 0.8157 GB, free: 15.97 MB / 0.5762 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 0.0001035/1.078, allocations: 112.9 kB / 0.8158 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.405e-05/1.078, allocations: 2.781 kB / 0.8158 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/1.078, allocations: 114.9 kB / 0.8159 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-05/1.078, allocations: 184.5 kB / 0.8161 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.814e-05/1.078, allocations: 182 kB / 0.8162 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.09e-05/1.078, allocations: 177.9 kB / 0.8164 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003502/1.079, allocations: 416 kB / 0.8168 GB, free: 14.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.783e-05/1.079, allocations: 105.8 kB / 0.8169 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.438e-05/1.079, allocations: 106.2 kB / 0.817 GB, free: 14.53 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.591e-05/1.079, allocations: 177.5 kB / 0.8172 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.923e-05/1.079, allocations: 185.3 kB / 0.8174 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.385e-05/1.079, allocations: 182.5 kB / 0.8175 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001111/1.079, allocations: 179.4 kB / 0.8177 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/1.079, allocations: 308.1 kB / 0.818 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/1.08, allocations: 190 kB / 0.8182 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001183/1.08, allocations: 189.8 kB / 0.8184 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/1.08, allocations: 106.1 kB / 0.8185 GB, free: 12.98 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.989e-05/1.08, allocations: 184.5 kB / 0.8186 GB, free: 12.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.305e-05/1.08, allocations: 101 kB / 0.8187 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 7.282e-05/1.08, allocations: 93.08 kB / 0.8188 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.61e-07/1.08, allocations: 4 kB / 0.8188 GB, free: 12.61 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005946/1.081, allocations: 57.55 kB / 0.8189 GB, free: 12.59 MB / 0.5762 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.0009337/1.082, allocations: 0.885 MB / 0.8197 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001004/1.082, allocations: 11.11 kB / 0.8198 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.082, allocations: 0 / 0.8198 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.595e-06/1.082, allocations: 0.5625 kB / 0.8198 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006786/1.083, allocations: 467.3 kB / 0.8202 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/1.084, allocations: 1.34 MB / 0.8215 GB, free: 9.996 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/1.085, allocations: 0.6749 MB / 0.8222 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 7.26e-05/1.085, allocations: 11.72 kB / 0.8222 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.323e-05/1.085, allocations: 8.781 kB / 0.8222 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of SimCode: time 7.11e-07/1.085, allocations: 0 / 0.8222 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03125/1.116, allocations: 2.202 MB / 0.8243 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.77, allocations: 13.28 kB / 0.8244 GB, free: 8.824 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)