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.007139/0.007139, allocations: 101 kB / 15.73 MB, free: 6.059 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.001678/0.001678, allocations: 193.6 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002568/0.002568, allocations: 291.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 1.222/1.222, allocations: 178.6 MB / 0.5074 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 95.84 kB / 0.6943 GB, free: 15.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3707/0.3735, allocations: 89.13 MB / 0.7813 GB, free: 1.098 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004448/0.378, allocations: 3.288 MB / 0.7846 GB, free: 14.46 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 9.687e-05/0.3781, allocations: 48.12 kB / 0.7846 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.357e-05/0.3781, allocations: 0 / 0.7846 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.053e-05/0.3782, allocations: 7.922 kB / 0.7846 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.432e-05/0.3783, allocations: 6.641 kB / 0.7846 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.3788, allocations: 187.7 kB / 0.7848 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.369e-05/0.3789, allocations: 42 kB / 0.7848 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.379, allocations: 1.531 kB / 0.7848 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.911e-05/0.379, allocations: 16.42 kB / 0.7848 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.606e-05/0.3791, allocations: 10.73 kB / 0.7849 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.289e-05/0.3791, allocations: 5.281 kB / 0.7849 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003478/0.3795, allocations: 172.1 kB / 0.785 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.134e-05/0.3795, allocations: 9.516 kB / 0.785 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.53e-05/0.3795, allocations: 12.2 kB / 0.785 GB, free: 14.13 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.3798, allocations: 135.6 kB / 0.7852 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3798, allocations: 1.312 kB / 0.7852 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3798, allocations: 0 / 0.7852 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.927e-06/0.3799, allocations: 0 / 0.7852 GB, free: 14.07 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.0004101/0.3803, allocations: 351.7 kB / 0.7855 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.193e-05/0.3803, allocations: 14.09 kB / 0.7855 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.755e-05/0.3803, allocations: 30.75 kB / 0.7856 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.829e-05/0.3804, allocations: 2.312 kB / 0.7856 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3805, allocations: 161.7 kB / 0.7857 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.855e-05/0.3806, allocations: 31.55 kB / 0.7857 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.122e-05/0.3806, allocations: 9.438 kB / 0.7858 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.3807, allocations: 42.25 kB / 0.7858 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3807, allocations: 1.25 kB / 0.7858 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3808, allocations: 0 / 0.7858 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.717e-05/0.3808, allocations: 9.172 kB / 0.7858 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.269e-05/0.3808, allocations: 13.81 kB / 0.7858 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006496/0.3815, allocations: 0.5881 MB / 0.7864 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.125e-05/0.3815, allocations: 24.67 kB / 0.7864 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.888e-05/0.3816, allocations: 9.969 kB / 0.7864 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002662/0.3818, allocations: 341.9 kB / 0.7868 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3819, allocations: 36.12 kB / 0.7868 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3819, allocations: 0 / 0.7868 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001349/0.382, allocations: 34.95 kB / 0.7868 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.395e-05/0.3821, allocations: 52.5 kB / 0.7869 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.156e-05/0.3822, allocations: 103.9 kB / 0.787 GB, free: 11.99 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.155e-05/0.3822, allocations: 25.7 kB / 0.787 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.97e-05/0.3822, allocations: 86.22 kB / 0.7871 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.992e-06/0.3823, allocations: 12.05 kB / 0.7871 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.387e-05/0.3823, allocations: 14.44 kB / 0.7871 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3824, allocations: 318.8 kB / 0.7874 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.531e-05/0.3825, allocations: 3.625 kB / 0.7874 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.615e-05/0.3825, allocations: 17.17 kB / 0.7874 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.355e-05/0.3825, allocations: 23.47 kB / 0.7874 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.3825, allocations: 5.156 kB / 0.7875 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.43e-05/0.3826, allocations: 54.67 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.3827, allocations: 4.562 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3827, allocations: 1.156 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.3827, allocations: 1.094 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.965e-05/0.3827, allocations: 4.5 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.3827, allocations: 1.438 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.761e-05/0.3828, allocations: 1.906 kB / 0.7875 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.3828, allocations: 1.438 kB / 0.7875 GB, free: 11.43 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 7.843e-05/0.3829, allocations: 119.5 kB / 0.7876 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.3829, allocations: 2 kB / 0.7876 GB, free: 11.31 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000116/0.383, allocations: 126.5 kB / 0.7878 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.39e-05/0.3831, allocations: 178.2 kB / 0.7879 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-05/0.3832, allocations: 188.2 kB / 0.7881 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.78e-05/0.3833, allocations: 182.3 kB / 0.7883 GB, free: 10.63 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002628/0.3835, allocations: 416 kB / 0.7887 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-05/0.3836, allocations: 101 kB / 0.7888 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-05/0.3836, allocations: 102.4 kB / 0.7889 GB, free: 9.957 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-05/0.3837, allocations: 189.6 kB / 0.789 GB, free: 9.766 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.402e-05/0.3838, allocations: 184.4 kB / 0.7892 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.828e-05/0.3839, allocations: 189.7 kB / 0.7894 GB, free: 9.387 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.301e-05/0.384, allocations: 177.8 kB / 0.7896 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000157/0.3841, allocations: 308 kB / 0.7899 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.094e-05/0.3842, allocations: 187.5 kB / 0.79 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.848e-05/0.3843, allocations: 185.7 kB / 0.7902 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.3845, allocations: 103.9 kB / 0.7903 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.833e-05/0.3846, allocations: 180.2 kB / 0.7905 GB, free: 8.203 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.3846, allocations: 106.4 kB / 0.7906 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.937e-05/0.3847, allocations: 83.59 kB / 0.7907 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3847, allocations: 1.469 kB / 0.7907 GB, free: 8.016 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002844/0.385, allocations: 46.23 kB / 0.7907 GB, free: 7.992 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.0005647/0.3855, allocations: 0.8635 MB / 0.7916 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.192e-05/0.3856, allocations: 13.61 kB / 0.7916 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3856, allocations: 0.9688 kB / 0.7916 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.243e-06/0.3856, allocations: 0 / 0.7916 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004559/0.3861, allocations: 463.6 kB / 0.792 GB, free: 6.691 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.3872, allocations: 1.331 MB / 0.7933 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.3875, allocations: 0.6752 MB / 0.794 GB, free: 4.633 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.012e-05/0.3875, allocations: 7.969 kB / 0.794 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.349e-05/0.3876, allocations: 14.33 kB / 0.794 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/0.3876, allocations: 0 / 0.794 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02219/0.4098, allocations: 2.173 MB / 0.7961 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.062, allocations: 21.34 kB / 0.7961 GB, free: 3.477 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)