Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.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.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001277, allocations: 110.7 kB / 16.42 MB, free: 6.516 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.001324/0.001324, allocations: 192.3 kB / 17.35 MB, free: 5.738 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.323/1.323, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002467/0.002467, allocations: 296.6 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9407/0.9407, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001763/0.001763, allocations: 95.84 kB / 0.6821 GB, free: 6.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3762, allocations: 86.97 MB / 0.7671 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05306/0.4293, allocations: 53.71 MB / 0.8195 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02376/0.4531, allocations: 17 MB / 0.8361 GB, free: 12.96 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002328/0.4555, allocations: 91.5 kB / 0.8362 GB, free: 12.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004808/0.4604, allocations: 1.921 MB / 0.8381 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005998/0.4664, allocations: 2.62 MB / 0.8407 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005282/0.4717, allocations: 2.363 MB / 0.843 GB, free: 5.973 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.009907/0.4816, allocations: 7.547 MB / 0.8503 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002414/0.484, allocations: 1.67 MB / 0.852 GB, free: 12.71 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004014/0.488, allocations: 1.967 MB / 0.8539 GB, free: 10.74 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002122/0.4902, allocations: 1.419 MB / 0.8553 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0004406/0.4906, allocations: 180 kB / 0.8554 GB, free: 9.141 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003825/0.4945, allocations: 2.024 MB / 0.8574 GB, free: 7.113 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0007153/0.4952, allocations: 0.6657 MB / 0.8581 GB, free: 6.445 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.4968, allocations: 1.22 MB / 0.8593 GB, free: 5.219 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005351/0.5021, allocations: 3.937 MB / 0.8631 GB, free: 1.27 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.5021, allocations: 0 / 0.8631 GB, free: 1.27 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5022, allocations: 0 / 0.8631 GB, free: 1.27 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 8.695e-05/0.5022, allocations: 0 / 0.8631 GB, free: 1.27 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.005613/0.5079, allocations: 2.944 MB / 0.866 GB, free: 14.24 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.5079, allocations: 8.031 kB / 0.866 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002681/0.5106, allocations: 0.5472 MB / 0.8665 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004705/0.5153, allocations: 2.735 MB / 0.8692 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-05/0.5154, allocations: 98.16 kB / 0.8693 GB, free: 10.78 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.5156, allocations: 124 kB / 0.8694 GB, free: 10.66 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.5183, allocations: 1.363 MB / 0.8707 GB, free: 9.195 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.5183, allocations: 3.938 kB / 0.8707 GB, free: 9.191 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.5184, allocations: 51.98 kB / 0.8708 GB, free: 9.141 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.061e-05/0.5185, allocations: 42.08 kB / 0.8708 GB, free: 9.098 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002739/0.5212, allocations: 1.105 MB / 0.8719 GB, free: 7.984 MB / 0.6387 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.009473/0.5307, allocations: 7.46 MB / 0.8792 GB, free: 15.97 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002533/0.5333, allocations: 1.34 MB / 0.8805 GB, free: 14.51 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009932/0.5343, allocations: 426.7 kB / 0.8809 GB, free: 14.09 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005365/0.5396, allocations: 3.164 MB / 0.884 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.5408, allocations: 434.9 kB / 0.8844 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=59): time 2.705e-06/0.5408, allocations: 0 / 0.8844 GB, free: 10.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59): time 0.00329/0.5441, allocations: 1.24 MB / 0.8856 GB, free: 8.891 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.5441, allocations: 55.97 kB / 0.8857 GB, free: 8.824 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002846/0.547, allocations: 2.129 MB / 0.8878 GB, free: 6.668 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.119e-05/0.5471, allocations: 53.64 kB / 0.8878 GB, free: 6.609 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008206/0.5479, allocations: 1.01 MB / 0.8888 GB, free: 5.59 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.5481, allocations: 221 kB / 0.889 GB, free: 5.371 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004409/0.5485, allocations: 310.5 kB / 0.8893 GB, free: 5.059 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.217e-05/0.5486, allocations: 301.1 kB / 0.8896 GB, free: 4.762 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.5499, allocations: 0.5532 MB / 0.8901 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001498/0.5514, allocations: 0.9924 MB / 0.8911 GB, free: 3.027 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002526/0.5539, allocations: 1.448 MB / 0.8925 GB, free: 1.414 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.5539, allocations: 0 / 0.8925 GB, free: 1.414 MB / 0.6544 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.00343/0.5574, allocations: 1.77 MB / 0.8942 GB, free: 15.63 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.916e-05/0.5574, allocations: 41.69 kB / 0.8943 GB, free: 15.58 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.5575, allocations: 12 kB / 0.8943 GB, free: 15.57 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.978e-05/0.5575, allocations: 20 kB / 0.8943 GB, free: 15.55 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.5587, allocations: 307.8 kB / 0.8946 GB, free: 15.25 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.898e-05/0.5587, allocations: 23.92 kB / 0.8946 GB, free: 15.23 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/0.5601, allocations: 182.6 kB / 0.8948 GB, free: 15.05 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.5602, allocations: 67.98 kB / 0.8949 GB, free: 14.98 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001813/0.562, allocations: 0.9753 MB / 0.8958 GB, free: 14 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001495/0.5635, allocations: 0.9921 MB / 0.8968 GB, free: 12.82 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002501/0.566, allocations: 1.443 MB / 0.8982 GB, free: 11.21 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.615e-06/0.566, allocations: 4 kB / 0.8982 GB, free: 11.21 MB / 0.67 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003438/0.5695, allocations: 1.762 MB / 0.8999 GB, free: 9.434 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.497e-05/0.5695, allocations: 45.77 kB / 0.9 GB, free: 9.383 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.5695, allocations: 12 kB / 0.9 GB, free: 9.371 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.5696, allocations: 24.17 kB / 0.9 GB, free: 9.348 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.5707, allocations: 307.5 kB / 0.9003 GB, free: 9.047 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.228e-05/0.5708, allocations: 27.88 kB / 0.9003 GB, free: 9.02 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.5721, allocations: 163 kB / 0.9005 GB, free: 8.859 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/0.5722, allocations: 59.98 kB / 0.9005 GB, free: 8.801 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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 0.0002746/0.5725, allocations: 251.9 kB / 0.9008 GB, free: 8.547 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.5728, allocations: 201.4 kB / 0.901 GB, free: 8.348 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002841/0.5757, allocations: 1.127 MB / 0.9021 GB, free: 7.203 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002071/0.5778, allocations: 0.9504 MB / 0.903 GB, free: 6.199 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.5778, allocations: 0 / 0.903 GB, free: 6.199 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007391/0.5785, allocations: 386.2 kB / 0.9034 GB, free: 5.801 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002958/0.5788, allocations: 19.94 kB / 0.9034 GB, free: 5.781 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.5798, allocations: 71.86 kB / 0.9034 GB, free: 5.711 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.5799, allocations: 52.48 kB / 0.9035 GB, free: 5.656 MB / 0.67 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002905/0.5828, allocations: 1.04 MB / 0.9045 GB, free: 4.613 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003363/0.5862, allocations: 1.617 MB / 0.9061 GB, free: 2.977 MB / 0.67 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009524/0.5872, allocations: 412.3 kB / 0.9065 GB, free: 2.566 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002071/0.5893, allocations: 1.424 MB / 0.9079 GB, free: 1.129 MB / 0.67 GB Notification: Performance of Backend: time 2.6e-07/0.5893, allocations: 0 / 0.9079 GB, free: 1.129 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.006326/0.5956, allocations: 2.778 MB / 0.9106 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of SimCode: time 0.007831/0.6035, allocations: 4.59 MB / 0.9151 GB, free: 9.879 MB / 0.6856 GB Notification: Performance of Templates: time 0.3653/0.9687, allocations: 43.64 MB / 0.9577 GB, free: 179.8 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)