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.001104/0.001104, allocations: 113.9 kB / 16.42 MB, free: 6.449 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.001087/0.001087, 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002204/0.002204, allocations: 295.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9656/0.9656, allocations: 169.3 MB / 0.499 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001921/0.001921, allocations: 99.84 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3894/0.3914, allocations: 86.99 MB / 0.7671 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05256/0.444, allocations: 53.7 MB / 0.8195 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02544/0.4694, allocations: 17.01 MB / 0.8361 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002673/0.4721, allocations: 91.5 kB / 0.8362 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.007404/0.4796, allocations: 1.915 MB / 0.8381 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006914/0.4865, allocations: 2.503 MB / 0.8405 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.006372/0.4929, allocations: 2.35 MB / 0.8428 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.01091/0.5038, allocations: 7.536 MB / 0.8502 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002847/0.5067, allocations: 1.674 MB / 0.8518 GB, free: 13 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004329/0.511, allocations: 1.956 MB / 0.8537 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002358/0.5134, allocations: 1.431 MB / 0.8551 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005113/0.514, allocations: 180 kB / 0.8553 GB, free: 9.426 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004021/0.518, allocations: 2.02 MB / 0.8573 GB, free: 7.402 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0007474/0.5187, allocations: 0.6618 MB / 0.8579 GB, free: 6.738 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.5201, allocations: 1.224 MB / 0.8591 GB, free: 5.508 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005118/0.5253, allocations: 3.933 MB / 0.863 GB, free: 1.562 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.5253, allocations: 4 kB / 0.863 GB, free: 1.559 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.502e-06/0.5253, allocations: 0 / 0.863 GB, free: 1.559 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.602e-05/0.5253, allocations: 0 / 0.863 GB, free: 1.559 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.004646/0.53, allocations: 2.944 MB / 0.8658 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.53, allocations: 11.97 kB / 0.8658 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0027/0.5327, allocations: 0.5433 MB / 0.8664 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004546/0.5373, allocations: 2.735 MB / 0.869 GB, free: 11.17 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.409e-05/0.5374, allocations: 102.2 kB / 0.8691 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001817/0.5376, allocations: 116 kB / 0.8693 GB, free: 10.95 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00273/0.5403, allocations: 1.359 MB / 0.8706 GB, free: 9.496 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.5404, allocations: 11.92 kB / 0.8706 GB, free: 9.484 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001103/0.5405, allocations: 44 kB / 0.8706 GB, free: 9.441 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.938e-05/0.5405, allocations: 46.08 kB / 0.8707 GB, free: 9.395 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.5433, allocations: 1.101 MB / 0.8718 GB, free: 8.285 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.009637/0.553, allocations: 7.464 MB / 0.879 GB, free: 272 kB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.5555, allocations: 1.332 MB / 0.8803 GB, free: 14.81 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009998/0.5565, allocations: 430.8 kB / 0.8808 GB, free: 14.39 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005452/0.562, allocations: 3.156 MB / 0.8838 GB, free: 10.89 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001098/0.5631, allocations: 434.9 kB / 0.8843 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=59): time 2.876e-06/0.5631, allocations: 0 / 0.8843 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of matching and sorting (n=59): time 0.003316/0.5664, allocations: 1.244 MB / 0.8855 GB, free: 9.188 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.532e-05/0.5665, allocations: 63.95 kB / 0.8855 GB, free: 9.113 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00286/0.5693, allocations: 2.121 MB / 0.8876 GB, free: 6.965 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.5695, allocations: 41.7 kB / 0.8876 GB, free: 6.918 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008384/0.5703, allocations: 1.022 MB / 0.8886 GB, free: 5.887 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.5705, allocations: 221 kB / 0.8888 GB, free: 5.668 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/0.571, allocations: 306.5 kB / 0.8891 GB, free: 5.359 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.286e-05/0.5711, allocations: 309.1 kB / 0.8894 GB, free: 5.055 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.5722, allocations: 0.5454 MB / 0.89 GB, free: 4.504 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001484/0.5737, allocations: 0.9963 MB / 0.8909 GB, free: 3.324 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002411/0.5762, allocations: 1.452 MB / 0.8924 GB, free: 1.707 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/0.5762, allocations: 4 kB / 0.8924 GB, free: 1.703 MB / 0.6544 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003422/0.5796, allocations: 1.763 MB / 0.8941 GB, free: 15.93 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.151e-05/0.5797, allocations: 45.72 kB / 0.8941 GB, free: 15.88 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.5797, allocations: 12 kB / 0.8941 GB, free: 15.86 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.5797, allocations: 20 kB / 0.8942 GB, free: 15.84 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.5809, allocations: 307.5 kB / 0.8945 GB, free: 15.54 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.267e-05/0.5809, allocations: 27.92 kB / 0.8945 GB, free: 15.52 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.5823, allocations: 178.6 kB / 0.8946 GB, free: 15.34 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.5824, allocations: 63.98 kB / 0.8947 GB, free: 15.28 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001807/0.5843, allocations: 0.9716 MB / 0.8957 GB, free: 14.3 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001433/0.5857, allocations: 0.9883 MB / 0.8966 GB, free: 13.12 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002388/0.5881, allocations: 1.45 MB / 0.898 GB, free: 11.5 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.857e-06/0.5881, allocations: 11.94 kB / 0.8981 GB, free: 11.49 MB / 0.67 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003403/0.5915, allocations: 1.757 MB / 0.8998 GB, free: 9.723 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.5916, allocations: 46.31 kB / 0.8998 GB, free: 9.672 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.5916, allocations: 12 kB / 0.8998 GB, free: 9.66 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.5916, allocations: 24 kB / 0.8998 GB, free: 9.637 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001126/0.5928, allocations: 303.5 kB / 0.9001 GB, free: 9.34 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.308e-05/0.5928, allocations: 23.92 kB / 0.9002 GB, free: 9.316 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.5941, allocations: 159 kB / 0.9003 GB, free: 9.16 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-05/0.5943, allocations: 67.98 kB / 0.9004 GB, free: 9.094 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.0002839/0.5945, allocations: 259.9 kB / 0.9006 GB, free: 8.832 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002606/0.5948, allocations: 197.4 kB / 0.9008 GB, free: 8.637 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00269/0.5975, allocations: 1.119 MB / 0.9019 GB, free: 7.5 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001958/0.5995, allocations: 0.9581 MB / 0.9028 GB, free: 6.488 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.5995, allocations: 0 / 0.9028 GB, free: 6.488 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005518/0.6001, allocations: 386.2 kB / 0.9032 GB, free: 6.09 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.6003, allocations: 19.94 kB / 0.9032 GB, free: 6.07 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009237/0.6012, allocations: 71.92 kB / 0.9033 GB, free: 6 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001196/0.6014, allocations: 48.48 kB / 0.9033 GB, free: 5.949 MB / 0.67 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002773/0.6041, allocations: 1.044 MB / 0.9044 GB, free: 4.902 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003224/0.6074, allocations: 1.617 MB / 0.9059 GB, free: 3.266 MB / 0.67 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009164/0.6083, allocations: 416.3 kB / 0.9063 GB, free: 2.852 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001937/0.6103, allocations: 1.42 MB / 0.9077 GB, free: 1.418 MB / 0.67 GB Notification: Performance of Backend: time 2.6e-07/0.6103, allocations: 0 / 0.9077 GB, free: 1.418 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.00612/0.6164, allocations: 2.782 MB / 0.9104 GB, free: 14.79 MB / 0.6856 GB Notification: Performance of SimCode: time 0.007362/0.6238, allocations: 4.582 MB / 0.9149 GB, free: 10.18 MB / 0.6856 GB Notification: Performance of Templates: time 0.3638/0.9876, allocations: 43.65 MB / 0.9575 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)