Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Obsolete.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|hea1.m_flow|hea2.m_flow|coo1.m_flow|coo2.m_flow",fileNamePrefix="Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem") translateModel(Buildings.Obsolete.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|hea1.m_flow|hea2.m_flow|coo1.m_flow|coo2.m_flow",fileNamePrefix="Buildings_9_Buildings.Obsolete.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 9.1.1-maint.9.1.x/package.mo): time 1.986/1.986, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 181.2 kB / 487 MB, free: 5.383 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 221.3 MB / 0.7819 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000938/0.000938, allocations: 104.3 kB / 0.9213 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.051e-06/6.081e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2561, allocations: 142.3 MB / 1.205 GB, free: 26.28 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9392/1.195, allocations: 483.9 MB / 1.678 GB, free: 5.086 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/1.196, allocations: 84.77 kB / 1.678 GB, free: 5.043 MB / 1.104 GB Notification: Performance of FrontEnd: time 18.57/19.77, allocations: 5.502 GB / 7.179 GB, free: 80.24 MB / 1.448 GB Notification: Performance of Transformations before backend: time 0.002006/19.77, allocations: 326.9 kB / 7.18 GB, free: 80.18 MB / 1.448 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.03154/19.8, allocations: 10.73 MB / 7.19 GB, free: 75.68 MB / 1.448 GB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/19.8, allocations: 11.16 kB / 7.19 GB, free: 75.68 MB / 1.448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/19.82, allocations: 3.015 MB / 7.193 GB, free: 74.96 MB / 1.448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05707/19.87, allocations: 20.34 MB / 7.213 GB, free: 72.89 MB / 1.448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004705/19.87, allocations: 239.2 kB / 7.213 GB, free: 72.89 MB / 1.448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002354/19.88, allocations: 446.4 kB / 7.214 GB, free: 72.89 MB / 1.448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01265/19.89, allocations: 5.666 MB / 7.219 GB, free: 72.86 MB / 1.448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/19.9, allocations: 7.387 MB / 7.227 GB, free: 71.68 MB / 1.448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000167/19.9, allocations: 20.97 kB / 7.227 GB, free: 71.68 MB / 1.448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008412/19.91, allocations: 18.03 kB / 7.227 GB, free: 71.68 MB / 1.448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002005/19.91, allocations: 280.7 kB / 7.227 GB, free: 71.66 MB / 1.448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05539/19.96, allocations: 47.72 MB / 7.273 GB, free: 44.48 MB / 1.448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003602/19.96, allocations: 2.084 MB / 7.275 GB, free: 44.46 MB / 1.448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002838/19.97, allocations: 2.048 MB / 7.277 GB, free: 44.42 MB / 1.448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0189/19.99, allocations: 9.6 MB / 7.287 GB, free: 40.55 MB / 1.448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00263/19.99, allocations: 1.913 MB / 7.289 GB, free: 40.45 MB / 1.448 GB Notification: Performance of pre-optimization done (n=339): time 5.841e-06/19.99, allocations: 0 / 7.289 GB, free: 40.45 MB / 1.448 GB Notification: Performance of matching and sorting (n=339): time 0.01058/20, allocations: 4.505 MB / 7.293 GB, free: 39.73 MB / 1.448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/20, allocations: 88.23 kB / 7.293 GB, free: 39.67 MB / 1.448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01388/20.01, allocations: 7.752 MB / 7.301 GB, free: 39.08 MB / 1.448 GB Notification: Performance of collectPreVariables (initialization): time 0.001012/20.01, allocations: 36.05 kB / 7.301 GB, free: 39.05 MB / 1.448 GB Notification: Performance of collectInitialEqns (initialization): time 0.002974/20.02, allocations: 3.235 MB / 7.304 GB, free: 37.46 MB / 1.448 GB Notification: Performance of collectInitialBindings (initialization): time 0.002619/20.02, allocations: 1.129 MB / 7.305 GB, free: 36.72 MB / 1.448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002353/20.02, allocations: 0 / 7.305 GB, free: 36.72 MB / 1.448 GB Notification: Performance of setup shared object (initialization): time 0.0001999/20.02, allocations: 499 kB / 7.306 GB, free: 36.4 MB / 1.448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002101/20.02, allocations: 1.518 MB / 7.307 GB, free: 36.39 MB / 1.448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002779/20.03, allocations: 3.597 MB / 7.311 GB, free: 33.79 MB / 1.448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005147/20.03, allocations: 2.442 MB / 7.313 GB, free: 33.73 MB / 1.448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.392e-05/20.03, allocations: 17.66 kB / 7.313 GB, free: 33.73 MB / 1.448 GB Notification: Performance of matching and sorting (n=612) (initialization): time 0.0125/20.04, allocations: 6.055 MB / 7.319 GB, free: 33.02 MB / 1.448 GB Notification: Performance of prepare postOptimizeDAE: time 0.007312/20.05, allocations: 31.25 MB / 7.349 GB, free: 31.93 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001188/20.05, allocations: 52.5 kB / 7.349 GB, free: 31.93 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001216/20.05, allocations: 497.1 kB / 7.35 GB, free: 31.85 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005174/20.06, allocations: 1.167 MB / 7.351 GB, free: 31.85 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005705/20.06, allocations: 8.236 MB / 7.359 GB, free: 25.14 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00943/20.07, allocations: 0.9142 MB / 7.36 GB, free: 24.87 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007473/20.07, allocations: 272.8 kB / 7.36 GB, free: 24.87 MB / 1.479 GB Notification: Performance of prepare postOptimizeDAE: time 8.005e-06/20.07, allocations: 2.156 kB / 7.36 GB, free: 24.87 MB / 1.479 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01006/20.08, allocations: 4.843 MB / 7.365 GB, free: 24.7 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/20.08, allocations: 52.03 kB / 7.365 GB, free: 24.7 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/20.08, allocations: 500 kB / 7.365 GB, free: 24.62 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/20.09, allocations: 1.132 MB / 7.367 GB, free: 24.62 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005787/20.09, allocations: 8.232 MB / 7.375 GB, free: 17.91 MB / 1.479 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008852/20.1, allocations: 0.8125 MB / 7.375 GB, free: 17.71 MB / 1.479 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000594/20.1, allocations: 257.3 kB / 7.376 GB, free: 17.71 MB / 1.479 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.001365/20.1, allocations: 303.1 kB / 7.376 GB, free: 17.57 MB / 1.479 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002243/20.11, allocations: 0.9742 MB / 7.377 GB, free: 17.05 MB / 1.479 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0113/20.12, allocations: 5.325 MB / 7.382 GB, free: 16.71 MB / 1.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-05/20.12, allocations: 43.73 kB / 7.382 GB, free: 16.71 MB / 1.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/20.12, allocations: 7.031 kB / 7.382 GB, free: 16.71 MB / 1.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006152/20.12, allocations: 3.559 MB / 7.386 GB, free: 16.48 MB / 1.479 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02581/20.15, allocations: 11.67 MB / 7.397 GB, free: 15.78 MB / 1.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/20.15, allocations: 3.219 kB / 7.397 GB, free: 15.78 MB / 1.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003666/20.15, allocations: 0.7648 MB / 7.398 GB, free: 15.78 MB / 1.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009863/20.16, allocations: 425.4 kB / 7.398 GB, free: 15.7 MB / 1.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002658/20.16, allocations: 70.23 kB / 7.398 GB, free: 15.7 MB / 1.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00588/20.16, allocations: 8.126 MB / 7.406 GB, free: 25 MB / 1.495 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/20.16, allocations: 3.844 kB / 7.406 GB, free: 25 MB / 1.495 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01249/20.17, allocations: 7.051 MB / 7.413 GB, free: 23.9 MB / 1.495 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006064/20.18, allocations: 1.788 MB / 7.415 GB, free: 23.24 MB / 1.495 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002646/20.18, allocations: 11.22 kB / 7.415 GB, free: 23.24 MB / 1.495 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008033/20.19, allocations: 0.632 MB / 7.415 GB, free: 23.2 MB / 1.495 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000337/20.19, allocations: 195.8 kB / 7.416 GB, free: 23.2 MB / 1.495 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005401/20.19, allocations: 209.5 kB / 7.416 GB, free: 23.19 MB / 1.495 GB Notification: Performance of sort global known variables: time 0.01098/20.2, allocations: 5.822 MB / 7.421 GB, free: 22.91 MB / 1.495 GB Notification: Performance of remove unused functions: time 0.02346/20.23, allocations: 5.625 MB / 7.427 GB, free: 22.02 MB / 1.495 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.01034/20.24, allocations: 6.519 MB / 7.433 GB, free: 18.98 MB / 1.495 GB Notification: Performance of simCode: created initialization part: time 0.01389/20.25, allocations: 7.451 MB / 7.441 GB, free: 18.43 MB / 1.495 GB Notification: Performance of simCode: created event and clocks part: time 9.949e-06/20.25, allocations: 3.375 kB / 7.441 GB, free: 18.43 MB / 1.495 GB Notification: Performance of simCode: created simulation system equations: time 0.003757/20.25, allocations: 2.142 MB / 7.443 GB, free: 18.21 MB / 1.495 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02216/20.28, allocations: 4.45 MB / 7.447 GB, free: 18.09 MB / 1.495 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04079/20.32, allocations: 15.48 MB / 7.462 GB, free: 14.7 MB / 1.495 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01126/20.33, allocations: 6.549 MB / 7.469 GB, free: 13.62 MB / 1.495 GB Notification: Performance of SimCode: time 8.12e-07/20.33, allocations: 0 / 7.469 GB, free: 13.62 MB / 1.495 GB Notification: Performance of Templates: time 1.173/21.5, allocations: 225.2 MB / 7.688 GB, free: 236.5 MB / 1.526 GB make -j1 -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.makefile (rm -f Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe ; mkfifo Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe >> ../files/Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.sim & ./Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_DistrictHeatingCooling_Validation_IdealSmallSystem.csv","../files/Buildings_9_Buildings.Obsolete.DistrictHeatingCooling.Validation.IdealSmallSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches