Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pla.sta_a.T|pla.sta_b.T|pla.QCoo_flow|pla.QHea_flow|hea1.Q_flow|hea2.Q_flow|coo1.Q_flow|coo2.Q_flow|pla.m_flow|coo2.m_flow|coo1.m_flow|hea1.m_flow|hea2.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem") translateModel(Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pla.sta_a.T|pla.sta_b.T|pla.QCoo_flow|pla.QHea_flow|hea1.Q_flow|hea2.Q_flow|coo1.Q_flow|coo2.Q_flow|pla.m_flow|coo2.m_flow|coo1.m_flow|hea1.m_flow|hea2.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.353/1.353, allocations: 252 MB / 266.9 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001105/0.001105, allocations: 175.9 kB / 326.5 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.836/1.836, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001241/0.001241, allocations: 91.91 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004077/0.000408, allocations: 9.469 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2672/0.2676, allocations: 106.3 MB / 0.9001 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.106/1.374, allocations: 479 MB / 1.368 GB, free: 6.805 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003281/1.374, allocations: 95.19 kB / 1.368 GB, free: 6.754 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 21.08/22.46, allocations: 5.254 GB / 6.622 GB, free: 44.45 MB / 1.135 GB Notification: Performance of FrontEnd: time 1.392e-06/22.46, allocations: 0 / 6.622 GB, free: 44.45 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.002755/22.46, allocations: 315 kB / 6.622 GB, free: 44.37 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1809 * Number of variables: 1809 Notification: Performance of Generate backend data structure: time 0.05466/22.51, allocations: 13.7 MB / 6.636 GB, free: 37.97 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/22.51, allocations: 6.25 kB / 6.636 GB, free: 37.97 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01467/22.53, allocations: 2.48 MB / 6.638 GB, free: 37.2 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05456/22.58, allocations: 19.17 MB / 6.657 GB, free: 34.45 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00084/22.58, allocations: 0.5659 MB / 6.657 GB, free: 34.43 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0033/22.59, allocations: 0.7394 MB / 6.658 GB, free: 34.42 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02603/22.61, allocations: 8.515 MB / 6.666 GB, free: 33.12 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003435/22.61, allocations: 18.47 kB / 6.666 GB, free: 33.11 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002487/22.62, allocations: 306.3 kB / 6.667 GB, free: 33.11 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002031/22.62, allocations: 201.7 kB / 6.667 GB, free: 33.11 MB / 1.135 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0195/22.64, allocations: 6.378 MB / 6.673 GB, free: 30.8 MB / 1.135 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.0788/22.71, allocations: 46.21 MB / 6.718 GB, free: 3.668 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/22.73, allocations: 4.025 MB / 6.722 GB, free: 15.66 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02758/22.75, allocations: 9.446 MB / 6.731 GB, free: 5.559 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004882/22.76, allocations: 2.14 MB / 6.733 GB, free: 3.387 MB / 1.167 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00718/22.77, allocations: 0.621 MB / 6.734 GB, free: 2.762 MB / 1.167 GB Notification: Performance of pre-optimization done (n=341): time 1.764e-05/22.77, allocations: 0 / 6.734 GB, free: 2.762 MB / 1.167 GB Notification: Performance of matching and sorting (n=341): time 1.127/23.89, allocations: 7.124 MB / 6.741 GB, free: 82.67 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.856e-05/23.89, allocations: 91.67 kB / 6.741 GB, free: 82.61 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03107/23.92, allocations: 8.329 MB / 6.749 GB, free: 82.09 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.001582/23.93, allocations: 115.4 kB / 6.749 GB, free: 82.06 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.008285/23.93, allocations: 5.551 MB / 6.755 GB, free: 81.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.002173/23.94, allocations: 1.18 MB / 6.756 GB, free: 81.02 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000318/23.94, allocations: 97.03 kB / 6.756 GB, free: 81.02 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0002951/23.94, allocations: 492.8 kB / 6.756 GB, free: 80.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00391/23.94, allocations: 1.701 MB / 6.758 GB, free: 80.69 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005071/23.95, allocations: 3.848 MB / 6.762 GB, free: 78.07 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004824/23.95, allocations: 2.294 MB / 6.764 GB, free: 78.01 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-05/23.95, allocations: 15.34 kB / 6.764 GB, free: 78.01 MB / 1.167 GB Notification: Performance of matching and sorting (n=614) (initialization): time 0.01899/23.97, allocations: 6.442 MB / 6.77 GB, free: 77.29 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.008419/23.98, allocations: 31.38 MB / 6.801 GB, free: 44.14 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002314/23.98, allocations: 62.05 kB / 6.801 GB, free: 44.14 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00202/23.98, allocations: 0.5204 MB / 6.802 GB, free: 44.06 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00552/23.99, allocations: 1.124 MB / 6.803 GB, free: 44.06 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005386/23.99, allocations: 8.357 MB / 6.811 GB, free: 37.25 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01574/24.01, allocations: 0.7195 MB / 6.812 GB, free: 37.21 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00217/24.01, allocations: 270.2 kB / 6.812 GB, free: 37.21 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/24.01, allocations: 5.969 kB / 6.812 GB, free: 37.21 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0165/24.03, allocations: 5.387 MB / 6.817 GB, free: 37.04 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003154/24.03, allocations: 51.44 kB / 6.817 GB, free: 37.04 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002039/24.03, allocations: 0.53 MB / 6.818 GB, free: 36.96 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004879/24.03, allocations: 1.085 MB / 6.819 GB, free: 36.95 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005289/24.04, allocations: 8.361 MB / 6.827 GB, free: 30.15 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0116/24.05, allocations: 0.6918 MB / 6.828 GB, free: 30.12 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001541/24.05, allocations: 256.2 kB / 6.828 GB, free: 30.12 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 238 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$PRE.QCoo2.nextTimeEvent,$whenCondition3,$PRE.QCoo1.nextTimeEvent,$whenCondition2,$PRE.QHea2.nextTimeEvent,$whenCondition1,$PRE.QHea1.nextTimeEvent,QHea1.nextTimeEvent,$PRE.QHea1.nextTimeEventScaled,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,$PRE.QHea2.nextTimeEventScaled,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,$PRE.QCoo1.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,$PRE.QCoo2.nextTimeEventScaled,QCoo2.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (582): * Single equations (assignments): 568 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 8 {1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.01021/24.06, allocations: 2.571 MB / 6.83 GB, free: 29.93 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004663/24.07, allocations: 0.9786 MB / 6.831 GB, free: 29.41 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02053/24.09, allocations: 5.43 MB / 6.837 GB, free: 29.06 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.514e-05/24.09, allocations: 41.55 kB / 6.837 GB, free: 29.06 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.974e-05/24.09, allocations: 6.406 kB / 6.837 GB, free: 29.06 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01023/24.1, allocations: 3.864 MB / 6.84 GB, free: 28.82 MB / 1.167 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 postOpt removeSimpleEquations (simulation): time 0.04877/24.15, allocations: 12.64 MB / 6.853 GB, free: 28.06 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.112e-05/24.15, allocations: 3.031 kB / 6.853 GB, free: 28.06 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003868/24.15, allocations: 0.7101 MB / 6.853 GB, free: 28.06 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001653/24.15, allocations: 463.5 kB / 6.854 GB, free: 27.98 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008454/24.15, allocations: 108.3 kB / 6.854 GB, free: 27.98 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007196/24.16, allocations: 8.265 MB / 6.862 GB, free: 37.17 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/24.16, allocations: 3.469 kB / 6.862 GB, free: 37.17 MB / 1.182 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01977/24.18, allocations: 7.466 MB / 6.869 GB, free: 36.07 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008619/24.19, allocations: 1.711 MB / 6.871 GB, free: 35.45 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004197/24.19, allocations: 74.05 kB / 6.871 GB, free: 35.45 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01066/24.2, allocations: 0.6456 MB / 6.872 GB, free: 35.43 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009503/24.21, allocations: 224.9 kB / 6.872 GB, free: 35.43 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001127/24.21, allocations: 188.7 kB / 6.872 GB, free: 35.43 MB / 1.182 GB Notification: Performance of sorting global known variables: time 0.01976/24.23, allocations: 6.4 MB / 6.878 GB, free: 35.14 MB / 1.182 GB Notification: Performance of sort global known variables: time 3.8e-07/24.23, allocations: 0 / 6.878 GB, free: 35.14 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.03416/24.26, allocations: 5.752 MB / 6.884 GB, free: 34.82 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (pla.coo.outCon.T,pla.hea.outCon.T,pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,spl4.vol.dynBal.U,spl5.vol.dynBal.U) * Number of discrete variables: 12 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,QHea1.nextTimeEvent,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,QCoo2.nextTimeEventScaled) * Number of discrete states: 8 (QCoo2.nextTimeEvent,QCoo1.nextTimeEvent,QHea2.nextTimeEvent,QHea1.nextTimeEvent,QCoo2.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QHea2.nextTimeEventScaled,QHea1.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (344): * Single equations (assignments): 313 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 8 {1 2,1 2,1 2,1 2,1 2,1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01517/24.28, allocations: 6.832 MB / 6.891 GB, free: 31.93 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.02211/24.3, allocations: 7.823 MB / 6.898 GB, free: 31.37 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 1.47e-05/24.3, allocations: 2.25 kB / 6.898 GB, free: 31.37 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.006159/24.3, allocations: 2.357 MB / 6.901 GB, free: 31.11 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02765/24.33, allocations: 4.868 MB / 6.905 GB, free: 31.04 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05653/24.39, allocations: 21.85 MB / 6.927 GB, free: 21.3 MB / 1.182 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01419/24.4, allocations: 5.642 MB / 6.932 GB, free: 20.25 MB / 1.182 GB Notification: Performance of simCode: alias equations: time 0.02037/24.42, allocations: 2.576 MB / 6.935 GB, free: 19.9 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004304/24.43, allocations: 0.7504 MB / 6.935 GB, free: 19.9 MB / 1.182 GB Notification: Performance of SimCode: time 2.244e-06/24.43, allocations: 4 kB / 6.935 GB, free: 19.89 MB / 1.182 GB Notification: Performance of Templates: time 0.3825/24.81, allocations: 209.3 MB / 7.14 GB, free: 11.5 MB / 1.214 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.makefile (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Experimental_DistrictHeatingCooling_Validation_IdealSmallSystem.csv","../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Validation.IdealSmallSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches