Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.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.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|theMixVal.TMixSet|theMixVal.senTMix.T|domHotWatTan.senTemHot.T|domHotWatTan.TTanTop.T|domHotWatTan.TTanBot.T|domHotWatTan.conCha.TTanTopSet|hea.Q_flow|domHotWatTan.PEle|domHotWatTan.divVal.y_actual|sch.y.1.",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger") translateModel(Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|theMixVal.TMixSet|theMixVal.senTMix.T|domHotWatTan.senTemHot.T|domHotWatTan.TTanTop.T|domHotWatTan.TTanBot.T|domHotWatTan.conCha.TTanTopSet|hea.Q_flow|domHotWatTan.PEle|domHotWatTan.divVal.y_actual|sch.y.1.",fileNamePrefix="Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 119 kB / 16.42 MB, free: 6.473 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.001104/0.001104, allocations: 183.9 kB / 17.35 MB, free: 5.75 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.367/1.367, allocations: 222.9 MB / 241.1 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.795/2.795, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 64.11 kB / 1.055 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8286/0.8301, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger): time 0.2172/1.047, allocations: 239.6 MB / 1.442 GB, free: 13.3 MB / 1.17 GB Notification: Performance of NFInst.instExpressions: time 0.08023/1.128, allocations: 54.07 MB / 1.495 GB, free: 7.09 MB / 1.217 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.01271/1.14, allocations: 282.4 kB / 1.495 GB, free: 6.812 MB / 1.217 GB Notification: Performance of NFTyping.typeComponents: time 0.01304/1.153, allocations: 4.166 MB / 1.5 GB, free: 2.629 MB / 1.217 GB Notification: Performance of NFTyping.typeBindings: time 0.02443/1.178, allocations: 8.131 MB / 1.507 GB, free: 10.46 MB / 1.232 GB Notification: Performance of NFTyping.typeClassSections: time 0.01728/1.195, allocations: 6.702 MB / 1.514 GB, free: 3.801 MB / 1.232 GB Notification: Performance of NFFlatten.flatten: time 0.04309/1.238, allocations: 30.1 MB / 1.543 GB, free: 5.641 MB / 1.264 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01874/1.257, allocations: 9.613 MB / 1.553 GB, free: 11.9 MB / 1.279 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02083/1.278, allocations: 8.923 MB / 1.561 GB, free: 2.977 MB / 1.279 GB Notification: Performance of NFSimplifyModel.simplify: time 0.8688/2.147, allocations: 6.406 MB / 1.568 GB, free: 67.43 MB / 1.279 GB Notification: Performance of NFPackage.collectConstants: time 0.005368/2.152, allocations: 1.056 MB / 1.569 GB, free: 67.43 MB / 1.279 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01505/2.167, allocations: 4.47 MB / 1.573 GB, free: 67.43 MB / 1.279 GB Notification: Performance of NFScalarize.scalarize: time 0.005773/2.173, allocations: 2.696 MB / 1.576 GB, free: 67.43 MB / 1.279 GB Notification: Performance of NFVerifyModel.verify: time 0.0152/2.188, allocations: 5.352 MB / 1.581 GB, free: 67.43 MB / 1.279 GB Notification: Performance of NFConvertDAE.convert: time 0.02895/2.217, allocations: 16.68 MB / 1.597 GB, free: 65.91 MB / 1.279 GB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/2.217, allocations: 0 / 1.597 GB, free: 65.91 MB / 1.279 GB Notification: Performance of FrontEnd: time 2.104e-06/2.217, allocations: 0 / 1.597 GB, free: 65.91 MB / 1.279 GB Notification: Performance of Transformations before backend: time 0.0005168/2.218, allocations: 3.188 kB / 1.597 GB, free: 65.91 MB / 1.279 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1353 * Number of variables: 1353 Notification: Performance of Generate backend data structure: time 0.02761/2.246, allocations: 10.05 MB / 1.607 GB, free: 61.8 MB / 1.279 GB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/2.246, allocations: 8.781 kB / 1.607 GB, free: 61.8 MB / 1.279 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/2.257, allocations: 1.94 MB / 1.609 GB, free: 61.3 MB / 1.279 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02455/2.282, allocations: 9.72 MB / 1.619 GB, free: 59.92 MB / 1.279 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005787/2.283, allocations: 425.3 kB / 1.619 GB, free: 59.91 MB / 1.279 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002932/2.285, allocations: 0.5378 MB / 1.619 GB, free: 59.91 MB / 1.279 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02114/2.307, allocations: 7.376 MB / 1.627 GB, free: 59.13 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001603/2.307, allocations: 15.36 kB / 1.627 GB, free: 59.13 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008279/2.308, allocations: 223.8 kB / 1.627 GB, free: 59.13 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/2.308, allocations: 192.7 kB / 1.627 GB, free: 59.12 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01559/2.323, allocations: 6.225 MB / 1.633 GB, free: 59.03 MB / 1.279 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.05593/2.379, allocations: 36.48 MB / 1.669 GB, free: 40.84 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01026/2.39, allocations: 3.991 MB / 1.673 GB, free: 40.55 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005103/2.395, allocations: 2.487 MB / 1.675 GB, free: 40.5 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01882/2.414, allocations: 11.29 MB / 1.686 GB, free: 36.45 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004716/2.418, allocations: 2.341 MB / 1.688 GB, free: 35.79 MB / 1.279 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003228/2.422, allocations: 410.1 kB / 1.689 GB, free: 35.58 MB / 1.279 GB Notification: Performance of pre-optimization done (n=265): time 1.662e-05/2.422, allocations: 7.781 kB / 1.689 GB, free: 35.58 MB / 1.279 GB Notification: Performance of matching and sorting (n=265): time 0.0219/2.444, allocations: 6.994 MB / 1.696 GB, free: 33.56 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.163e-05/2.444, allocations: 189.5 kB / 1.696 GB, free: 33.36 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0133/2.457, allocations: 7.428 MB / 1.703 GB, free: 31.62 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 0.001195/2.458, allocations: 99.61 kB / 1.703 GB, free: 31.59 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.004075/2.462, allocations: 3.745 MB / 1.707 GB, free: 28.38 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.001559/2.464, allocations: 0.9185 MB / 1.708 GB, free: 27.59 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001811/2.466, allocations: 1.03 MB / 1.709 GB, free: 27 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 3.728e-05/2.466, allocations: 301.1 kB / 1.709 GB, free: 26.7 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004361/2.47, allocations: 2.523 MB / 1.711 GB, free: 25.39 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005404/2.476, allocations: 4.021 MB / 1.715 GB, free: 22.16 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/2.486, allocations: 6.259 MB / 1.722 GB, free: 18.07 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.881e-05/2.486, allocations: 11.34 kB / 1.722 GB, free: 18.07 MB / 1.279 GB Notification: Performance of matching and sorting (n=618) (initialization): time 0.01617/2.502, allocations: 7.49 MB / 1.729 GB, free: 12.45 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/2.502, allocations: 21 kB / 1.729 GB, free: 12.43 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.032e-05/2.502, allocations: 40 kB / 1.729 GB, free: 12.39 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001897/2.504, allocations: 0.552 MB / 1.729 GB, free: 11.83 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004669/2.509, allocations: 1.047 MB / 1.73 GB, free: 10.85 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00361/2.512, allocations: 4.802 MB / 1.735 GB, free: 5.879 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00666/2.519, allocations: 383.5 kB / 1.736 GB, free: 5.504 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009422/2.52, allocations: 235.9 kB / 1.736 GB, free: 5.273 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008077/2.528, allocations: 4.256 MB / 1.74 GB, free: 1.008 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006131/2.534, allocations: 3.869 MB / 1.744 GB, free: 12.51 MB / 1.295 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01096/2.545, allocations: 5.965 MB / 1.749 GB, free: 6.137 MB / 1.295 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.542e-05/2.545, allocations: 12 kB / 1.749 GB, free: 6.125 MB / 1.295 GB Notification: Performance of matching and sorting (n=618) (initialization_lambda0): time 0.01848/2.564, allocations: 7.138 MB / 1.756 GB, free: 15.19 MB / 1.311 GB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/2.564, allocations: 28.06 kB / 1.756 GB, free: 15.16 MB / 1.311 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.199e-05/2.564, allocations: 36 kB / 1.757 GB, free: 15.12 MB / 1.311 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001868/2.566, allocations: 0.52 MB / 1.757 GB, free: 14.6 MB / 1.311 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004843/2.571, allocations: 1.039 MB / 1.758 GB, free: 13.62 MB / 1.311 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/2.576, allocations: 5.393 MB / 1.763 GB, free: 7.969 MB / 1.311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008226/2.585, allocations: 404.2 kB / 1.764 GB, free: 7.574 MB / 1.311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001166/2.586, allocations: 227.9 kB / 1.764 GB, free: 7.352 MB / 1.311 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$PRE.sch.nextTimeEvent,$whenCondition3,theMixVal.conPID.con1.y,domHotWatTan.conVal.cha.y,$PRE.domHotWatTan.conVal.cha.y,domHotWatTan.conCha.cha1.y,$PRE.domHotWatTan.conCha.cha1.y,domHotWatTan.conCha.cha.y,$PRE.domHotWatTan.conCha.cha.y,domHotWatTan.conCha.lat.y,domHotWatTan.conPum.hysMasFlo.y,$PRE.domHotWatTan.conPum.hysMasFlo.y,sch.nextTimeEventScaled,$PRE.sch.nextTimeEventScaled,sch.nextTimeEvent,$whenCondition1,$whenCondition2,$whenCondition5,domHotWatTan.conVal.ram.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (520): * Single equations (assignments): 512 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,13), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.002242/2.588, allocations: 459.8 kB / 1.764 GB, free: 6.961 MB / 1.311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003017/2.591, allocations: 0.706 MB / 1.765 GB, free: 6.246 MB / 1.311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01571/2.607, allocations: 5.402 MB / 1.77 GB, free: 0.8789 MB / 1.311 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01077/2.618, allocations: 4.178 MB / 1.774 GB, free: 12.63 MB / 1.326 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.752e-05/2.618, allocations: 4 kB / 1.774 GB, free: 12.63 MB / 1.326 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004893/2.623, allocations: 1.355 MB / 1.776 GB, free: 11.25 MB / 1.326 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003391/2.626, allocations: 60 kB / 1.776 GB, free: 11.19 MB / 1.326 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005999/2.632, allocations: 303.9 kB / 1.776 GB, free: 10.89 MB / 1.326 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007109/2.633, allocations: 218.1 kB / 1.776 GB, free: 10.68 MB / 1.326 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01486/2.648, allocations: 5.076 MB / 1.781 GB, free: 5.609 MB / 1.326 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01718/2.665, allocations: 7.361 MB / 1.788 GB, free: 14.19 MB / 1.342 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004681/2.67, allocations: 2.042 MB / 1.79 GB, free: 12.13 MB / 1.342 GB Notification: Performance of sorting global known variables: time 0.01288/2.683, allocations: 5.017 MB / 1.795 GB, free: 7.133 MB / 1.342 GB Notification: Performance of Backend: time 9.92e-07/2.683, allocations: 0 / 1.795 GB, free: 7.133 MB / 1.342 GB Notification: Performance of simCode: created initialization part: time 0.0308/2.713, allocations: 9.353 MB / 1.804 GB, free: 14.42 MB / 1.357 GB Notification: Performance of SimCode: time 0.04678/2.76, allocations: 16.89 MB / 1.821 GB, free: 13.67 MB / 1.373 GB Notification: Performance of Templates: time 0.2769/3.037, allocations: 166.6 MB / 1.984 GB, free: 9.199 MB / 1.529 GB make -j1 -f Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.makefile (rm -f Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.pipe ; mkfifo Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.pipe >> ../files/Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.sim & ./Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Loads.HotWater.Examples.StorageTankWithExternalHeatExchanger.pipe 2>&1)