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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.192/1.192, allocations: 249.4 MB / 256.7 MB, free: 6.945 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.0009883/0.0009883, allocations: 188.7 kB / 316 MB, free: 3.551 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.022/1.022, allocations: 205.1 MB / 0.5667 GB, free: 15.6 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.0008412/0.0008412, allocations: 90.12 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.839e-06/4.879e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1343, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8694/1.004, allocations: 479.2 MB / 1.353 GB, free: 267.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001668/1.004, allocations: 87.95 kB / 1.353 GB, free: 267.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 14.13/15.13, allocations: 5.245 GB / 6.598 GB, free: 57.1 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.001528/15.13, allocations: 320 kB / 6.598 GB, free: 57.04 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.02227/15.15, allocations: 10.65 MB / 6.608 GB, free: 52.27 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/15.16, allocations: 11.06 kB / 6.608 GB, free: 52.27 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01261/15.17, allocations: 2.626 MB / 6.611 GB, free: 51.55 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04477/15.21, allocations: 19.24 MB / 6.63 GB, free: 49.53 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/15.21, allocations: 240.6 kB / 6.63 GB, free: 49.53 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/15.21, allocations: 454.5 kB / 6.63 GB, free: 49.52 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009852/15.22, allocations: 5.618 MB / 6.636 GB, free: 49.49 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/15.23, allocations: 7.256 MB / 6.643 GB, free: 48.32 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/15.23, allocations: 23.88 kB / 6.643 GB, free: 48.31 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005962/15.24, allocations: 14.94 kB / 6.643 GB, free: 48.31 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001383/15.24, allocations: 204.4 kB / 6.643 GB, free: 48.31 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04646/15.28, allocations: 47.28 MB / 6.689 GB, free: 20.98 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/15.28, allocations: 2.065 MB / 6.691 GB, free: 20.96 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002311/15.29, allocations: 2.018 MB / 6.693 GB, free: 20.93 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/15.3, allocations: 9.407 MB / 6.703 GB, free: 17.09 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002407/15.3, allocations: 1.836 MB / 6.704 GB, free: 16.98 MB / 1.135 GB Notification: Performance of pre-optimization done (n=339): time 4.508e-06/15.3, allocations: 0 / 6.704 GB, free: 16.98 MB / 1.135 GB Notification: Performance of matching and sorting (n=339): time 0.008961/15.31, allocations: 4.453 MB / 6.709 GB, free: 16.27 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/15.31, allocations: 87.36 kB / 6.709 GB, free: 16.2 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01058/15.32, allocations: 7.674 MB / 6.716 GB, free: 15.62 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.000485/15.32, allocations: 40.45 kB / 6.716 GB, free: 15.59 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.002736/15.33, allocations: 3.227 MB / 6.719 GB, free: 14 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.001816/15.33, allocations: 1.125 MB / 6.721 GB, free: 13.26 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/15.33, allocations: 1.422 kB / 6.721 GB, free: 13.26 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0001909/15.33, allocations: 496.1 kB / 6.721 GB, free: 12.95 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002046/15.33, allocations: 1.495 MB / 6.722 GB, free: 12.93 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002789/15.33, allocations: 3.585 MB / 6.726 GB, free: 10.32 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00491/15.34, allocations: 2.426 MB / 6.728 GB, free: 10.25 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/15.34, allocations: 17.28 kB / 6.728 GB, free: 10.25 MB / 1.135 GB Notification: Performance of matching and sorting (n=612) (initialization): time 0.01147/15.35, allocations: 6.011 MB / 6.734 GB, free: 9.555 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.00812/15.36, allocations: 31.11 MB / 6.765 GB, free: 8.453 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.442e-05/15.36, allocations: 49.91 kB / 6.765 GB, free: 8.453 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/15.36, allocations: 0.49 MB / 6.765 GB, free: 8.375 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004321/15.36, allocations: 1.131 MB / 6.766 GB, free: 8.375 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005518/15.37, allocations: 8.232 MB / 6.774 GB, free: 17.66 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008124/15.38, allocations: 0.8843 MB / 6.775 GB, free: 17.39 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004263/15.38, allocations: 272.7 kB / 6.775 GB, free: 17.39 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 8.476e-06/15.38, allocations: 5.531 kB / 6.775 GB, free: 17.39 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009197/15.39, allocations: 4.797 MB / 6.78 GB, free: 17.22 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.398e-05/15.39, allocations: 52.06 kB / 6.78 GB, free: 17.22 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/15.39, allocations: 498.6 kB / 6.781 GB, free: 17.14 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003801/15.39, allocations: 1.1 MB / 6.782 GB, free: 17.14 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005612/15.4, allocations: 8.23 MB / 6.79 GB, free: 10.39 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008339/15.41, allocations: 0.7829 MB / 6.79 GB, free: 10.2 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006616/15.41, allocations: 257.5 kB / 6.791 GB, free: 10.2 MB / 1.182 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: coo1.hex.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true final = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hea2.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hea1.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real 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.00192/15.41, allocations: 303.5 kB / 6.791 GB, free: 9.969 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004028/15.41, allocations: 0.9606 MB / 6.792 GB, free: 9.453 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01252/15.42, allocations: 5.263 MB / 6.797 GB, free: 9.082 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.892e-05/15.42, allocations: 33.94 kB / 6.797 GB, free: 9.082 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/15.42, allocations: 5.531 kB / 6.797 GB, free: 9.082 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006318/15.43, allocations: 3.517 MB / 6.801 GB, free: 8.852 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02615/15.46, allocations: 11.47 MB / 6.812 GB, free: 8.141 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.078e-05/15.46, allocations: 0 / 6.812 GB, free: 8.141 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003287/15.46, allocations: 0.7239 MB / 6.812 GB, free: 8.113 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009506/15.46, allocations: 426.4 kB / 6.813 GB, free: 8.031 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/15.46, allocations: 72.17 kB / 6.813 GB, free: 8.031 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005528/15.47, allocations: 8.136 MB / 6.821 GB, free: 1.309 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/15.47, allocations: 1.781 kB / 6.821 GB, free: 1.309 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01106/15.48, allocations: 6.947 MB / 6.828 GB, free: 216 kB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003963/15.48, allocations: 1.753 MB / 6.829 GB, free: 15.55 MB / 1.198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001244/15.48, allocations: 14.12 kB / 6.829 GB, free: 15.55 MB / 1.198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005379/15.49, allocations: 0.5934 MB / 6.83 GB, free: 15.51 MB / 1.198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002921/15.49, allocations: 200.8 kB / 6.83 GB, free: 15.5 MB / 1.198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003539/15.49, allocations: 186.6 kB / 6.83 GB, free: 15.5 MB / 1.198 GB Notification: Performance of sort global known variables: time 0.008352/15.5, allocations: 5.764 MB / 6.836 GB, free: 15.22 MB / 1.198 GB Notification: Performance of remove unused functions: time 0.018/15.52, allocations: 5.547 MB / 6.841 GB, free: 14.34 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 (346): * Single equations (assignments): 315 * 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.009191/15.53, allocations: 6.52 MB / 6.848 GB, free: 10.91 MB / 1.198 GB Notification: Performance of simCode: created initialization part: time 0.01084/15.54, allocations: 7.365 MB / 6.855 GB, free: 10.04 MB / 1.198 GB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/15.54, allocations: 2.688 kB / 6.855 GB, free: 10.04 MB / 1.198 GB Notification: Performance of simCode: created simulation system equations: time 0.002824/15.54, allocations: 2.113 MB / 6.857 GB, free: 9.758 MB / 1.198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01882/15.56, allocations: 4.494 MB / 6.861 GB, free: 9.445 MB / 1.198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03062/15.59, allocations: 15.3 MB / 6.876 GB, free: 5.543 MB / 1.198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006902/15.6, allocations: 6.502 MB / 6.883 GB, free: 4.453 MB / 1.198 GB Notification: Performance of SimCode: time 6.61e-07/15.6, allocations: 0 / 6.883 GB, free: 4.453 MB / 1.198 GB Notification: Performance of Templates: time 0.8522/16.45, allocations: 222.7 MB / 7.1 GB, free: 168 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