Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.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.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008191/0.000819, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.005286/0.005286, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.349/1.349, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001679/0.001679, allocations: 259.1 kB / 291.7 MB, free: 1.867 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9783/0.9783, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004631/0.000463, allocations: 13.28 kB / 0.5987 GB, free: 28.1 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1668, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u): time 0.6195/0.7862, allocations: 294.1 MB / 0.9723 GB, free: 9.812 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.07421/0.8605, allocations: 49.69 MB / 1.021 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01475/0.8753, allocations: 266.2 kB / 1.021 GB, free: 7.734 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.01209/0.8874, allocations: 2.786 MB / 1.024 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.03178/0.9193, allocations: 8.413 MB / 1.032 GB, free: 12.49 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.01745/0.9367, allocations: 6.02 MB / 1.038 GB, free: 6.508 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.4686/1.405, allocations: 24.55 MB / 1.062 GB, free: 56.92 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01048/1.416, allocations: 4.721 MB / 1.066 GB, free: 56.39 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01963/1.436, allocations: 6.191 MB / 1.073 GB, free: 56.37 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01113/1.447, allocations: 4.896 MB / 1.077 GB, free: 56.1 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.002127/1.449, allocations: 230.7 kB / 1.078 GB, free: 56.1 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01227/1.461, allocations: 3.903 MB / 1.081 GB, free: 56.1 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.002239/1.463, allocations: 1.131 MB / 1.082 GB, free: 55.84 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.006822/1.47, allocations: 3.322 MB / 1.086 GB, free: 54.77 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.01727/1.487, allocations: 9.925 MB / 1.095 GB, free: 53.62 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/1.488, allocations: 1 kB / 1.095 GB, free: 53.62 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.974e-06/1.488, allocations: 0 / 1.095 GB, free: 53.62 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 0.0003075/1.488, allocations: 0 / 1.095 GB, free: 53.62 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.01126/1.499, allocations: 6.199 MB / 1.101 GB, free: 50.42 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/1.499, allocations: 10.06 kB / 1.101 GB, free: 50.42 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002216/1.501, allocations: 0.7852 MB / 1.102 GB, free: 50.05 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009626/1.511, allocations: 5.217 MB / 1.107 GB, free: 48.96 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002379/1.511, allocations: 323.1 kB / 1.108 GB, free: 48.95 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007209/1.512, allocations: 430.3 kB / 1.108 GB, free: 48.94 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007282/1.519, allocations: 4.383 MB / 1.112 GB, free: 48.14 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.842e-05/1.519, allocations: 22.05 kB / 1.112 GB, free: 48.13 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003593/1.52, allocations: 178.5 kB / 1.112 GB, free: 48.13 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001147/1.52, allocations: 117.4 kB / 1.113 GB, free: 48.13 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004759/1.525, allocations: 2.976 MB / 1.116 GB, free: 48.09 MB / 0.7481 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02556/1.55, allocations: 25.04 MB / 1.14 GB, free: 30.24 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002698/1.553, allocations: 2.772 MB / 1.143 GB, free: 28.88 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/1.554, allocations: 1 MB / 1.144 GB, free: 28.76 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002068/1.556, allocations: 3.918 MB / 1.147 GB, free: 24.25 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/1.557, allocations: 68.2 kB / 1.148 GB, free: 24.21 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=217): time 4.358e-06/1.557, allocations: 0 / 1.148 GB, free: 24.21 MB / 0.7481 GB Notification: Performance of matching and sorting (n=217): time 0.01098/1.568, allocations: 4.129 MB / 1.152 GB, free: 22.82 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/1.568, allocations: 80.91 kB / 1.152 GB, free: 22.75 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00699/1.575, allocations: 4.222 MB / 1.156 GB, free: 21.71 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0006568/1.575, allocations: 79.92 kB / 1.156 GB, free: 21.68 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001929/1.577, allocations: 2.805 MB / 1.159 GB, free: 20.53 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008905/1.578, allocations: 0.7605 MB / 1.159 GB, free: 19.97 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002492/1.578, allocations: 232.9 kB / 1.16 GB, free: 19.92 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 4.086e-05/1.578, allocations: 305.1 kB / 1.16 GB, free: 19.62 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/1.58, allocations: 0.8108 MB / 1.161 GB, free: 19.51 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/1.581, allocations: 1.824 MB / 1.162 GB, free: 18.2 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002846/1.584, allocations: 2.522 MB / 1.165 GB, free: 16.29 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/1.584, allocations: 8 kB / 1.165 GB, free: 16.28 MB / 0.7481 GB Notification: Performance of matching and sorting (n=365) (initialization): time 0.007252/1.592, allocations: 3.569 MB / 1.168 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.000309/1.592, allocations: 0.7503 MB / 1.169 GB, free: 12.7 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/1.592, allocations: 20 kB / 1.169 GB, free: 12.68 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002401/1.594, allocations: 0.5921 MB / 1.17 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/1.596, allocations: 0.554 MB / 1.17 GB, free: 11.65 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/1.598, allocations: 2.696 MB / 1.173 GB, free: 9.113 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005224/1.603, allocations: 0.5948 MB / 1.173 GB, free: 8.566 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004529/1.603, allocations: 139.6 kB / 1.174 GB, free: 8.453 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/1.603, allocations: 6.344 kB / 1.174 GB, free: 8.449 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004606/1.608, allocations: 2.822 MB / 1.176 GB, free: 6.59 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/1.608, allocations: 23.94 kB / 1.176 GB, free: 6.566 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008677/1.609, allocations: 373.4 kB / 1.177 GB, free: 6.254 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/1.611, allocations: 0.5533 MB / 1.177 GB, free: 5.758 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007065/1.618, allocations: 7.72 MB / 1.185 GB, free: 14.54 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005528/1.623, allocations: 0.5489 MB / 1.185 GB, free: 14.03 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005722/1.624, allocations: 134.3 kB / 1.185 GB, free: 13.92 MB / 0.7637 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * 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 (323): * Single equations (assignments): 319 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,12), (1,9), (1,12), (1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.002825/1.627, allocations: 1.01 MB / 1.186 GB, free: 13.36 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/1.628, allocations: 0.5094 MB / 1.187 GB, free: 12.85 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006541/1.635, allocations: 3.605 MB / 1.19 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.523e-05/1.635, allocations: 31.8 kB / 1.191 GB, free: 10.24 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/1.635, allocations: 0 / 1.191 GB, free: 10.24 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003802/1.639, allocations: 2.463 MB / 1.193 GB, free: 8.523 MB / 0.7637 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01698/1.656, allocations: 8.23 MB / 1.201 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.585e-05/1.656, allocations: 7.984 kB / 1.201 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001343/1.657, allocations: 363.3 kB / 1.201 GB, free: 1.711 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007486/1.658, allocations: 301.3 kB / 1.202 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/1.658, allocations: 67.95 kB / 1.202 GB, free: 1.352 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001886/1.66, allocations: 2.511 MB / 1.204 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.145e-06/1.66, allocations: 0 / 1.204 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007805/1.668, allocations: 4.356 MB / 1.208 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003207/1.671, allocations: 0.9816 MB / 1.209 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001168/1.672, allocations: 44 kB / 1.209 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003942/1.676, allocations: 427 kB / 1.21 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002852/1.677, allocations: 149.8 kB / 1.21 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002552/1.677, allocations: 115.9 kB / 1.21 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.004965/1.682, allocations: 2.789 MB / 1.213 GB, free: 5.852 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.51e-07/1.682, allocations: 0 / 1.213 GB, free: 5.852 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.01166/1.694, allocations: 3.265 MB / 1.216 GB, free: 2.578 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * 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 (219): * Single equations (assignments): 181 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,9), (1,7), (1,9), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003086/1.697, allocations: 1.499 MB / 1.217 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.007619/1.704, allocations: 4.447 MB / 1.222 GB, free: 12.88 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/1.704, allocations: 4 kB / 1.222 GB, free: 12.88 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.002154/1.707, allocations: 1.243 MB / 1.223 GB, free: 11.67 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01552/1.722, allocations: 2.647 MB / 1.226 GB, free: 9.047 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01746/1.74, allocations: 11.55 MB / 1.237 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002452/1.742, allocations: 2.877 MB / 1.24 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.004946/1.747, allocations: 1.173 MB / 1.241 GB, free: 9.445 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009552/1.748, allocations: 418.4 kB / 1.241 GB, free: 9.039 MB / 0.8106 GB Notification: Performance of SimCode: time 6.71e-07/1.748, allocations: 0 / 1.241 GB, free: 9.039 MB / 0.8106 GB Notification: Performance of Templates: time 0.1681/1.916, allocations: 103.1 MB / 1.342 GB, free: 4.039 MB / 0.9044 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)