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.004174/0.004174, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.001185/0.001185, allocations: 191.2 kB / 16.67 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002422/0.002422, allocations: 295.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9347/0.9347, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002597/0.002597, allocations: 95.84 kB / 0.681 GB, free: 7.453 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3693/0.3719, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004562/0.3765, allocations: 3.274 MB / 0.7691 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 9.301e-05/0.3766, allocations: 51.86 kB / 0.7692 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.128e-05/0.3766, allocations: 0 / 0.7692 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 8.285e-05/0.3767, allocations: 0 / 0.7692 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 6.782e-05/0.3768, allocations: 15.91 kB / 0.7692 GB, free: 492 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004797/0.3773, allocations: 191.2 kB / 0.7694 GB, free: 300 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.26e-05/0.3774, allocations: 35.84 kB / 0.7694 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 2.821e-05/0.3774, allocations: 0 / 0.7694 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.713e-05/0.3774, allocations: 19.92 kB / 0.7694 GB, free: 244 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.174e-05/0.3775, allocations: 11.98 kB / 0.7694 GB, free: 232 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.3775, allocations: 3.938 kB / 0.7694 GB, free: 228 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000327/0.3779, allocations: 171.6 kB / 0.7696 GB, free: 56 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.279e-05/0.3779, allocations: 11.97 kB / 0.7696 GB, free: 44 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.863e-05/0.3779, allocations: 15.94 kB / 0.7696 GB, free: 28 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.3782, allocations: 139 kB / 0.7698 GB, free: 15.9 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3782, allocations: 0 / 0.7698 GB, free: 15.9 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3782, allocations: 0 / 0.7698 GB, free: 15.9 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.3783, 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.0003921/0.3786, allocations: 345 kB / 0.7701 GB, free: 15.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.3787, allocations: 8.031 kB / 0.7701 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.69e-05/0.3787, allocations: 38.73 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.535e-05/0.3788, allocations: 0.9375 kB / 0.7701 GB, free: 15.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.3789, allocations: 172.3 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.721e-05/0.379, allocations: 30.27 kB / 0.7703 GB, free: 15.22 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.379, allocations: 8.125 kB / 0.7703 GB, free: 15.21 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00011/0.3791, allocations: 41.62 kB / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.3791, allocations: 0 / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.3791, allocations: 0 / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.662e-05/0.3792, allocations: 4 kB / 0.7704 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.42e-05/0.3792, allocations: 15.98 kB / 0.7704 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006183/0.3798, allocations: 0.5833 MB / 0.771 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.95e-05/0.3799, allocations: 18.58 kB / 0.771 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.822e-05/0.3799, allocations: 12.8 kB / 0.771 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002576/0.3802, allocations: 344.5 kB / 0.7713 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.3802, allocations: 30.56 kB / 0.7713 GB, free: 13.95 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.3802, allocations: 3.938 kB / 0.7713 GB, free: 13.94 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001305/0.3803, allocations: 41.66 kB / 0.7714 GB, free: 13.89 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.504e-05/0.3804, allocations: 55.41 kB / 0.7714 GB, free: 13.83 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.864e-05/0.3805, allocations: 97.84 kB / 0.7715 GB, free: 13.72 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.3805, allocations: 29.7 kB / 0.7716 GB, free: 13.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.3805, allocations: 88.09 kB / 0.7716 GB, free: 13.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.747e-06/0.3806, allocations: 0 / 0.7716 GB, free: 13.6 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.324e-05/0.3806, allocations: 17.7 kB / 0.7717 GB, free: 13.57 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3807, allocations: 322.8 kB / 0.772 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.454e-05/0.3808, allocations: 8 kB / 0.772 GB, free: 13.24 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.577e-05/0.3808, allocations: 17.72 kB / 0.772 GB, free: 13.22 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.873e-05/0.3808, allocations: 21.7 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3808, allocations: 0 / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.681e-05/0.3809, allocations: 49.62 kB / 0.7721 GB, free: 13.14 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.3809, allocations: 12.06 kB / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.3809, allocations: 0 / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.358e-06/0.381, allocations: 0 / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.676e-05/0.381, allocations: 7.938 kB / 0.7721 GB, free: 13.12 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.381, allocations: 4 kB / 0.7721 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.063e-05/0.381, allocations: 7.891 kB / 0.7721 GB, free: 13.11 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.381, allocations: 0 / 0.7721 GB, free: 13.11 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 7.414e-05/0.3811, allocations: 116.2 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.3812, allocations: 0 / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.3813, allocations: 128.9 kB / 0.7723 GB, free: 12.85 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.202e-05/0.3814, allocations: 176.3 kB / 0.7725 GB, free: 12.67 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.458e-05/0.3814, allocations: 184.2 kB / 0.7727 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.011e-05/0.3815, allocations: 184.2 kB / 0.7728 GB, free: 12.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002587/0.3818, allocations: 409.1 kB / 0.7732 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.415e-05/0.3818, allocations: 109 kB / 0.7733 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.023e-05/0.3819, allocations: 101.3 kB / 0.7734 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.545e-05/0.382, allocations: 180.2 kB / 0.7736 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.477e-05/0.382, allocations: 180.4 kB / 0.7738 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-05/0.3821, allocations: 188.2 kB / 0.774 GB, free: 11.06 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-05/0.3822, allocations: 180.2 kB / 0.7741 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001555/0.3824, allocations: 315.7 kB / 0.7744 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.061e-05/0.3824, allocations: 178.1 kB / 0.7746 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.937e-05/0.3825, allocations: 192.1 kB / 0.7748 GB, free: 10.15 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.3827, allocations: 101 kB / 0.7749 GB, free: 10.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.314e-05/0.3828, allocations: 184.3 kB / 0.7751 GB, free: 9.859 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.67e-05/0.3828, allocations: 108.9 kB / 0.7752 GB, free: 9.746 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.239e-05/0.3829, allocations: 87.28 kB / 0.7752 GB, free: 9.66 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3829, allocations: 0 / 0.7752 GB, free: 9.66 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002799/0.3832, allocations: 39.81 kB / 0.7753 GB, free: 9.621 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.000559/0.3838, allocations: 0.8696 MB / 0.7761 GB, free: 8.723 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 6.682e-05/0.3838, allocations: 15.94 kB / 0.7762 GB, free: 8.707 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3838, allocations: 0 / 0.7762 GB, free: 8.707 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.223e-06/0.3838, allocations: 0 / 0.7762 GB, free: 8.707 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.3843, allocations: 465.3 kB / 0.7766 GB, free: 8.25 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.3854, allocations: 1.336 MB / 0.7779 GB, free: 6.824 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.3857, allocations: 0.6768 MB / 0.7786 GB, free: 6.121 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.798e-05/0.3857, allocations: 4 kB / 0.7786 GB, free: 6.117 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.847e-05/0.3857, allocations: 7.438 kB / 0.7786 GB, free: 6.109 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.3857, allocations: 0 / 0.7786 GB, free: 6.109 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02234/0.4081, allocations: 2.178 MB / 0.7807 GB, free: 4.141 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.392/7.8, allocations: 11.64 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)