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.004089/0.004089, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001097/0.001097, allocations: 194.8 kB / 16.68 MB, free: 5.969 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.26/1.26, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002135/0.002135, allocations: 282.7 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9118/0.9118, allocations: 169.2 MB / 0.4983 GB, free: 4.402 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 92.08 kB / 0.681 GB, free: 7.438 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.3594, allocations: 86.97 MB / 0.7659 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004025/0.3635, allocations: 3.283 MB / 0.7691 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 8.18e-05/0.3636, allocations: 43.88 kB / 0.7692 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.071e-05/0.3636, allocations: 0 / 0.7692 GB, free: 0.5 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.747e-05/0.3637, allocations: 7.984 kB / 0.7692 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.931e-05/0.3638, allocations: 11.92 kB / 0.7692 GB, free: 492 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004836/0.3643, allocations: 195.2 kB / 0.7694 GB, free: 296 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.865e-05/0.3643, allocations: 35.84 kB / 0.7694 GB, free: 260 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.125e-05/0.3644, allocations: 7.938 kB / 0.7694 GB, free: 252 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.312e-05/0.3644, allocations: 11.98 kB / 0.7694 GB, free: 240 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.974e-05/0.3645, allocations: 11.98 kB / 0.7694 GB, free: 228 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 9.318e-06/0.3645, allocations: 0 / 0.7694 GB, free: 228 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003169/0.3648, allocations: 171.6 kB / 0.7696 GB, free: 56 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.999e-05/0.3649, allocations: 15.97 kB / 0.7696 GB, free: 40 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.3649, allocations: 11.94 kB / 0.7696 GB, free: 28 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.3652, allocations: 135 kB / 0.7698 GB, free: 15.9 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3652, allocations: 4 kB / 0.7698 GB, free: 15.9 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3652, allocations: 0 / 0.7698 GB, free: 15.9 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.3652, allocations: 0 / 0.7698 GB, free: 15.9 MB / 0.545 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.0003324/0.3655, allocations: 349 kB / 0.7701 GB, free: 15.51 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.3656, allocations: 12.03 kB / 0.7701 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.703e-05/0.3656, allocations: 30.75 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.753e-05/0.3656, allocations: 0.9375 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.617e-05/0.3657, allocations: 172.3 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.8e-05/0.3658, allocations: 26.27 kB / 0.7703 GB, free: 15.22 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.3658, allocations: 8.062 kB / 0.7703 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.3659, allocations: 49.62 kB / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.3659, allocations: 0 / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.366, allocations: 3.984 kB / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.366, allocations: 0 / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.992e-05/0.366, allocations: 16 kB / 0.7704 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005276/0.3665, allocations: 0.5872 MB / 0.771 GB, free: 14.43 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.533e-05/0.3666, allocations: 22.5 kB / 0.771 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.433e-05/0.3666, allocations: 8.922 kB / 0.771 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002026/0.3668, allocations: 344.3 kB / 0.7713 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.691e-05/0.3669, allocations: 30.56 kB / 0.7714 GB, free: 13.94 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 2.465e-06/0.3669, allocations: 3.984 kB / 0.7714 GB, free: 13.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001202/0.367, allocations: 41.66 kB / 0.7714 GB, free: 13.89 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.367, allocations: 55.39 kB / 0.7715 GB, free: 13.82 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.87e-05/0.3671, allocations: 101.9 kB / 0.7716 GB, free: 13.71 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.3671, allocations: 25.7 kB / 0.7716 GB, free: 13.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/0.3672, allocations: 84.09 kB / 0.7717 GB, free: 13.59 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 8.346e-06/0.3672, allocations: 7.984 kB / 0.7717 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.752e-05/0.3672, allocations: 17.66 kB / 0.7717 GB, free: 13.56 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.863e-05/0.3673, allocations: 318.9 kB / 0.772 GB, free: 13.24 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.644e-05/0.3673, allocations: 8 kB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.146e-05/0.3673, allocations: 17.7 kB / 0.772 GB, free: 13.21 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.219e-05/0.3674, allocations: 21.72 kB / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.3674, allocations: 0 / 0.772 GB, free: 13.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.081e-05/0.3675, allocations: 45.62 kB / 0.7721 GB, free: 13.13 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.3675, allocations: 8.062 kB / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3675, allocations: 4 kB / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.3675, allocations: 0 / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.939e-05/0.3675, allocations: 4 kB / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.927e-06/0.3676, allocations: 0 / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.081e-05/0.3676, allocations: 11.89 kB / 0.7721 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.3676, allocations: 4 kB / 0.7721 GB, free: 13.1 MB / 0.545 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.275e-05/0.3677, allocations: 116.2 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.3677, allocations: 4 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.708e-05/0.3678, allocations: 120.9 kB / 0.7723 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-05/0.3679, allocations: 184.2 kB / 0.7725 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.978e-05/0.3679, allocations: 184.2 kB / 0.7727 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-05/0.368, allocations: 176.3 kB / 0.7729 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.3682, allocations: 413.1 kB / 0.7732 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.56e-05/0.3682, allocations: 105 kB / 0.7733 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.069e-05/0.3682, allocations: 101 kB / 0.7734 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.289e-05/0.3683, allocations: 184.2 kB / 0.7736 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.427e-05/0.3683, allocations: 184.3 kB / 0.7738 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.923e-05/0.3684, allocations: 184.2 kB / 0.774 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-05/0.3685, allocations: 188.2 kB / 0.7742 GB, free: 10.87 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.3686, allocations: 307.7 kB / 0.7744 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.62e-05/0.3686, allocations: 182.1 kB / 0.7746 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.29e-05/0.3687, allocations: 184.2 kB / 0.7748 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.3688, allocations: 105 kB / 0.7749 GB, free: 10.04 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.823e-05/0.3689, allocations: 188.2 kB / 0.7751 GB, free: 9.852 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.3689, allocations: 104.9 kB / 0.7752 GB, free: 9.742 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.369, allocations: 87.28 kB / 0.7753 GB, free: 9.656 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.369, allocations: 0 / 0.7753 GB, free: 9.656 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002648/0.3693, allocations: 39.8 kB / 0.7753 GB, free: 9.617 MB / 0.545 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.0005013/0.3698, allocations: 0.8625 MB / 0.7761 GB, free: 8.727 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 7.088e-05/0.3699, allocations: 23.92 kB / 0.7762 GB, free: 8.703 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3699, allocations: 0 / 0.7762 GB, free: 8.703 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.042e-06/0.3699, allocations: 0 / 0.7762 GB, free: 8.703 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004327/0.3703, allocations: 457.3 kB / 0.7766 GB, free: 8.254 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008894/0.3712, allocations: 1.348 MB / 0.7779 GB, free: 6.816 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001969/0.3714, allocations: 0.669 MB / 0.7786 GB, free: 6.121 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.942e-05/0.3715, allocations: 11.55 kB / 0.7786 GB, free: 6.113 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.102e-05/0.3715, allocations: 11.42 kB / 0.7786 GB, free: 6.102 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.3715, allocations: 0 / 0.7786 GB, free: 6.102 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0178/0.3893, allocations: 2.171 MB / 0.7807 GB, free: 4.137 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.956/7.345, allocations: 4.656 kB / 0.7807 GB, free: 4.133 MB / 0.545 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)