Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.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.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion",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.001223/0.001223, allocations: 108 kB / 15.61 MB, free: 152 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.001245/0.001245, allocations: 195.9 kB / 16.53 MB, free: 6.664 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002399/0.002398, allocations: 287 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.035/1.035, allocations: 178.6 MB / 0.5073 GB, free: 4.578 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002622/0.002622, allocations: 98.08 kB / 0.6065 GB, free: 24.7 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.159, allocations: 89.15 MB / 0.6936 GB, free: 4.262 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion): time 0.005279/0.1643, allocations: 3.718 MB / 0.6972 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001918/0.1646, allocations: 151.5 kB / 0.6974 GB, free: 400 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.009e-05/0.1646, allocations: 0 / 0.6974 GB, free: 400 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.143e-05/0.1647, allocations: 3.938 kB / 0.6974 GB, free: 396 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.256e-05/0.1648, allocations: 15.91 kB / 0.6974 GB, free: 380 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002981/0.1651, allocations: 87.75 kB / 0.6975 GB, free: 292 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.796e-05/0.1651, allocations: 35.84 kB / 0.6975 GB, free: 256 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.147e-05/0.1652, allocations: 4 kB / 0.6975 GB, free: 252 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.481e-05/0.1652, allocations: 8 kB / 0.6975 GB, free: 244 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.521e-05/0.1653, allocations: 23.84 kB / 0.6975 GB, free: 220 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.1653, allocations: 0 / 0.6975 GB, free: 220 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004858/0.1658, allocations: 183.4 kB / 0.6977 GB, free: 36 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.363e-05/0.1658, allocations: 7.984 kB / 0.6977 GB, free: 28 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.972e-05/0.1659, allocations: 15.92 kB / 0.6977 GB, free: 12 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.166, allocations: 40.19 kB / 0.6978 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.706e-06/0.166, allocations: 0 / 0.6978 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of FrontEnd: time 5.54e-06/0.166, allocations: 4 kB / 0.6978 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.945e-06/0.166, allocations: 3.938 kB / 0.6978 GB, free: 15.96 MB / 0.4981 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.0003661/0.1664, allocations: 335.4 kB / 0.6981 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.1664, allocations: 8.031 kB / 0.6981 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.337e-05/0.1665, allocations: 34.73 kB / 0.6981 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.1665, allocations: 8.938 kB / 0.6981 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.1666, allocations: 172.3 kB / 0.6983 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.196e-05/0.1667, allocations: 26.27 kB / 0.6983 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.1667, allocations: 8.125 kB / 0.6983 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.1668, allocations: 41.67 kB / 0.6984 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1668, allocations: 0 / 0.6984 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.1669, allocations: 0 / 0.6984 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.1669, allocations: 0 / 0.6984 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.175e-05/0.1669, allocations: 23.92 kB / 0.6984 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004256/0.1674, allocations: 342 kB / 0.6987 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 3.492e-05/0.1674, allocations: 14.58 kB / 0.6987 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.539e-05/0.1674, allocations: 4.859 kB / 0.6987 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.361e-05/0.1675, allocations: 89.16 kB / 0.6988 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.56e-05/0.1676, allocations: 34.56 kB / 0.6989 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.1676, allocations: 0 / 0.6989 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.000134/0.1677, allocations: 45.55 kB / 0.6989 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.1677, allocations: 51.41 kB / 0.699 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.103e-05/0.1678, allocations: 101.8 kB / 0.6991 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.1679, allocations: 25.7 kB / 0.6991 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.37e-05/0.1679, allocations: 88.05 kB / 0.6992 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.078e-06/0.1679, allocations: 0 / 0.6992 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.168, allocations: 21.7 kB / 0.6992 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.1681, allocations: 314.8 kB / 0.6995 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.486e-05/0.1681, allocations: 8.125 kB / 0.6995 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.555e-05/0.1681, allocations: 21.7 kB / 0.6995 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.397e-05/0.1682, allocations: 17.66 kB / 0.6995 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.1682, allocations: 0 / 0.6995 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.84e-05/0.1683, allocations: 49.69 kB / 0.6996 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1683, allocations: 7.938 kB / 0.6996 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.748e-06/0.1683, allocations: 4.062 kB / 0.6996 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.1683, allocations: 3.938 kB / 0.6996 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.967e-05/0.1684, allocations: 4 kB / 0.6996 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.957e-06/0.1684, allocations: 4 kB / 0.6996 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.1684, allocations: 3.906 kB / 0.6996 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.1684, allocations: 4 kB / 0.6996 GB, free: 13.8 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.903e-05/0.1685, allocations: 121.8 kB / 0.6997 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.748e-05/0.1685, allocations: 0 / 0.6997 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.1687, allocations: 126.6 kB / 0.6998 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.778e-05/0.1687, allocations: 180.2 kB / 0.7 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.807e-05/0.1688, allocations: 188.2 kB / 0.7002 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.318e-05/0.1689, allocations: 180.2 kB / 0.7004 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.1692, allocations: 405.2 kB / 0.7008 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-05/0.1692, allocations: 108.9 kB / 0.7009 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.571e-05/0.1693, allocations: 105 kB / 0.701 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.322e-05/0.1693, allocations: 176.3 kB / 0.7011 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.856e-05/0.1694, allocations: 184.2 kB / 0.7013 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.369e-05/0.1695, allocations: 180.2 kB / 0.7015 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.47e-05/0.1696, allocations: 180.2 kB / 0.7016 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001501/0.1697, allocations: 307.8 kB / 0.7019 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.405e-05/0.1698, allocations: 190 kB / 0.7021 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.536e-05/0.1699, allocations: 180.3 kB / 0.7023 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.1701, allocations: 108.9 kB / 0.7024 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.1702, allocations: 184.5 kB / 0.7026 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.265e-05/0.1702, allocations: 105 kB / 0.7027 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.318e-05/0.1703, allocations: 79.28 kB / 0.7027 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1703, allocations: 0 / 0.7027 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002594/0.1705, allocations: 15.94 kB / 0.7028 GB, free: 10.35 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.0005451/0.1711, allocations: 0.836 MB / 0.7036 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.984e-05/0.1712, allocations: 12 kB / 0.7036 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.1712, allocations: 0 / 0.7036 GB, free: 9.477 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.363e-06/0.1712, allocations: 3.938 kB / 0.7036 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.1716, allocations: 464.5 kB / 0.704 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001015/0.1726, allocations: 1.328 MB / 0.7053 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.1729, allocations: 0.6768 MB / 0.706 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.039e-05/0.173, allocations: 11.38 kB / 0.706 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.246e-05/0.173, allocations: 15.42 kB / 0.706 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.173, allocations: 3.938 kB / 0.706 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.1938, allocations: 1.512 MB / 0.7075 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.226/7.419, allocations: 16.19 kB / 0.7075 GB, free: 5.48 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion_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_Examples_PropyleneGlycolWaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.PropyleneGlycolWaterTemperatureEnthalpyInversion.pipe 2>&1)