Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.004355/0.004355, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001081/0.001081, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.308/1.308, 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.002245/0.002245, allocations: 286.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9826/0.9826, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003463/0.003463, allocations: 92.81 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1638, allocations: 86.98 MB / 0.7659 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004353/0.1682, allocations: 3.271 MB / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001/0.1683, allocations: 63.73 kB / 0.7692 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.271e-05/0.1683, allocations: 0 / 0.7692 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.056e-05/0.1684, allocations: 3.984 kB / 0.7692 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.293e-05/0.1685, allocations: 11.94 kB / 0.7692 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.1691, allocations: 191.2 kB / 0.7694 GB, free: 5.355 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.367e-05/0.1691, allocations: 31.92 kB / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.206e-05/0.1692, allocations: 0 / 0.7694 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.432e-05/0.1692, allocations: 23.91 kB / 0.7694 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.325e-05/0.1693, allocations: 15.94 kB / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.089e-05/0.1693, allocations: 0 / 0.7694 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003304/0.1696, allocations: 175.5 kB / 0.7696 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.056e-05/0.1697, allocations: 7.984 kB / 0.7696 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.37e-05/0.1697, allocations: 4 kB / 0.7696 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002658/0.17, allocations: 143.8 kB / 0.7698 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.17, allocations: 4 kB / 0.7698 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.262e-06/0.17, allocations: 0 / 0.7698 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.078e-06/0.17, allocations: 0 / 0.7698 GB, free: 4.957 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.0003539/0.1704, allocations: 351.3 kB / 0.7701 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.1704, allocations: 12.02 kB / 0.7701 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.94e-05/0.1705, allocations: 30.75 kB / 0.7701 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.899e-05/0.1705, allocations: 8.875 kB / 0.7701 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.1706, allocations: 160.4 kB / 0.7703 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.374e-05/0.1707, allocations: 26.27 kB / 0.7703 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.267e-05/0.1707, allocations: 8.125 kB / 0.7703 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001146/0.1708, allocations: 41.69 kB / 0.7704 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.1708, allocations: 7.938 kB / 0.7704 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.1708, allocations: 0 / 0.7704 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.1709, allocations: 0 / 0.7704 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.851e-05/0.1709, allocations: 27.92 kB / 0.7704 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.1715, allocations: 0.5755 MB / 0.771 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.613e-05/0.1715, allocations: 18.58 kB / 0.771 GB, free: 3.465 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.598e-05/0.1716, allocations: 8.859 kB / 0.771 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002165/0.1718, allocations: 344.5 kB / 0.7713 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.057e-05/0.1718, allocations: 34.56 kB / 0.7714 GB, free: 3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.283e-06/0.1718, allocations: 0 / 0.7714 GB, free: 3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001336/0.172, allocations: 41.59 kB / 0.7714 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.172, allocations: 51.41 kB / 0.7714 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.076e-05/0.1721, allocations: 105.8 kB / 0.7715 GB, free: 2.777 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.407e-05/0.1721, allocations: 25.7 kB / 0.7716 GB, free: 2.746 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.428e-05/0.1721, allocations: 96.22 kB / 0.7717 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 6.232e-06/0.1722, allocations: 3.938 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.1722, allocations: 17.7 kB / 0.7717 GB, free: 2.621 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.104e-05/0.1723, allocations: 322.8 kB / 0.772 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.402e-05/0.1723, allocations: 0 / 0.772 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.364e-05/0.1723, allocations: 17.7 kB / 0.772 GB, free: 2.273 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.793e-05/0.1724, allocations: 29.66 kB / 0.772 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1724, allocations: 0 / 0.772 GB, free: 2.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.227e-05/0.1725, allocations: 49.62 kB / 0.7721 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.1725, allocations: 8 kB / 0.7721 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1725, allocations: 0 / 0.7721 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.1725, allocations: 0 / 0.7721 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.237e-05/0.1726, allocations: 4 kB / 0.7721 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1726, allocations: 0 / 0.7721 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.189e-05/0.1726, allocations: 7.953 kB / 0.7721 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.022e-05/0.1726, allocations: 4.062 kB / 0.7721 GB, free: 2.16 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 6.551e-05/0.1727, allocations: 121.7 kB / 0.7722 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.1727, allocations: 0 / 0.7722 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.994e-05/0.1728, allocations: 123.2 kB / 0.7723 GB, free: 1.906 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.928e-05/0.1729, allocations: 176.3 kB / 0.7725 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.975e-05/0.1729, allocations: 180.2 kB / 0.7727 GB, free: 1.543 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.325e-05/0.173, allocations: 184.2 kB / 0.7728 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.1732, allocations: 409.2 kB / 0.7732 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.96e-05/0.1732, allocations: 108.9 kB / 0.7733 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.755e-05/0.1733, allocations: 105 kB / 0.7734 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.963e-05/0.1733, allocations: 176.3 kB / 0.7736 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.344e-05/0.1734, allocations: 192.2 kB / 0.7738 GB, free: 308 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.996e-05/0.1735, allocations: 180.2 kB / 0.774 GB, free: 120 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.283/0.4565, allocations: 182.3 kB / 0.7741 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.32e-05/0.4566, allocations: 301 kB / 0.7744 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.4566, allocations: 182.6 kB / 0.7746 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.4567, allocations: 180.3 kB / 0.7748 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.4569, allocations: 108.6 kB / 0.7749 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.51e-05/0.4569, allocations: 185 kB / 0.7751 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.4569, allocations: 107.3 kB / 0.7752 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.792e-05/0.457, allocations: 88.67 kB / 0.7752 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.457, allocations: 0.5938 kB / 0.7752 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003294/0.4573, allocations: 32.2 kB / 0.7753 GB, free: 14.12 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.0003631/0.4577, allocations: 0.8744 MB / 0.7761 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.565e-05/0.4578, allocations: 15.11 kB / 0.7761 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.4578, allocations: 0.5938 kB / 0.7761 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.683e-06/0.4578, allocations: 0.8438 kB / 0.7761 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003541/0.4581, allocations: 464.8 kB / 0.7766 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007421/0.4589, allocations: 1.337 MB / 0.7779 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.183e-05/0.459, allocations: 0.6756 MB / 0.7786 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.189e-05/0.459, allocations: 6.203 kB / 0.7786 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.919e-05/0.4591, allocations: 9.531 kB / 0.7786 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of SimCode: time 3.01e-07/0.4591, allocations: 3.469 kB / 0.7786 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.4769, allocations: 2.176 MB / 0.7807 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.206/7.683, allocations: 6.719 kB / 0.7807 GB, free: 10.48 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_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_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1)