Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion",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.007864/0.007864, allocations: 100 kB / 15.73 MB, free: 6.008 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.002076/0.002076, allocations: 192.9 kB / 16.67 MB, free: 5.926 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8105/0.8105, allocations: 135.1 MB / 425.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.06 kB / 0.5851 GB, free: 21.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1445, allocations: 80.93 MB / 0.6641 GB, free: 6.309 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005838/0.1503, allocations: 4.022 MB / 0.6681 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002273/0.1506, allocations: 155.5 kB / 0.6682 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.507e-05/0.1506, allocations: 0 / 0.6682 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.1508, allocations: 3.938 kB / 0.6682 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 7.467e-05/0.1509, allocations: 19.92 kB / 0.6682 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.1513, allocations: 78.5 kB / 0.6683 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.1514, allocations: 39.78 kB / 0.6684 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.972e-05/0.1514, allocations: 4 kB / 0.6684 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.274e-05/0.1515, allocations: 11.98 kB / 0.6684 GB, free: 1.957 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.315e-05/0.1516, allocations: 19.91 kB / 0.6684 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.1516, allocations: 4 kB / 0.6684 GB, free: 1.934 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.1518, allocations: 51.83 kB / 0.6684 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.1e-05/0.1519, allocations: 19.91 kB / 0.6685 GB, free: 1.863 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.766e-05/0.1519, allocations: 4 kB / 0.6685 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001443/0.1521, allocations: 48.11 kB / 0.6685 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1521, allocations: 0 / 0.6685 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.106e-06/0.1521, allocations: 0 / 0.6685 GB, free: 1.812 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.67e-06/0.1521, allocations: 3.938 kB / 0.6685 GB, free: 1.809 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.0004164/0.1525, allocations: 335.4 kB / 0.6688 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1526, allocations: 17.11 kB / 0.6688 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.65e-05/0.1526, allocations: 30.75 kB / 0.6689 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.737e-05/0.1527, allocations: 4.891 kB / 0.6689 GB, free: 1.375 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.1528, allocations: 160.4 kB / 0.669 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.183e-05/0.1529, allocations: 30.27 kB / 0.6691 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.452e-05/0.1529, allocations: 8.109 kB / 0.6691 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001458/0.153, allocations: 45.69 kB / 0.6691 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.153, allocations: 0 / 0.6691 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.1531, allocations: 0 / 0.6691 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.828e-05/0.1531, allocations: 4 kB / 0.6691 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.931e-05/0.1531, allocations: 15.92 kB / 0.6691 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004826/0.1536, allocations: 334 kB / 0.6695 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.415e-05/0.1537, allocations: 22.58 kB / 0.6695 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.531e-05/0.1537, allocations: 4.859 kB / 0.6695 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.053e-05/0.1538, allocations: 81.17 kB / 0.6696 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1538, allocations: 42.55 kB / 0.6696 GB, free: 496 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.1538, allocations: 0 / 0.6696 GB, free: 496 kB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001529/0.154, allocations: 33.64 kB / 0.6696 GB, free: 456 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.154, allocations: 51.41 kB / 0.6697 GB, free: 392 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.002e-05/0.1541, allocations: 105.8 kB / 0.6698 GB, free: 276 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.1542, allocations: 25.7 kB / 0.6698 GB, free: 244 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.76e-05/0.1542, allocations: 92.03 kB / 0.6699 GB, free: 148 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.645e-06/0.1542, allocations: 4.078 kB / 0.6699 GB, free: 144 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.1543, allocations: 21.66 kB / 0.6699 GB, free: 116 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1544, allocations: 326.8 kB / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.629e-05/0.1544, allocations: 0 / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.523e-05/0.1545, allocations: 13.72 kB / 0.6702 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.198e-05/0.1545, allocations: 29.64 kB / 0.6703 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1545, allocations: 4 kB / 0.6703 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.328e-05/0.1546, allocations: 41.7 kB / 0.6703 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.1546, allocations: 11.94 kB / 0.6703 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.102e-06/0.1546, allocations: 0 / 0.6703 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1547, allocations: 8.203 kB / 0.6703 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.884e-05/0.1547, allocations: 4 kB / 0.6703 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1547, allocations: 0 / 0.6703 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.229e-05/0.1547, allocations: 4 kB / 0.6703 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1548, allocations: 0 / 0.6703 GB, free: 15.65 MB / 0.5137 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 9.22e-05/0.1549, allocations: 119.2 kB / 0.6705 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.103e-05/0.1549, allocations: 7.938 kB / 0.6705 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.155, allocations: 121 kB / 0.6706 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.448e-05/0.1551, allocations: 180.2 kB / 0.6707 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-05/0.1552, allocations: 176.3 kB / 0.6709 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.28e-05/0.1553, allocations: 188.2 kB / 0.6711 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002617/0.1555, allocations: 409.2 kB / 0.6715 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.774e-05/0.1556, allocations: 108.9 kB / 0.6716 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.548e-05/0.1556, allocations: 109 kB / 0.6717 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.826e-05/0.1557, allocations: 176.3 kB / 0.6719 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.692e-05/0.1558, allocations: 180.2 kB / 0.672 GB, free: 13.79 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.042e-05/0.1559, allocations: 184.3 kB / 0.6722 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.428e-05/0.1559, allocations: 184.2 kB / 0.6724 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.1561, allocations: 303.8 kB / 0.6727 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 7.976e-05/0.1562, allocations: 186 kB / 0.6729 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.37e-05/0.1563, allocations: 180.3 kB / 0.673 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.1565, allocations: 112.9 kB / 0.6731 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.509e-05/0.1566, allocations: 176.3 kB / 0.6733 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.872e-05/0.1566, allocations: 105 kB / 0.6734 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 6.274e-05/0.1567, allocations: 87.27 kB / 0.6735 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1567, allocations: 0 / 0.6735 GB, free: 12.21 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002864/0.157, allocations: 19.88 kB / 0.6735 GB, free: 12.19 MB / 0.5137 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.0006466/0.1577, allocations: 0.8359 MB / 0.6743 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 9.812e-05/0.1578, allocations: 11.98 kB / 0.6743 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.1578, allocations: 8.062 kB / 0.6743 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.294e-06/0.1578, allocations: 0 / 0.6743 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004413/0.1582, allocations: 459.7 kB / 0.6748 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.1594, allocations: 1.321 MB / 0.6761 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002503/0.1597, allocations: 0.6807 MB / 0.6767 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.363e-05/0.1597, allocations: 4 kB / 0.6767 GB, free: 8.738 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.1598, allocations: 11.44 kB / 0.6767 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of SimCode: time 4.81e-07/0.1598, allocations: 0 / 0.6767 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01944/0.1792, allocations: 1.494 MB / 0.6782 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.93/8.11, allocations: 10.03 kB / 0.6782 GB, free: 7.312 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > IDEAS_dev_IDEAS.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)