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.001235/0.001235, 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.001222/0.001222, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.249/1.249, 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.002116/0.002116, allocations: 290.4 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9334/0.9334, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 96.64 kB / 0.5953 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1437, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005503/0.1493, allocations: 4.006 MB / 0.6842 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001973/0.1495, allocations: 167.5 kB / 0.6843 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.476e-05/0.1495, allocations: 0 / 0.6843 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.432e-05/0.1496, allocations: 0 / 0.6843 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.352e-05/0.1497, allocations: 15.91 kB / 0.6844 GB, free: 12.38 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.1501, allocations: 79.75 kB / 0.6844 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.906e-05/0.1502, allocations: 35.8 kB / 0.6845 GB, free: 12.27 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.194e-05/0.1502, allocations: 4 kB / 0.6845 GB, free: 12.26 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.713e-05/0.1503, allocations: 19.97 kB / 0.6845 GB, free: 12.24 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.993e-05/0.1503, allocations: 7.938 kB / 0.6845 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.227e-05/0.1503, allocations: 0 / 0.6845 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.1506, allocations: 63.8 kB / 0.6846 GB, free: 12.17 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.442e-05/0.1506, allocations: 7.922 kB / 0.6846 GB, free: 12.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.959e-05/0.1506, allocations: 12 kB / 0.6846 GB, free: 12.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.1508, allocations: 40.11 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1508, allocations: 4 kB / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1508, allocations: 0 / 0.6846 GB, free: 12.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1508, allocations: 0 / 0.6846 GB, free: 12.11 MB / 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.0003651/0.1512, allocations: 335.6 kB / 0.6849 GB, free: 11.73 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1512, allocations: 8.031 kB / 0.6849 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.508e-05/0.1513, allocations: 38.73 kB / 0.685 GB, free: 11.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.1513, allocations: 8.844 kB / 0.685 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.1514, allocations: 164.3 kB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.481e-05/0.1515, allocations: 26.27 kB / 0.6852 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.347e-06/0.1515, allocations: 12.12 kB / 0.6852 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.1516, allocations: 45.62 kB / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1516, allocations: 0 / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.1516, allocations: 0 / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.1517, allocations: 0 / 0.6852 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.472e-05/0.1517, allocations: 15.98 kB / 0.6852 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004028/0.1521, allocations: 338 kB / 0.6856 GB, free: 10.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.417e-05/0.1522, allocations: 22.58 kB / 0.6856 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.628e-05/0.1522, allocations: 8.797 kB / 0.6856 GB, free: 10.92 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.091e-05/0.1523, allocations: 97.09 kB / 0.6857 GB, free: 10.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.284e-05/0.1523, allocations: 30.56 kB / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1523, allocations: 0 / 0.6857 GB, free: 10.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001278/0.1524, allocations: 29.7 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.1525, allocations: 55.53 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.213e-05/0.1526, allocations: 105.8 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.1526, allocations: 25.7 kB / 0.6859 GB, free: 10.52 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.871e-05/0.1526, allocations: 84.05 kB / 0.686 GB, free: 10.44 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.453e-06/0.1526, allocations: 11.84 kB / 0.686 GB, free: 10.43 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.153e-05/0.1527, allocations: 21.7 kB / 0.686 GB, free: 10.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.374e-05/0.1528, allocations: 314.8 kB / 0.6863 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.632e-05/0.1528, allocations: 7.938 kB / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.379e-05/0.1528, allocations: 21.7 kB / 0.6864 GB, free: 10.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.884e-05/0.1529, allocations: 17.72 kB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1529, allocations: 0 / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.626e-05/0.1529, allocations: 49.62 kB / 0.6864 GB, free: 9.969 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.181e-05/0.153, allocations: 8 kB / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.153, allocations: 0 / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.153, allocations: 0 / 0.6864 GB, free: 9.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.127e-05/0.153, allocations: 8.062 kB / 0.6864 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1531, allocations: 4 kB / 0.6864 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.1531, allocations: 0 / 0.6864 GB, free: 9.949 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-06/0.1531, allocations: 0 / 0.6864 GB, free: 9.949 MB / 494.1 MB 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.414e-05/0.1532, allocations: 123.1 kB / 0.6866 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.1532, allocations: 288 / 0.6866 GB, free: 9.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.51e-05/0.1533, allocations: 124.8 kB / 0.6867 GB, free: 9.691 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.534e-05/0.1534, allocations: 188.2 kB / 0.6869 GB, free: 9.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-05/0.1534, allocations: 184.2 kB / 0.687 GB, free: 9.312 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.516e-05/0.1535, allocations: 180.3 kB / 0.6872 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.1537, allocations: 405.2 kB / 0.6876 GB, free: 8.676 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.889e-05/0.1537, allocations: 108.9 kB / 0.6877 GB, free: 8.562 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.032e-05/0.1538, allocations: 101 kB / 0.6878 GB, free: 8.457 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.469e-05/0.1538, allocations: 184.2 kB / 0.688 GB, free: 8.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.1539, allocations: 176.3 kB / 0.6881 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.849e-05/0.154, allocations: 188.2 kB / 0.6883 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.996e-05/0.154, allocations: 176.3 kB / 0.6885 GB, free: 7.719 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.1541, allocations: 315.6 kB / 0.6888 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.376e-05/0.1542, allocations: 182.1 kB / 0.689 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/0.1543, allocations: 184.2 kB / 0.6891 GB, free: 6.996 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.1544, allocations: 105 kB / 0.6892 GB, free: 6.887 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.185e-05/0.1545, allocations: 184.3 kB / 0.6894 GB, free: 6.699 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.53e-05/0.1545, allocations: 116.9 kB / 0.6895 GB, free: 6.578 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.136e-05/0.1546, allocations: 83.22 kB / 0.6896 GB, free: 6.496 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.1546, allocations: 0 / 0.6896 GB, free: 6.496 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002347/0.1548, allocations: 27.81 kB / 0.6896 GB, free: 6.469 MB / 494.1 MB 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.0004585/0.1553, allocations: 0.8322 MB / 0.6904 GB, free: 5.609 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.669e-05/0.1554, allocations: 7.938 kB / 0.6905 GB, free: 5.602 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1554, allocations: 0 / 0.6905 GB, free: 5.602 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.232e-06/0.1554, allocations: 0 / 0.6905 GB, free: 5.602 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.1558, allocations: 455.7 kB / 0.6909 GB, free: 5.152 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009297/0.1567, allocations: 1.325 MB / 0.6922 GB, free: 3.742 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002206/0.1569, allocations: 0.6806 MB / 0.6928 GB, free: 3.035 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.756e-05/0.157, allocations: 4 kB / 0.6929 GB, free: 3.031 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.091e-05/0.157, allocations: 11.44 kB / 0.6929 GB, free: 3.02 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.157, allocations: 0 / 0.6929 GB, free: 3.02 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01764/0.1746, allocations: 1.497 MB / 0.6943 GB, free: 1.645 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.168/7.342, allocations: 3.938 kB / 0.6943 GB, free: 1.641 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)