Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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_latest_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_latest_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.001573/0.001573, allocations: 112.2 kB / 16.42 MB, free: 6.504 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.001172/0.001173, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.502/2.502, allocations: 461.9 MB / 0.7355 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001694/0.001694, allocations: 71.84 kB / 1.055 GB, free: 7.703 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7329/0.7347, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05203/0.7867, allocations: 53.75 MB / 1.261 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02364/0.8104, allocations: 17.01 MB / 1.278 GB, free: 6.672 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004047/0.8145, allocations: 87.5 kB / 1.278 GB, free: 6.586 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.005439/0.82, allocations: 1.909 MB / 1.28 GB, free: 4.668 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006203/0.8262, allocations: 2.511 MB / 1.282 GB, free: 2.152 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005358/0.8315, allocations: 2.353 MB / 1.284 GB, free: 15.81 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01007/0.8416, allocations: 7.537 MB / 1.292 GB, free: 8.266 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002826/0.8445, allocations: 1.666 MB / 1.293 GB, free: 6.562 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00436/0.8488, allocations: 1.963 MB / 1.295 GB, free: 4.598 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002512/0.8514, allocations: 1.428 MB / 1.297 GB, free: 3.164 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.0005845/0.852, allocations: 176 kB / 1.297 GB, free: 2.992 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004225/0.8562, allocations: 2.024 MB / 1.299 GB, free: 0.9648 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0008751/0.8571, allocations: 0.6579 MB / 1.299 GB, free: 312 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.002078/0.8592, allocations: 1.228 MB / 1.301 GB, free: 15.07 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.006354/0.8656, allocations: 3.922 MB / 1.304 GB, free: 11.14 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.8656, allocations: 0 / 1.304 GB, free: 11.14 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.443e-06/0.8656, allocations: 0 / 1.304 GB, free: 11.14 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.909e-05/0.8657, allocations: 0 / 1.304 GB, free: 11.14 MB / 1.029 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.005587/0.8713, allocations: 2.94 MB / 1.307 GB, free: 8.117 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.8713, allocations: 11.97 kB / 1.307 GB, free: 8.105 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002828/0.8742, allocations: 0.5627 MB / 1.308 GB, free: 7.539 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005271/0.8795, allocations: 2.734 MB / 1.31 GB, free: 4.734 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.564e-05/0.8796, allocations: 86.23 kB / 1.311 GB, free: 4.648 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002444/0.8798, allocations: 128 kB / 1.311 GB, free: 4.523 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/0.8826, allocations: 1.359 MB / 1.312 GB, free: 3.066 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.8826, allocations: 4 kB / 1.312 GB, free: 3.062 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001483/0.8828, allocations: 48 kB / 1.312 GB, free: 3.016 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.738e-05/0.8829, allocations: 38.08 kB / 1.312 GB, free: 2.977 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002779/0.8856, allocations: 1.109 MB / 1.313 GB, free: 1.859 MB / 1.029 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.01118/0.8968, allocations: 7.456 MB / 1.32 GB, free: 9.84 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002641/0.8995, allocations: 1.344 MB / 1.322 GB, free: 8.379 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009925/0.9005, allocations: 414.9 kB / 1.322 GB, free: 7.969 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006008/0.9065, allocations: 3.161 MB / 1.325 GB, free: 4.465 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.9076, allocations: 430.9 kB / 1.326 GB, free: 4.035 MB / 1.045 GB Notification: Performance of pre-optimization done (n=59): time 4.458e-06/0.9077, allocations: 0 / 1.326 GB, free: 4.035 MB / 1.045 GB Notification: Performance of matching and sorting (n=59): time 0.003355/0.911, allocations: 1.24 MB / 1.327 GB, free: 2.766 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.523e-05/0.9111, allocations: 63.97 kB / 1.327 GB, free: 2.691 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003495/0.9146, allocations: 2.129 MB / 1.329 GB, free: 0.5352 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 9.639e-05/0.9147, allocations: 41.7 kB / 1.329 GB, free: 500 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.9157, allocations: 1.022 MB / 1.33 GB, free: 15.46 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002322/0.916, allocations: 213 kB / 1.33 GB, free: 15.25 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004664/0.9164, allocations: 318.5 kB / 1.331 GB, free: 14.93 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.9166, allocations: 301.1 kB / 1.331 GB, free: 14.63 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.9178, allocations: 0.5493 MB / 1.331 GB, free: 14.08 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.9193, allocations: 0.9886 MB / 1.332 GB, free: 12.9 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002505/0.9218, allocations: 1.451 MB / 1.334 GB, free: 11.28 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.166e-05/0.9218, allocations: 4 kB / 1.334 GB, free: 11.28 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003601/0.9254, allocations: 1.767 MB / 1.335 GB, free: 9.496 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.362e-05/0.9255, allocations: 37.7 kB / 1.336 GB, free: 9.453 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.011e-05/0.9255, allocations: 12 kB / 1.336 GB, free: 9.441 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.222e-05/0.9256, allocations: 16 kB / 1.336 GB, free: 9.426 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.9268, allocations: 312 kB / 1.336 GB, free: 9.121 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.297e-05/0.9268, allocations: 31.86 kB / 1.336 GB, free: 9.09 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001472/0.9283, allocations: 178.6 kB / 1.336 GB, free: 8.914 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.9284, allocations: 59.98 kB / 1.336 GB, free: 8.855 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001882/0.9303, allocations: 0.9678 MB / 1.337 GB, free: 7.879 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001534/0.9318, allocations: 0.9964 MB / 1.338 GB, free: 6.703 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002616/0.9345, allocations: 1.454 MB / 1.339 GB, free: 5.082 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.051e-05/0.9345, allocations: 7.984 kB / 1.339 GB, free: 5.074 MB / 1.061 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003637/0.9381, allocations: 1.766 MB / 1.341 GB, free: 3.293 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.9382, allocations: 41.64 kB / 1.341 GB, free: 3.246 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.9382, allocations: 12 kB / 1.341 GB, free: 3.234 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.9382, allocations: 16.19 kB / 1.341 GB, free: 3.219 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001207/0.9395, allocations: 315.7 kB / 1.342 GB, free: 2.91 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-05/0.9395, allocations: 35.8 kB / 1.342 GB, free: 2.875 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.9411, allocations: 163.5 kB / 1.342 GB, free: 2.715 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/0.9412, allocations: 59.98 kB / 1.342 GB, free: 2.656 MB / 1.061 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.0003234/0.9415, allocations: 255.8 kB / 1.342 GB, free: 2.398 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005142/0.942, allocations: 205.4 kB / 1.342 GB, free: 2.195 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00281/0.9448, allocations: 1.119 MB / 1.343 GB, free: 1.062 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002011/0.9469, allocations: 0.9582 MB / 1.344 GB, free: 60 kB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-06/0.9469, allocations: 0 / 1.344 GB, free: 60 kB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007694/0.9477, allocations: 386.1 kB / 1.345 GB, free: 15.66 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000363/0.948, allocations: 19.94 kB / 1.345 GB, free: 15.64 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.9491, allocations: 63.94 kB / 1.345 GB, free: 15.58 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.9492, allocations: 48.48 kB / 1.345 GB, free: 15.53 MB / 1.076 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0028/0.952, allocations: 1.036 MB / 1.346 GB, free: 14.48 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003425/0.9554, allocations: 1.621 MB / 1.347 GB, free: 12.85 MB / 1.076 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009146/0.9564, allocations: 420.2 kB / 1.348 GB, free: 12.43 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.002361/0.9587, allocations: 1.416 MB / 1.349 GB, free: 11 MB / 1.076 GB Notification: Performance of Backend: time 5.21e-07/0.9588, allocations: 0 / 1.349 GB, free: 11 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.007566/0.9663, allocations: 2.788 MB / 1.352 GB, free: 8.367 MB / 1.076 GB Notification: Performance of SimCode: time 0.008874/0.9752, allocations: 4.584 MB / 1.356 GB, free: 3.746 MB / 1.076 GB Notification: Performance of Templates: time 0.07342/1.049, allocations: 44.43 MB / 1.4 GB, free: 7.75 MB / 1.123 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)