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: translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") translateModel(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 112 kB / 16.37 MB, free: 5.539 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.001401/0.001401, allocations: 191.9 kB / 17.3 MB, free: 5.18 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.256/1.256, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002043/0.002043, allocations: 282.1 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8855/0.8855, allocations: 169.3 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00164/0.00164, allocations: 93.3 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1456, allocations: 86.97 MB / 0.6816 GB, free: 7.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004858/0.1505, allocations: 4.001 MB / 0.6855 GB, free: 3.426 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001847/0.1507, allocations: 167.4 kB / 0.6857 GB, free: 3.262 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.39e-05/0.1507, allocations: 0 / 0.6857 GB, free: 3.262 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.995e-05/0.1508, allocations: 0 / 0.6857 GB, free: 3.262 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.817e-05/0.1509, allocations: 15.91 kB / 0.6857 GB, free: 3.246 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.1512, allocations: 82.81 kB / 0.6858 GB, free: 3.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.669e-05/0.1513, allocations: 35.86 kB / 0.6858 GB, free: 3.133 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.958e-05/0.1513, allocations: 0 / 0.6858 GB, free: 3.133 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.368e-05/0.1513, allocations: 15.97 kB / 0.6858 GB, free: 3.117 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.059e-05/0.1514, allocations: 23.86 kB / 0.6858 GB, free: 3.094 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.568e-06/0.1514, allocations: 0 / 0.6858 GB, free: 3.094 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001656/0.1516, allocations: 55.81 kB / 0.6859 GB, free: 3.039 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.602e-05/0.1516, allocations: 11.98 kB / 0.6859 GB, free: 3.027 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.529e-05/0.1517, allocations: 7.938 kB / 0.6859 GB, free: 3.02 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.1518, allocations: 47.89 kB / 0.6859 GB, free: 2.973 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.1518, allocations: 0 / 0.6859 GB, free: 2.973 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1518, allocations: 0 / 0.6859 GB, free: 2.973 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.1518, allocations: 0 / 0.6859 GB, free: 2.973 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.0003256/0.1521, allocations: 327.6 kB / 0.6863 GB, free: 2.605 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.1522, allocations: 12.03 kB / 0.6863 GB, free: 2.594 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.517e-05/0.1522, allocations: 4.922 kB / 0.6863 GB, free: 2.59 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.1523, allocations: 168.3 kB / 0.6864 GB, free: 2.387 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.1524, allocations: 34.27 kB / 0.6865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-06/0.1524, allocations: 384 / 0.6865 GB, free: 2.348 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.1525, allocations: 49.56 kB / 0.6865 GB, free: 2.293 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.1525, allocations: 0 / 0.6865 GB, free: 2.293 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.1525, allocations: 4 kB / 0.6865 GB, free: 2.289 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.1526, allocations: 0 / 0.6865 GB, free: 2.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.806e-05/0.1526, allocations: 11.98 kB / 0.6865 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003873/0.153, allocations: 342 kB / 0.6869 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.138e-05/0.153, allocations: 26.52 kB / 0.6869 GB, free: 1.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.349e-05/0.1531, allocations: 4.859 kB / 0.6869 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.363e-05/0.1531, allocations: 85.16 kB / 0.687 GB, free: 1.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.346e-05/0.1532, allocations: 34.5 kB / 0.687 GB, free: 1.688 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1532, allocations: 3.938 kB / 0.687 GB, free: 1.684 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001165/0.1533, allocations: 37.7 kB / 0.687 GB, free: 1.641 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.74e-05/0.1533, allocations: 51.41 kB / 0.6871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.151e-05/0.1534, allocations: 109.8 kB / 0.6872 GB, free: 1.461 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.1534, allocations: 25.7 kB / 0.6872 GB, free: 1.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.024e-05/0.1535, allocations: 92.03 kB / 0.6873 GB, free: 1.336 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.917e-06/0.1535, allocations: 0 / 0.6873 GB, free: 1.336 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.1535, allocations: 21.61 kB / 0.6873 GB, free: 1.309 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.1536, allocations: 322.9 kB / 0.6876 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.405e-05/0.1537, allocations: 8 kB / 0.6876 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.363e-05/0.1537, allocations: 17.66 kB / 0.6877 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.205e-05/0.1537, allocations: 25.7 kB / 0.6877 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.1537, allocations: 0 / 0.6877 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.085e-05/0.1538, allocations: 49.62 kB / 0.6877 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.868e-06/0.1538, allocations: 8.062 kB / 0.6877 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1538, allocations: 4 kB / 0.6877 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1539, allocations: 0 / 0.6877 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.694e-05/0.1539, allocations: 4 kB / 0.6877 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.187e-06/0.1539, allocations: 0 / 0.6877 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.662e-05/0.1539, allocations: 0 / 0.6877 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.1539, allocations: 4 kB / 0.6877 GB, free: 0.8477 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 6.723e-05/0.154, allocations: 109.8 kB / 0.6879 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.154, allocations: 4 kB / 0.6879 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.271e-05/0.1541, allocations: 128.9 kB / 0.688 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.375e-05/0.1542, allocations: 176.3 kB / 0.6881 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.529e-05/0.1543, allocations: 180.2 kB / 0.6883 GB, free: 236 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.619e-05/0.1543, allocations: 180.2 kB / 0.6885 GB, free: 48 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2341/0.3884, allocations: 405.2 kB / 0.6889 GB, free: 18.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/0.3885, allocations: 105.4 kB / 0.689 GB, free: 18.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.895e-05/0.3885, allocations: 105 kB / 0.6891 GB, free: 18.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.214e-05/0.3885, allocations: 182.1 kB / 0.6893 GB, free: 17.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.3886, allocations: 178.6 kB / 0.6894 GB, free: 17.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.972e-05/0.3886, allocations: 184.5 kB / 0.6896 GB, free: 17.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-05/0.3886, allocations: 185.3 kB / 0.6898 GB, free: 17.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001148/0.3888, allocations: 304.5 kB / 0.6901 GB, free: 16.99 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.979e-05/0.3888, allocations: 188.7 kB / 0.6902 GB, free: 16.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.3889, allocations: 183.5 kB / 0.6904 GB, free: 16.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.389, allocations: 113.4 kB / 0.6905 GB, free: 16.51 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.093e-05/0.3891, allocations: 180.8 kB / 0.6907 GB, free: 16.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.3891, allocations: 104.6 kB / 0.6908 GB, free: 16.22 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.468e-05/0.3892, allocations: 92.53 kB / 0.6909 GB, free: 16.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3892, allocations: 0 / 0.6909 GB, free: 16.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.3895, allocations: 17.06 kB / 0.6909 GB, free: 16.15 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.0002656/0.3898, allocations: 196.6 kB / 0.6911 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.116e-05/0.3899, allocations: 14.34 kB / 0.6911 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3899, allocations: 2.344 kB / 0.6911 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.663e-06/0.3899, allocations: 0 / 0.6911 GB, free: 15.98 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.3902, allocations: 465 kB / 0.6916 GB, free: 15.54 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.3905, allocations: 176.5 kB / 0.6917 GB, free: 15.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.499e-05/0.3906, allocations: 0.674 MB / 0.6924 GB, free: 14.68 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.359e-05/0.3906, allocations: 5.984 kB / 0.6924 GB, free: 14.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.767e-05/0.3906, allocations: 10.39 kB / 0.6924 GB, free: 14.67 MB / 494.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3906, allocations: 0 / 0.6924 GB, free: 14.67 MB / 494.1 MB Notification: Performance of Templates: time 0.002975/0.3936, allocations: 0.6334 MB / 0.693 GB, free: 14.64 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.makefile (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 & ./BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)