Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_10_Buildings.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.001192/0.001192, allocations: 115.2 kB / 16.42 MB, free: 6.457 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.0013/0.0013, allocations: 183.9 kB / 17.35 MB, free: 5.734 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.346/1.346, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.428/2.428, allocations: 437 MB / 0.7112 GB, free: 4.434 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 72.11 kB / 1.019 GB, free: 9.379 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7489/0.7503, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05336/0.8037, allocations: 53.77 MB / 1.22 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02404/0.8277, allocations: 17 MB / 1.236 GB, free: 12.84 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002551/0.8303, allocations: 87.5 kB / 1.237 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.005055/0.8354, allocations: 1.941 MB / 1.238 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00641/0.8418, allocations: 2.613 MB / 1.241 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005666/0.8475, allocations: 2.356 MB / 1.243 GB, free: 5.844 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01242/0.8599, allocations: 7.545 MB / 1.251 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003489/0.8634, allocations: 1.663 MB / 1.252 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004986/0.8684, allocations: 1.965 MB / 1.254 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.8711, allocations: 1.428 MB / 1.256 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0006545/0.8717, allocations: 180 kB / 1.256 GB, free: 9.02 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004297/0.876, allocations: 2.02 MB / 1.258 GB, free: 6.996 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0009636/0.877, allocations: 0.6657 MB / 1.258 GB, free: 6.328 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00195/0.879, allocations: 1.216 MB / 1.26 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.006653/0.8856, allocations: 3.943 MB / 1.263 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.8857, allocations: 0 / 1.263 GB, free: 1.148 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8857, allocations: 3.938 kB / 1.263 GB, free: 1.145 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.705e-05/0.8858, allocations: 0 / 1.263 GB, free: 1.145 MB / 0.9825 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.005786/0.8916, allocations: 3.054 MB / 1.266 GB, free: 14 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.8916, allocations: 8.031 kB / 1.266 GB, free: 14 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002656/0.8943, allocations: 0.5565 MB / 1.267 GB, free: 13.44 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00671/0.901, allocations: 2.756 MB / 1.27 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.9012, allocations: 97.98 kB / 1.27 GB, free: 10.52 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003387/0.9015, allocations: 120 kB / 1.27 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004093/0.9056, allocations: 1.359 MB / 1.271 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.81e-05/0.9057, allocations: 4 kB / 1.271 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001694/0.9059, allocations: 48 kB / 1.271 GB, free: 8.891 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-05/0.9059, allocations: 46.02 kB / 1.271 GB, free: 8.844 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00414/0.9101, allocations: 1.105 MB / 1.272 GB, free: 7.73 MB / 0.9981 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.01441/0.9245, allocations: 7.458 MB / 1.28 GB, free: 15.71 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.928, allocations: 1.34 MB / 1.281 GB, free: 14.26 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.9295, allocations: 423.4 kB / 1.281 GB, free: 13.84 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008544/0.9381, allocations: 3.156 MB / 1.284 GB, free: 10.35 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001477/0.9396, allocations: 434.9 kB / 1.285 GB, free: 9.914 MB / 1.014 GB Notification: Performance of pre-optimization done (n=59): time 8.005e-06/0.9396, allocations: 0 / 1.285 GB, free: 9.914 MB / 1.014 GB Notification: Performance of matching and sorting (n=59): time 0.004793/0.9444, allocations: 1.261 MB / 1.286 GB, free: 8.625 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.9445, allocations: 63.97 kB / 1.286 GB, free: 8.551 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005207/0.9497, allocations: 2.125 MB / 1.288 GB, free: 6.398 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0002156/0.95, allocations: 41.7 kB / 1.288 GB, free: 6.352 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.00143/0.9514, allocations: 1.036 MB / 1.289 GB, free: 5.309 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.9518, allocations: 226.2 kB / 1.289 GB, free: 5.086 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007595/0.9526, allocations: 314.7 kB / 1.29 GB, free: 4.77 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001766/0.9528, allocations: 301.1 kB / 1.29 GB, free: 4.473 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001814/0.9546, allocations: 0.5493 MB / 1.291 GB, free: 3.918 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/0.957, allocations: 0.9964 MB / 1.292 GB, free: 2.734 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00377/0.9608, allocations: 1.448 MB / 1.293 GB, free: 1.121 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-05/0.9609, allocations: 4 kB / 1.293 GB, free: 1.117 MB / 1.014 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.005718/0.9666, allocations: 1.784 MB / 1.295 GB, free: 15.32 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/0.9668, allocations: 40.2 kB / 1.295 GB, free: 15.28 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.22e-05/0.9668, allocations: 12 kB / 1.295 GB, free: 15.27 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.077e-05/0.9669, allocations: 20 kB / 1.295 GB, free: 15.25 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001729/0.9686, allocations: 315.5 kB / 1.295 GB, free: 14.94 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.395e-05/0.9687, allocations: 23.94 kB / 1.295 GB, free: 14.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002234/0.9709, allocations: 186.9 kB / 1.295 GB, free: 14.73 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/0.9712, allocations: 60.08 kB / 1.295 GB, free: 14.67 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002901/0.9741, allocations: 0.9716 MB / 1.296 GB, free: 13.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00245/0.9765, allocations: 0.9961 MB / 1.297 GB, free: 12.52 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003667/0.9802, allocations: 1.443 MB / 1.299 GB, free: 10.91 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.373e-05/0.9803, allocations: 8 kB / 1.299 GB, free: 10.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.00526/0.9855, allocations: 1.774 MB / 1.3 GB, free: 9.113 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.404e-05/0.9856, allocations: 37.64 kB / 1.3 GB, free: 9.07 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.202e-05/0.9857, allocations: 12.69 kB / 1.3 GB, free: 9.059 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.933e-05/0.9857, allocations: 24 kB / 1.301 GB, free: 9.035 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.9874, allocations: 307.5 kB / 1.301 GB, free: 8.734 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001068/0.9875, allocations: 23.92 kB / 1.301 GB, free: 8.711 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002137/0.9896, allocations: 159.6 kB / 1.301 GB, free: 8.555 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00022/0.9899, allocations: 59.98 kB / 1.301 GB, free: 8.496 MB / 1.029 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.0004172/0.9903, allocations: 263.8 kB / 1.301 GB, free: 8.23 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006769/0.991, allocations: 210.5 kB / 1.301 GB, free: 8.023 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004059/0.9951, allocations: 1.131 MB / 1.303 GB, free: 6.875 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002849/0.9979, allocations: 0.9543 MB / 1.304 GB, free: 5.863 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.9979, allocations: 3.938 kB / 1.304 GB, free: 5.859 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.9993, allocations: 395.4 kB / 1.304 GB, free: 5.453 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006054/0.9999, allocations: 15.94 kB / 1.304 GB, free: 5.438 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/1.001, allocations: 67.92 kB / 1.304 GB, free: 5.371 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/1.002, allocations: 48.5 kB / 1.304 GB, free: 5.324 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003955/1.006, allocations: 1.04 MB / 1.305 GB, free: 4.273 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005194/1.011, allocations: 1.638 MB / 1.307 GB, free: 2.625 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001556/1.012, allocations: 420.2 kB / 1.307 GB, free: 2.211 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.003728/1.016, allocations: 1.412 MB / 1.308 GB, free: 0.7852 MB / 1.029 GB Notification: Performance of Backend: time 8.01e-07/1.016, allocations: 0 / 1.308 GB, free: 0.7852 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.009072/1.025, allocations: 2.793 MB / 1.311 GB, free: 14.11 MB / 1.045 GB Notification: Performance of SimCode: time 0.009317/1.035, allocations: 4.656 MB / 1.316 GB, free: 9.418 MB / 1.045 GB Notification: Performance of Templates: time 0.07219/1.107, allocations: 43.61 MB / 1.358 GB, free: 14.19 MB / 1.092 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)