Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.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.SubStations.Validation.CoolingSubstation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|subSta.Q_flow|subSta.m_flow|subSta.sta_b.T|subSta.sta_a.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation") translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|subSta.Q_flow|subSta.m_flow|subSta.sta_b.T|subSta.sta_a.T",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation") [: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.183/1.183, allocations: 249.4 MB / 256.7 MB, free: 7.074 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.0009454/0.0009452, allocations: 188.1 kB / 316 MB, free: 3.504 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.023/1.023, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0008047/0.0008047, allocations: 86.78 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.679e-06/4.709e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1329, allocations: 106.3 MB / 0.8846 GB, free: 12.6 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8762/1.009, allocations: 435.8 MB / 1.31 GB, free: 281.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/1.009, allocations: 96.56 kB / 1.31 GB, free: 281.9 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.614/2.624, allocations: 0.6748 GB / 1.985 GB, free: 162.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001357/2.624, allocations: 42.11 kB / 1.985 GB, free: 162.2 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.002463/2.626, allocations: 1.722 MB / 1.987 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/2.626, allocations: 10.86 kB / 1.987 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/2.628, allocations: 374.8 kB / 1.987 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01638/2.644, allocations: 8.415 MB / 1.995 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/2.644, allocations: 29.81 kB / 1.995 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/2.644, allocations: 56.28 kB / 1.995 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001058/2.645, allocations: 0.619 MB / 1.996 GB, free: 160.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001142/2.647, allocations: 0.8616 MB / 1.997 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/2.647, allocations: 0 / 1.997 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.13e-05/2.647, allocations: 3.344 kB / 1.997 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/2.647, allocations: 18.53 kB / 1.997 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005053/2.652, allocations: 4.718 MB / 2.001 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005846/2.652, allocations: 444.9 kB / 2.002 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/2.653, allocations: 236.5 kB / 2.002 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00182/2.655, allocations: 1.646 MB / 2.004 GB, free: 157.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003866/2.655, allocations: 358.8 kB / 2.004 GB, free: 157 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 1.844e-06/2.655, allocations: 0 / 2.004 GB, free: 157 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001539/2.656, allocations: 0.6896 MB / 2.005 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/2.657, allocations: 116.6 kB / 2.005 GB, free: 156.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009771/2.657, allocations: 0.9644 MB / 2.006 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/2.658, allocations: 29.14 kB / 2.006 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/2.658, allocations: 438.5 kB / 2.006 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/2.658, allocations: 150.2 kB / 2.006 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/2.658, allocations: 2.562 kB / 2.006 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.808e-05/2.658, allocations: 327.6 kB / 2.007 GB, free: 156 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002681/2.658, allocations: 210.5 kB / 2.007 GB, free: 156 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003564/2.659, allocations: 496.2 kB / 2.007 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008835/2.66, allocations: 353.6 kB / 2.008 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/2.66, allocations: 3.281 kB / 2.008 GB, free: 155.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001579/2.661, allocations: 0.8685 MB / 2.009 GB, free: 155.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003593/2.661, allocations: 2.736 MB / 2.011 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/2.661, allocations: 9.469 kB / 2.011 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002475/2.662, allocations: 78.56 kB / 2.011 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006168/2.662, allocations: 160 kB / 2.011 GB, free: 152.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005344/2.663, allocations: 1.148 MB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008336/2.664, allocations: 114.7 kB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.591e-05/2.664, allocations: 45.48 kB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.352e-06/2.664, allocations: 5.906 kB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00138/2.665, allocations: 0.6669 MB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/2.665, allocations: 7.438 kB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001752/2.665, allocations: 69.09 kB / 2.013 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/2.666, allocations: 159.5 kB / 2.014 GB, free: 151.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005315/2.667, allocations: 1.154 MB / 2.015 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007313/2.667, allocations: 100.7 kB / 2.015 GB, free: 150.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.228e-05/2.667, allocations: 42.53 kB / 2.015 GB, free: 150.5 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QCoo.a,QCoo.b,QCoo.last,$PRE.QCoo.nextEvent,QCoo.nextEvent,QCoo.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001878/2.668, allocations: 158.6 kB / 2.015 GB, free: 150.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/2.668, allocations: 132.5 kB / 2.015 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/2.669, allocations: 0.8765 MB / 2.016 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/2.669, allocations: 6.75 kB / 2.016 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/2.669, allocations: 0 / 2.016 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/2.669, allocations: 8.484 kB / 2.016 GB, free: 150.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002527/2.672, allocations: 1.833 MB / 2.018 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-06/2.672, allocations: 7.188 kB / 2.018 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004901/2.673, allocations: 108.7 kB / 2.018 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/2.673, allocations: 72.92 kB / 2.018 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.116e-05/2.673, allocations: 13.38 kB / 2.018 GB, free: 149.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005325/2.673, allocations: 1.146 MB / 2.019 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/2.673, allocations: 4.406 kB / 2.019 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001263/2.675, allocations: 0.9999 MB / 2.02 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/2.675, allocations: 295.9 kB / 2.02 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001625/2.675, allocations: 7.438 kB / 2.02 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007874/2.676, allocations: 84.53 kB / 2.02 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/2.676, allocations: 33.41 kB / 2.021 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.311e-05/2.676, allocations: 33.22 kB / 2.021 GB, free: 148.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0007531/2.677, allocations: 0.7427 MB / 2.021 GB, free: 148 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001909/2.679, allocations: 0.7383 MB / 2.022 GB, free: 147.9 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QCoo.a,QCoo.b,QCoo.last,QCoo.nextEvent,QCoo.nextEventScaled) * Number of discrete states: 6 (QCoo.nextEvent,QCoo.last,QCoo.nextEventScaled,QCoo.b,QCoo.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001257/2.68, allocations: 0.9841 MB / 2.023 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001415/2.681, allocations: 1 MB / 2.024 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/2.681, allocations: 0 / 2.024 GB, free: 147.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004656/2.682, allocations: 354 kB / 2.024 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001884/2.684, allocations: 0.5197 MB / 2.025 GB, free: 147.5 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/2.687, allocations: 1.679 MB / 2.026 GB, free: 147 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007523/2.687, allocations: 1.356 MB / 2.028 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of SimCode: time 8.61e-07/2.687, allocations: 3.125 kB / 2.028 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.03916/2.727, allocations: 30.19 MB / 2.057 GB, free: 145.4 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.makefile (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_CoolingSubstation.csv","../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.CoolingSubstation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches