Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="BuildingSystems_BuildingSystems_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.00478/0.00478, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.001118/0.001118, allocations: 198.6 kB / 16.68 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002202/0.002202, allocations: 282.7 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9624/0.9624, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001826/0.001826, allocations: 95.86 kB / 0.6809 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1519, allocations: 86.98 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005208/0.1571, allocations: 4.018 MB / 0.7698 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0001935/0.1573, allocations: 143.5 kB / 0.7699 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.349e-05/0.1574, allocations: 0 / 0.7699 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.089e-05/0.1575, allocations: 7.938 kB / 0.77 GB, free: 4.766 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.725e-05/0.1575, allocations: 15.97 kB / 0.77 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000319/0.1579, allocations: 83.62 kB / 0.77 GB, free: 4.668 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.781e-05/0.158, allocations: 39.78 kB / 0.7701 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.618e-05/0.158, allocations: 4 kB / 0.7701 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.149e-05/0.158, allocations: 11.98 kB / 0.7701 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.752e-05/0.1581, allocations: 15.98 kB / 0.7701 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.1581, allocations: 0 / 0.7701 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.1583, allocations: 55.81 kB / 0.7702 GB, free: 4.543 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.307e-05/0.1584, allocations: 15.92 kB / 0.7702 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.1584, allocations: 7.984 kB / 0.7702 GB, free: 4.52 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.1585, allocations: 44.12 kB / 0.7702 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1586, allocations: 0 / 0.7702 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1586, allocations: 0 / 0.7702 GB, free: 4.477 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.1586, allocations: 0 / 0.7702 GB, free: 4.477 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.0003616/0.1589, allocations: 335.4 kB / 0.7706 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.159, allocations: 12.03 kB / 0.7706 GB, free: 4.09 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.515e-05/0.159, allocations: 42.72 kB / 0.7706 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.24e-05/0.1591, allocations: 8.875 kB / 0.7706 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.932e-05/0.1592, allocations: 164.4 kB / 0.7708 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.791e-05/0.1592, allocations: 30.27 kB / 0.7708 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.1593, allocations: 4.125 kB / 0.7708 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/0.1594, allocations: 45.69 kB / 0.7708 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.1594, allocations: 0 / 0.7708 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.1594, allocations: 0 / 0.7708 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.718e-05/0.1594, allocations: 0 / 0.7708 GB, free: 3.742 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.431e-05/0.1595, allocations: 19.98 kB / 0.7709 GB, free: 3.723 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004026/0.1599, allocations: 338 kB / 0.7712 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.695e-05/0.16, allocations: 18.58 kB / 0.7712 GB, free: 3.297 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.524e-05/0.16, allocations: 4.859 kB / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 8.39e-05/0.1601, allocations: 89.14 kB / 0.7713 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.1601, allocations: 38.56 kB / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1601, allocations: 0 / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001397/0.1602, allocations: 41.59 kB / 0.7714 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.76e-05/0.1603, allocations: 51.41 kB / 0.7714 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.626e-05/0.1604, allocations: 101.8 kB / 0.7715 GB, free: 2.918 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1604, allocations: 29.7 kB / 0.7715 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.1604, allocations: 88.03 kB / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.759e-06/0.1604, allocations: 0 / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.219e-05/0.1605, allocations: 21.83 kB / 0.7717 GB, free: 2.766 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.581e-05/0.1606, allocations: 322.8 kB / 0.772 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.636e-05/0.1606, allocations: 0 / 0.772 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.19e-05/0.1606, allocations: 21.64 kB / 0.772 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.386e-05/0.1606, allocations: 29.59 kB / 0.772 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1607, allocations: 0 / 0.772 GB, free: 2.379 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.235e-05/0.1607, allocations: 49.69 kB / 0.7721 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.1607, allocations: 8 kB / 0.7721 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1608, allocations: 0 / 0.7721 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1608, allocations: 0 / 0.7721 GB, free: 2.316 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.434e-05/0.1608, allocations: 7.938 kB / 0.7721 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.1608, allocations: 0 / 0.7721 GB, free: 2.309 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.026e-05/0.1609, allocations: 7.953 kB / 0.7721 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1609, allocations: 0 / 0.7721 GB, free: 2.301 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 6.045e-05/0.1609, allocations: 114.4 kB / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.161, allocations: 8.047 kB / 0.7722 GB, free: 2.172 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.1611, allocations: 117 kB / 0.7723 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.022e-05/0.1611, allocations: 180.2 kB / 0.7725 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.082e-05/0.1612, allocations: 180.2 kB / 0.7727 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.816e-05/0.1612, allocations: 180.2 kB / 0.7728 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000189/0.1614, allocations: 413.2 kB / 0.7732 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/0.1615, allocations: 101 kB / 0.7733 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.072e-05/0.1615, allocations: 108.9 kB / 0.7734 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-05/0.1616, allocations: 176.3 kB / 0.7736 GB, free: 0.6367 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.645e-05/0.1616, allocations: 184.2 kB / 0.7738 GB, free: 460 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-05/0.1617, allocations: 184.2 kB / 0.7739 GB, free: 268 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.063e-05/0.1617, allocations: 184.3 kB / 0.7741 GB, free: 76 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2877/0.4494, allocations: 307.2 kB / 0.7744 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.404e-05/0.4495, allocations: 180.5 kB / 0.7746 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/0.4496, allocations: 182.2 kB / 0.7748 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.4498, allocations: 107.3 kB / 0.7749 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.4498, allocations: 182.8 kB / 0.775 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.806e-05/0.4498, allocations: 108.2 kB / 0.7751 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.013e-05/0.4499, allocations: 89.2 kB / 0.7752 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4499, allocations: 0 / 0.7752 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003254/0.4502, allocations: 17.41 kB / 0.7752 GB, free: 14.5 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.0004259/0.4507, allocations: 0.8314 MB / 0.776 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.177e-05/0.4508, allocations: 9.328 kB / 0.7761 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.4508, allocations: 0.9375 kB / 0.7761 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.564e-06/0.4508, allocations: 7.016 kB / 0.7761 GB, free: 13.69 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003558/0.4512, allocations: 467.7 kB / 0.7765 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009815/0.4521, allocations: 1.32 MB / 0.7778 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.4523, allocations: 0.6742 MB / 0.7785 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 5.09e-05/0.4524, allocations: 7.781 kB / 0.7785 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.875e-05/0.4524, allocations: 13.8 kB / 0.7785 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.4524, allocations: 0.5312 kB / 0.7785 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01738/0.4698, allocations: 1.528 MB / 0.78 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.406/7.876, allocations: 13.3 kB / 0.78 GB, free: 10.96 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)