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.001421/0.001421, 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.001851/0.001851, allocations: 196.6 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.287/1.287, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00217/0.00217, allocations: 291.1 kB / 290.7 MB, free: 1.977 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9193/0.9193, allocations: 169.2 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 93.27 kB / 0.5952 GB, free: 28.17 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1338, allocations: 86.98 MB / 0.6802 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004729/0.1386, allocations: 4.012 MB / 0.6841 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001735/0.1388, allocations: 151.5 kB / 0.6842 GB, free: 12.56 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.315e-05/0.1388, allocations: 4 kB / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.673e-05/0.1389, allocations: 7.938 kB / 0.6842 GB, free: 12.55 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.859e-05/0.139, allocations: 7.984 kB / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002838/0.1392, allocations: 83.62 kB / 0.6843 GB, free: 12.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.182e-05/0.1393, allocations: 39.84 kB / 0.6844 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.34e-05/0.1394, allocations: 0 / 0.6844 GB, free: 12.42 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.48e-05/0.1394, allocations: 15.92 kB / 0.6844 GB, free: 12.4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.439e-05/0.1395, allocations: 15.98 kB / 0.6844 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.093e-05/0.1395, allocations: 0 / 0.6844 GB, free: 12.39 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.1397, allocations: 63.8 kB / 0.6844 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.737e-05/0.1397, allocations: 11.94 kB / 0.6845 GB, free: 12.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.468e-05/0.1398, allocations: 7.984 kB / 0.6845 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.1399, allocations: 44.12 kB / 0.6845 GB, free: 12.26 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1399, allocations: 0 / 0.6845 GB, free: 12.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1399, allocations: 0 / 0.6845 GB, free: 12.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.577e-06/0.1399, allocations: 0 / 0.6845 GB, free: 12.26 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.000312/0.1402, allocations: 331.6 kB / 0.6848 GB, free: 11.89 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.169e-05/0.1403, allocations: 12.03 kB / 0.6848 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.309e-05/0.1403, allocations: 4.844 kB / 0.6848 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.929e-05/0.1404, allocations: 168.3 kB / 0.685 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/0.1405, allocations: 30.27 kB / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-06/0.1405, allocations: 384 / 0.685 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.1406, allocations: 49.56 kB / 0.6851 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1406, allocations: 4 kB / 0.6851 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.1406, allocations: 3.984 kB / 0.6851 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1406, allocations: 4 kB / 0.6851 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.056e-05/0.1407, allocations: 8 kB / 0.6851 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003716/0.1411, allocations: 342 kB / 0.6854 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.257e-05/0.1411, allocations: 22.52 kB / 0.6854 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.1411, allocations: 12.91 kB / 0.6855 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.109e-05/0.1412, allocations: 81.11 kB / 0.6855 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.1412, allocations: 30.56 kB / 0.6856 GB, free: 10.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.1412, allocations: 4 kB / 0.6856 GB, free: 10.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001214/0.1414, allocations: 37.69 kB / 0.6856 GB, free: 10.93 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.1414, allocations: 55.34 kB / 0.6857 GB, free: 10.86 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.779e-05/0.1415, allocations: 101.8 kB / 0.6858 GB, free: 10.75 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.1415, allocations: 29.7 kB / 0.6858 GB, free: 10.72 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.1416, allocations: 92.03 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.133e-06/0.1416, allocations: 3.906 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.936e-05/0.1416, allocations: 17.66 kB / 0.6859 GB, free: 10.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.391e-05/0.1417, allocations: 318.9 kB / 0.6862 GB, free: 10.28 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.644e-05/0.1417, allocations: 8 kB / 0.6862 GB, free: 10.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.24e-05/0.1417, allocations: 17.7 kB / 0.6862 GB, free: 10.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.138e-05/0.1418, allocations: 21.72 kB / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1418, allocations: 0 / 0.6862 GB, free: 10.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.207e-05/0.1419, allocations: 49.69 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.1419, allocations: 8 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1419, allocations: 0 / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.1419, allocations: 4 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.706e-05/0.142, allocations: 4 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.142, allocations: 0 / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.718e-05/0.142, allocations: 0 / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.46e-05/0.142, allocations: 7.984 kB / 0.6863 GB, free: 10.14 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.977e-05/0.1421, allocations: 115 kB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.83e-05/0.1421, allocations: 4 kB / 0.6864 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.611e-05/0.1422, allocations: 121 kB / 0.6865 GB, free: 9.891 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-05/0.1423, allocations: 188.2 kB / 0.6867 GB, free: 9.699 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.253e-05/0.1423, allocations: 176.3 kB / 0.6869 GB, free: 9.52 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.313e-05/0.1424, allocations: 176.3 kB / 0.6871 GB, free: 9.34 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/0.1426, allocations: 417.1 kB / 0.6875 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/0.1427, allocations: 101 kB / 0.6875 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.098e-05/0.1427, allocations: 104.9 kB / 0.6876 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-05/0.1428, allocations: 180.3 kB / 0.6878 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.71e-05/0.1428, allocations: 180.2 kB / 0.688 GB, free: 8.293 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.298e-05/0.1429, allocations: 188.1 kB / 0.6882 GB, free: 8.102 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.857e-05/0.1429, allocations: 180.3 kB / 0.6883 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.1431, allocations: 311.6 kB / 0.6886 GB, free: 7.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.591e-05/0.1431, allocations: 186.1 kB / 0.6888 GB, free: 7.383 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/0.1432, allocations: 180.2 kB / 0.689 GB, free: 7.199 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001692/0.1434, allocations: 117 kB / 0.6891 GB, free: 7.078 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.668e-05/0.1435, allocations: 184.2 kB / 0.6893 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/0.1435, allocations: 101 kB / 0.6894 GB, free: 6.785 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.413e-05/0.1435, allocations: 87.28 kB / 0.6895 GB, free: 6.699 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1435, allocations: 0 / 0.6895 GB, free: 6.699 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002487/0.1438, allocations: 19.94 kB / 0.6895 GB, free: 6.68 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.0002529/0.1441, allocations: 206.4 kB / 0.6897 GB, free: 6.469 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 7.571e-05/0.1441, allocations: 15.92 kB / 0.6897 GB, free: 6.453 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1442, allocations: 0 / 0.6897 GB, free: 6.453 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-06/0.1442, allocations: 0 / 0.6897 GB, free: 6.453 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.1445, allocations: 459.7 kB / 0.6901 GB, free: 6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000244/0.1448, allocations: 186 kB / 0.6903 GB, free: 5.793 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.145, allocations: 0.669 MB / 0.691 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.013e-05/0.1451, allocations: 7.984 kB / 0.691 GB, free: 5.09 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.738e-05/0.1451, allocations: 11.44 kB / 0.691 GB, free: 5.082 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1451, allocations: 3.938 kB / 0.691 GB, free: 5.078 MB / 494.1 MB Notification: Performance of Templates: time 0.002501/0.1476, allocations: 0.6343 MB / 0.6916 GB, free: 4.453 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1)