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.38/1.38, allocations: 249.3 MB / 261.8 MB, free: 5.824 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001013/0.001013, allocations: 170.7 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.312/1.312, allocations: 205.2 MB / 0.572 GB, free: 10.62 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.0008816/0.0008817, allocations: 76.25 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.948e-05/3.95e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2393, allocations: 106.3 MB / 0.8918 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.516/1.756, allocations: 478.9 MB / 1.359 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003812/1.756, allocations: 87.95 kB / 1.36 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 20.95/22.71, allocations: 5.238 GB / 6.597 GB, free: 61.03 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.084e-06/22.71, allocations: 1.75 kB / 6.597 GB, free: 61.03 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.002487/22.71, allocations: 317.4 kB / 6.597 GB, free: 60.97 MB / 1.151 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.04284/22.75, allocations: 10.63 MB / 6.608 GB, free: 56.37 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/22.75, allocations: 12.53 kB / 6.608 GB, free: 56.37 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01653/22.77, allocations: 2.475 MB / 6.61 GB, free: 55.66 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05929/22.83, allocations: 19.05 MB / 6.629 GB, free: 53.62 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008738/22.83, allocations: 0.5595 MB / 6.629 GB, free: 53.61 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003446/22.83, allocations: 0.7449 MB / 6.63 GB, free: 53.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02703/22.86, allocations: 8.236 MB / 6.638 GB, free: 52.39 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003465/22.86, allocations: 28.14 kB / 6.638 GB, free: 52.39 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002222/22.86, allocations: 306.1 kB / 6.639 GB, free: 52.39 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002119/22.86, allocations: 202.4 kB / 6.639 GB, free: 52.39 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01671/22.88, allocations: 5.919 MB / 6.645 GB, free: 52.32 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.08049/22.96, allocations: 46.2 MB / 6.69 GB, free: 26.35 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007419/22.97, allocations: 3.657 MB / 6.693 GB, free: 26.28 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003844/22.97, allocations: 2.054 MB / 6.695 GB, free: 26.25 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02327/23, allocations: 9.602 MB / 6.705 GB, free: 22.43 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003326/23, allocations: 1.935 MB / 6.706 GB, free: 22.32 MB / 1.151 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006731/23.01, allocations: 0.6274 MB / 6.707 GB, free: 22.14 MB / 1.151 GB Notification: Performance of pre-optimization done (n=339): time 2.754e-05/23.01, allocations: 0 / 6.707 GB, free: 22.14 MB / 1.151 GB Notification: Performance of matching and sorting (n=339): time 0.01024/23.02, allocations: 4.172 MB / 6.711 GB, free: 21.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.069e-05/23.02, allocations: 88.3 kB / 6.711 GB, free: 21.34 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0185/23.03, allocations: 8.225 MB / 6.719 GB, free: 20.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.001351/23.04, allocations: 119.7 kB / 6.719 GB, free: 20.66 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.007831/23.04, allocations: 5.557 MB / 6.725 GB, free: 19.12 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.002524/23.05, allocations: 1.176 MB / 6.726 GB, free: 18.38 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004419/23.05, allocations: 90.36 kB / 6.726 GB, free: 18.38 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.000364/23.05, allocations: 495.2 kB / 6.727 GB, free: 18.07 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003424/23.05, allocations: 1.502 MB / 6.728 GB, free: 18.05 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004838/23.06, allocations: 3.634 MB / 6.732 GB, free: 15.43 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00391/23.06, allocations: 2.117 MB / 6.734 GB, free: 15.36 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.178e-05/23.06, allocations: 14.78 kB / 6.734 GB, free: 15.36 MB / 1.151 GB Notification: Performance of matching and sorting (n=612) (initialization): time 0.01268/23.07, allocations: 6.027 MB / 6.74 GB, free: 14.64 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.01078/23.08, allocations: 31.28 MB / 6.77 GB, free: 13.55 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001833/23.08, allocations: 57.66 kB / 6.77 GB, free: 13.55 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001739/23.09, allocations: 0.5187 MB / 6.771 GB, free: 13.47 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005041/23.09, allocations: 1.12 MB / 6.772 GB, free: 13.47 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006338/23.1, allocations: 8.303 MB / 6.78 GB, free: 22.66 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01135/23.11, allocations: 0.7125 MB / 6.781 GB, free: 22.61 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/23.11, allocations: 270 kB / 6.781 GB, free: 22.61 MB / 1.198 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/23.11, allocations: 4.812 kB / 6.781 GB, free: 22.61 MB / 1.198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009948/23.12, allocations: 5.021 MB / 6.786 GB, free: 22.43 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001177/23.12, allocations: 55.12 kB / 6.786 GB, free: 22.43 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/23.12, allocations: 0.5315 MB / 6.786 GB, free: 22.35 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004114/23.12, allocations: 1.076 MB / 6.787 GB, free: 22.35 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005991/23.13, allocations: 8.306 MB / 6.795 GB, free: 15.52 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009995/23.14, allocations: 0.6992 MB / 6.796 GB, free: 15.43 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00116/23.14, allocations: 254.8 kB / 6.796 GB, free: 15.43 MB / 1.198 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (580): * Single equations (assignments): 566 * 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.00165/23.14, allocations: 439.8 kB / 6.797 GB, free: 15.29 MB / 1.198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003082/23.15, allocations: 0.9768 MB / 6.798 GB, free: 14.77 MB / 1.198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/23.16, allocations: 5.055 MB / 6.803 GB, free: 14.36 MB / 1.198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.024e-05/23.16, allocations: 41.56 kB / 6.803 GB, free: 14.36 MB / 1.198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/23.16, allocations: 3.844 kB / 6.803 GB, free: 14.36 MB / 1.198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005597/23.16, allocations: 3.48 MB / 6.806 GB, free: 14.11 MB / 1.198 GB Warning: The model contains alias variables with conflicting start and/or 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.03053/23.19, allocations: 12.23 MB / 6.818 GB, free: 13.34 MB / 1.198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.341e-05/23.19, allocations: 7.016 kB / 6.818 GB, free: 13.34 MB / 1.198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/23.2, allocations: 0.7044 MB / 6.819 GB, free: 13.34 MB / 1.198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/23.2, allocations: 455.9 kB / 6.819 GB, free: 13.25 MB / 1.198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002639/23.2, allocations: 112.5 kB / 6.819 GB, free: 13.25 MB / 1.198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005493/23.2, allocations: 8.212 MB / 6.827 GB, free: 6.414 MB / 1.198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/23.2, allocations: 3.031 kB / 6.827 GB, free: 6.414 MB / 1.198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01238/23.22, allocations: 6.874 MB / 6.834 GB, free: 5.305 MB / 1.198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007746/23.22, allocations: 1.71 MB / 6.836 GB, free: 4.676 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004392/23.23, allocations: 79.88 kB / 6.836 GB, free: 4.676 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009256/23.24, allocations: 0.6396 MB / 6.836 GB, free: 4.59 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/23.24, allocations: 226.8 kB / 6.837 GB, free: 4.582 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005929/23.24, allocations: 183.7 kB / 6.837 GB, free: 4.582 MB / 1.198 GB Notification: Performance of sorting global known variables: time 0.01478/23.25, allocations: 6.306 MB / 6.843 GB, free: 4.25 MB / 1.198 GB Notification: Performance of sort global known variables: time 5.31e-07/23.25, allocations: 0 / 6.843 GB, free: 4.25 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.02807/23.28, allocations: 5.751 MB / 6.849 GB, free: 3.395 MB / 1.198 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (342): * Single equations (assignments): 311 * 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.01186/23.29, allocations: 6.777 MB / 6.855 GB, free: 15.76 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.01515/23.31, allocations: 7.609 MB / 6.863 GB, free: 14.79 MB / 1.214 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/23.31, allocations: 3.75 kB / 6.863 GB, free: 14.79 MB / 1.214 GB Notification: Performance of simCode: created simulation system equations: time 0.003488/23.31, allocations: 2.159 MB / 6.865 GB, free: 14.47 MB / 1.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02566/23.34, allocations: 4.846 MB / 6.869 GB, free: 14.16 MB / 1.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03659/23.38, allocations: 14.74 MB / 6.884 GB, free: 10.11 MB / 1.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009572/23.38, allocations: 5.659 MB / 6.889 GB, free: 9.043 MB / 1.214 GB Notification: Performance of simCode: alias equations: time 0.02458/23.41, allocations: 3.806 MB / 6.893 GB, free: 8.531 MB / 1.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002081/23.41, allocations: 0.5659 MB / 6.894 GB, free: 8.516 MB / 1.214 GB Notification: Performance of SimCode: time 1.332e-06/23.41, allocations: 0 / 6.894 GB, free: 8.516 MB / 1.214 GB Notification: Performance of Templates: time 1.495/24.91, allocations: 227.4 MB / 7.116 GB, free: 125.8 MB / 1.229 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