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.001243/0.001243, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002387/0.002387, allocations: 283 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.019/1.019, allocations: 178.6 MB / 0.5073 GB, free: 4.586 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002657/0.002658, allocations: 101.7 kB / 0.6065 GB, free: 24.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1476, allocations: 89.15 MB / 0.6936 GB, free: 4.227 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004883/0.1525, allocations: 3.271 MB / 0.6968 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 9.679e-05/0.1527, allocations: 55.75 kB / 0.6969 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.425e-05/0.1527, allocations: 4 kB / 0.6969 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.414e-05/0.1528, allocations: 0 / 0.6969 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.415e-05/0.1529, allocations: 15.91 kB / 0.6969 GB, free: 0.875 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004851/0.1534, allocations: 191.1 kB / 0.6971 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.065e-05/0.1535, allocations: 31.91 kB / 0.6971 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.193e-05/0.1535, allocations: 4 kB / 0.6971 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.571e-05/0.1535, allocations: 23.91 kB / 0.6971 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.186e-05/0.1536, allocations: 11.94 kB / 0.6971 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.326e-05/0.1536, allocations: 4 kB / 0.6971 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003416/0.154, allocations: 179.5 kB / 0.6973 GB, free: 448 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.879e-05/0.154, allocations: 3.984 kB / 0.6973 GB, free: 444 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.33e-05/0.1541, allocations: 4 kB / 0.6973 GB, free: 440 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.1543, allocations: 143.9 kB / 0.6974 GB, free: 296 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.1543, allocations: 0 / 0.6974 GB, free: 296 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1543, allocations: 0 / 0.6974 GB, free: 296 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1544, allocations: 4 kB / 0.6974 GB, free: 292 kB / 494.1 MB 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.0004175/0.1548, allocations: 343.4 kB / 0.6978 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.1548, allocations: 8.031 kB / 0.6978 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.651e-05/0.1549, allocations: 38.73 kB / 0.6978 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.789e-05/0.1549, allocations: 0.9375 kB / 0.6978 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001283/0.155, allocations: 160.4 kB / 0.698 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.85e-05/0.1551, allocations: 30.27 kB / 0.698 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.1551, allocations: 12.11 kB / 0.698 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.1552, allocations: 41.69 kB / 0.6981 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1552, allocations: 3.938 kB / 0.6981 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.659e-06/0.1553, allocations: 0 / 0.6981 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.1553, allocations: 4 kB / 0.6981 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.394e-05/0.1553, allocations: 19.92 kB / 0.6981 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006601/0.156, allocations: 0.5755 MB / 0.6986 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.308e-05/0.156, allocations: 18.58 kB / 0.6987 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.585e-05/0.1561, allocations: 12.86 kB / 0.6987 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002802/0.1564, allocations: 344.5 kB / 0.699 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.1564, allocations: 30.56 kB / 0.699 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 4.007e-06/0.1564, allocations: 0 / 0.699 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001401/0.1565, allocations: 37.64 kB / 0.6991 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.1566, allocations: 55.41 kB / 0.6991 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.154e-05/0.1567, allocations: 97.97 kB / 0.6992 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1567, allocations: 33.7 kB / 0.6992 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.1568, allocations: 88.05 kB / 0.6993 GB, free: 14 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.584e-06/0.1568, allocations: 7.844 kB / 0.6993 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.1568, allocations: 17.7 kB / 0.6993 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.157, allocations: 318.8 kB / 0.6997 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.578e-05/0.157, allocations: 4 kB / 0.6997 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.441e-05/0.157, allocations: 13.72 kB / 0.6997 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.852e-05/0.157, allocations: 29.64 kB / 0.6997 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1571, allocations: 3.938 kB / 0.6997 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.854e-05/0.1571, allocations: 53.91 kB / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.1572, allocations: 4 kB / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1572, allocations: 0 / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1572, allocations: 0 / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.103e-05/0.1572, allocations: 4 kB / 0.6998 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.1573, allocations: 8.062 kB / 0.6998 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.849e-05/0.1573, allocations: 3.984 kB / 0.6998 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1573, allocations: 0 / 0.6998 GB, free: 13.5 MB / 0.4981 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.647e-05/0.1574, allocations: 117.7 kB / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.586e-05/0.1574, allocations: 0 / 0.6999 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001204/0.1575, allocations: 131.6 kB / 0.7 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.718e-05/0.1576, allocations: 176.3 kB / 0.7002 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.158e-05/0.1577, allocations: 184.3 kB / 0.7004 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.51e-05/0.1578, allocations: 184.2 kB / 0.7005 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002523/0.158, allocations: 409.2 kB / 0.7009 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.985e-05/0.1581, allocations: 112.9 kB / 0.701 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.474e-05/0.1581, allocations: 101 kB / 0.7011 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.106e-05/0.1582, allocations: 180.3 kB / 0.7013 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.246e-05/0.1583, allocations: 184.2 kB / 0.7015 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.9e-05/0.1584, allocations: 180.3 kB / 0.7016 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.386e-05/0.1584, allocations: 184.2 kB / 0.7018 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.1586, allocations: 315.7 kB / 0.7021 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.075e-05/0.1587, allocations: 178.1 kB / 0.7023 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.741e-05/0.1588, allocations: 184.2 kB / 0.7025 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.1589, allocations: 104.9 kB / 0.7026 GB, free: 10.44 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.159, allocations: 180.3 kB / 0.7027 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.1591, allocations: 104.9 kB / 0.7028 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.112e-05/0.1591, allocations: 91.27 kB / 0.7029 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1592, allocations: 0 / 0.7029 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002834/0.1594, allocations: 39.94 kB / 0.703 GB, free: 10.02 MB / 0.4981 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.0005528/0.16, allocations: 0.8595 MB / 0.7038 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.314e-05/0.1601, allocations: 11.94 kB / 0.7038 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1601, allocations: 0 / 0.7038 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.342e-06/0.1601, allocations: 0 / 0.7038 GB, free: 9.117 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004924/0.1606, allocations: 468.5 kB / 0.7043 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.1617, allocations: 1.328 MB / 0.7056 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.162, allocations: 0.6845 MB / 0.7062 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.964e-05/0.162, allocations: 5.094 kB / 0.7062 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.1621, allocations: 11.44 kB / 0.7062 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of SimCode: time 3.11e-07/0.1621, allocations: 0 / 0.7062 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02389/0.186, allocations: 2.154 MB / 0.7083 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/7.438, allocations: 16.38 kB / 0.7084 GB, free: 4.535 MB / 0.4981 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)