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.004309/0.004309, allocations: 103.5 kB / 15.74 MB, free: 6.043 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.001179/0.001179, allocations: 200.2 kB / 16.68 MB, free: 5.965 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.344/1.344, 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.002336/0.002336, allocations: 282.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9709/0.9709, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00259/0.00259, allocations: 106.3 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1567, allocations: 86.98 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.4441/0.6009, allocations: 135.4 MB / 0.8981 GB, free: 11.78 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.000159/0.6011, allocations: 61.41 kB / 0.8982 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.989e-05/0.6011, allocations: 1.406 kB / 0.8982 GB, free: 11.73 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 9.629e-05/0.6012, allocations: 4 kB / 0.8982 GB, free: 11.72 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.011e-05/0.6013, allocations: 11.92 kB / 0.8982 GB, free: 11.71 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007848/0.6021, allocations: 238.9 kB / 0.8984 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 7.907e-05/0.6022, allocations: 35.91 kB / 0.8985 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 3.531e-05/0.6022, allocations: 4 kB / 0.8985 GB, free: 11.44 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 3.789e-05/0.6023, allocations: 15.98 kB / 0.8985 GB, free: 11.42 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.661e-05/0.6023, allocations: 19.75 kB / 0.8985 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.6024, allocations: 0 / 0.8985 GB, free: 11.41 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000476/0.6028, allocations: 243.5 kB / 0.8987 GB, free: 11.17 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 4.352e-05/0.6029, allocations: 11.98 kB / 0.8987 GB, free: 11.16 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 2.376e-05/0.6029, allocations: 7.938 kB / 0.8988 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.6033, allocations: 188.8 kB / 0.8989 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.6033, allocations: 0 / 0.8989 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.212e-06/0.6033, allocations: 0.8438 kB / 0.8989 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.6033, allocations: 4 kB / 0.8989 GB, free: 10.97 MB / 0.6544 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.0004359/0.6038, allocations: 363.1 kB / 0.8993 GB, free: 10.57 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.6038, allocations: 8.031 kB / 0.8993 GB, free: 10.56 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.745e-05/0.6038, allocations: 30.75 kB / 0.8993 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.168e-05/0.6039, allocations: 8.922 kB / 0.8993 GB, free: 10.51 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001236/0.604, allocations: 170.8 kB / 0.8995 GB, free: 10.31 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.986e-05/0.6041, allocations: 34.27 kB / 0.8995 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.995e-06/0.6041, allocations: 3.938 kB / 0.8995 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.6042, allocations: 48.31 kB / 0.8996 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.6042, allocations: 0 / 0.8996 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.495e-06/0.6042, allocations: 0 / 0.8996 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.771e-05/0.6043, allocations: 4 kB / 0.8996 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.491e-05/0.6043, allocations: 15.98 kB / 0.8996 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007579/0.6051, allocations: 0.595 MB / 0.9002 GB, free: 9.477 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 3.789e-05/0.6051, allocations: 26.52 kB / 0.9002 GB, free: 9.441 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.551e-05/0.6052, allocations: 8.859 kB / 0.9002 GB, free: 9.43 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002316/0.6054, allocations: 332.5 kB / 0.9005 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.6054, allocations: 34.56 kB / 0.9006 GB, free: 8.988 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.6054, allocations: 0 / 0.9006 GB, free: 8.988 MB / 0.6544 GB Notification: Performance of matching and sorting (n=1): time 0.0001433/0.6056, allocations: 37.64 kB / 0.9006 GB, free: 8.945 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.6056, allocations: 55.34 kB / 0.9006 GB, free: 8.879 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.28e-05/0.6057, allocations: 110 kB / 0.9008 GB, free: 8.762 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.6058, allocations: 25.7 kB / 0.9008 GB, free: 8.73 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.446e-05/0.6058, allocations: 88.09 kB / 0.9009 GB, free: 8.641 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 7.845e-06/0.6058, allocations: 4 kB / 0.9009 GB, free: 8.637 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.6059, allocations: 13.72 kB / 0.9009 GB, free: 8.617 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.606, allocations: 318.8 kB / 0.9012 GB, free: 8.297 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.606, allocations: 7.938 kB / 0.9012 GB, free: 8.289 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.508e-05/0.6061, allocations: 17.72 kB / 0.9012 GB, free: 8.266 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.552e-05/0.6061, allocations: 21.72 kB / 0.9012 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.6061, allocations: 0 / 0.9012 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.949e-05/0.6062, allocations: 49.62 kB / 0.9013 GB, free: 8.184 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.6062, allocations: 8 kB / 0.9013 GB, free: 8.176 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.6062, allocations: 0 / 0.9013 GB, free: 8.176 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.6062, allocations: 0 / 0.9013 GB, free: 8.176 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.253e-05/0.6063, allocations: 12.05 kB / 0.9013 GB, free: 8.164 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.6063, allocations: 7.938 kB / 0.9013 GB, free: 8.156 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.866e-05/0.6063, allocations: 3.953 kB / 0.9013 GB, free: 8.152 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.121e-05/0.6063, allocations: 3.938 kB / 0.9013 GB, free: 8.148 MB / 0.6544 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.59e-05/0.6064, allocations: 118.4 kB / 0.9014 GB, free: 8.023 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.6064, allocations: 288 / 0.9014 GB, free: 8.023 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001123/0.6066, allocations: 121 kB / 0.9015 GB, free: 7.895 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.469e-05/0.6066, allocations: 188.2 kB / 0.9017 GB, free: 7.703 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-05/0.6067, allocations: 181.5 kB / 0.9019 GB, free: 7.52 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-05/0.6068, allocations: 180.3 kB / 0.9021 GB, free: 7.336 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.6071, allocations: 409.1 kB / 0.9025 GB, free: 6.879 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.374e-05/0.6071, allocations: 105 kB / 0.9026 GB, free: 6.77 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-05/0.6072, allocations: 108.9 kB / 0.9027 GB, free: 6.656 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.531e-05/0.6073, allocations: 180.3 kB / 0.9028 GB, free: 6.473 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.93e-05/0.6073, allocations: 176.3 kB / 0.903 GB, free: 6.293 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.734e-05/0.6074, allocations: 188.1 kB / 0.9032 GB, free: 6.105 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.132e-05/0.6075, allocations: 180.3 kB / 0.9033 GB, free: 5.922 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001532/0.6076, allocations: 311.7 kB / 0.9036 GB, free: 5.594 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 8.655e-05/0.6077, allocations: 186.1 kB / 0.9038 GB, free: 5.387 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.87e-05/0.6078, allocations: 184.2 kB / 0.904 GB, free: 5.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.608, allocations: 105 kB / 0.9041 GB, free: 5.09 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.6081, allocations: 184.2 kB / 0.9043 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.6081, allocations: 105 kB / 0.9044 GB, free: 4.793 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.591e-05/0.6082, allocations: 91.2 kB / 0.9045 GB, free: 4.703 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6082, allocations: 0 / 0.9045 GB, free: 4.703 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002981/0.6085, allocations: 55.75 kB / 0.9045 GB, free: 4.648 MB / 0.6544 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.000611/0.6091, allocations: 0.8915 MB / 0.9054 GB, free: 3.727 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 6.271e-05/0.6092, allocations: 8 kB / 0.9054 GB, free: 3.719 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.6092, allocations: 0 / 0.9054 GB, free: 3.719 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 1.303e-06/0.6092, allocations: 0 / 0.9054 GB, free: 3.719 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.6096, allocations: 467.8 kB / 0.9058 GB, free: 3.258 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.6107, allocations: 1.342 MB / 0.9072 GB, free: 1.828 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.611, allocations: 0.6768 MB / 0.9078 GB, free: 1.125 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.577e-05/0.611, allocations: 9.531 kB / 0.9078 GB, free: 1.117 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.496e-05/0.6111, allocations: 11.44 kB / 0.9078 GB, free: 1.105 MB / 0.6544 GB Notification: Performance of SimCode: time 2.5e-07/0.6111, allocations: 0 / 0.9078 GB, free: 1.105 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.6345, allocations: 2.236 MB / 0.91 GB, free: 15.03 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.333/7.967, allocations: 15.81 kB / 0.91 GB, free: 15.01 MB / 0.67 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)