Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.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.HeatingSubstation,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.HeatingSubstation") translateModel(Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,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.HeatingSubstation") [: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.184/1.184, allocations: 249.4 MB / 256.7 MB, free: 7.051 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.0009512/0.0009513, allocations: 177.2 kB / 316 MB, free: 3.531 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.031/1.031, allocations: 205.2 MB / 0.5667 GB, free: 15.59 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.0008775/0.0008775, allocations: 90.08 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.719e-06/4.739e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1392, allocations: 106.3 MB / 0.8846 GB, free: 12.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8843/1.024, allocations: 435.8 MB / 1.31 GB, free: 282.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/1.024, allocations: 100.8 kB / 1.31 GB, free: 282.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.612/2.636, allocations: 0.6748 GB / 1.985 GB, free: 160.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001397/2.636, allocations: 36.2 kB / 1.985 GB, free: 160.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.002344/2.638, allocations: 1.726 MB / 1.987 GB, free: 159.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/2.638, allocations: 9.906 kB / 1.987 GB, free: 159.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001317/2.639, allocations: 371 kB / 1.987 GB, free: 159.3 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01527/2.655, allocations: 8.42 MB / 1.995 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/2.655, allocations: 27.88 kB / 1.995 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-05/2.655, allocations: 51.06 kB / 1.995 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009918/2.656, allocations: 0.6215 MB / 1.996 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/2.657, allocations: 0.8602 MB / 1.997 GB, free: 158.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/2.657, allocations: 5.094 kB / 1.997 GB, free: 158.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.979e-05/2.657, allocations: 0 / 1.997 GB, free: 158.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/2.657, allocations: 21.56 kB / 1.997 GB, free: 158.6 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004616/2.662, allocations: 4.726 MB / 2.001 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005887/2.662, allocations: 443.8 kB / 2.002 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002762/2.663, allocations: 237.1 kB / 2.002 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/2.664, allocations: 1.651 MB / 2.004 GB, free: 155.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/2.665, allocations: 360.3 kB / 2.004 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 1.884e-06/2.665, allocations: 0 / 2.004 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001447/2.666, allocations: 0.6821 MB / 2.005 GB, free: 155 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/2.666, allocations: 113.8 kB / 2.005 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009414/2.667, allocations: 0.9679 MB / 2.006 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/2.667, allocations: 29.45 kB / 2.006 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/2.667, allocations: 439.9 kB / 2.006 GB, free: 154.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/2.667, allocations: 149.4 kB / 2.006 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.364e-05/2.668, allocations: 0 / 2.006 GB, free: 154.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 5.037e-05/2.668, allocations: 334.6 kB / 2.007 GB, free: 154 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002632/2.668, allocations: 207.6 kB / 2.007 GB, free: 154 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003479/2.668, allocations: 493 kB / 2.007 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000855/2.669, allocations: 356.4 kB / 2.008 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/2.669, allocations: 3.719 kB / 2.008 GB, free: 153.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001556/2.671, allocations: 0.8676 MB / 2.009 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004722/2.671, allocations: 2.739 MB / 2.011 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/2.671, allocations: 5.562 kB / 2.011 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002696/2.671, allocations: 75.53 kB / 2.011 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006242/2.672, allocations: 163.6 kB / 2.011 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005846/2.673, allocations: 1.15 MB / 2.013 GB, free: 149.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007461/2.673, allocations: 109 kB / 2.013 GB, free: 149.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.751e-05/2.673, allocations: 42.62 kB / 2.013 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.162e-06/2.674, allocations: 6.469 kB / 2.013 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001377/2.675, allocations: 0.6721 MB / 2.013 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/2.675, allocations: 5.75 kB / 2.013 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/2.675, allocations: 74.67 kB / 2.013 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005483/2.676, allocations: 156.9 kB / 2.014 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005448/2.676, allocations: 1.156 MB / 2.015 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006406/2.677, allocations: 97.42 kB / 2.015 GB, free: 148.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/2.677, allocations: 49.03 kB / 2.015 GB, free: 148.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,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.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.0001485/2.677, allocations: 161.9 kB / 2.015 GB, free: 148.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001226/2.677, allocations: 126.4 kB / 2.015 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/2.679, allocations: 0.8841 MB / 2.016 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/2.679, allocations: 11.33 kB / 2.016 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/2.679, allocations: 0 / 2.016 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/2.679, allocations: 3.562 kB / 2.016 GB, free: 148.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002353/2.681, allocations: 1.83 MB / 2.018 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/2.681, allocations: 2.188 kB / 2.018 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004811/2.682, allocations: 103.9 kB / 2.018 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001716/2.682, allocations: 67.56 kB / 2.018 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.262e-05/2.682, allocations: 18.45 kB / 2.018 GB, free: 147.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005273/2.683, allocations: 1.14 MB / 2.019 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/2.683, allocations: 6.844 kB / 2.019 GB, free: 146.8 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001214/2.684, allocations: 0.9878 MB / 2.02 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003361/2.684, allocations: 304.9 kB / 2.02 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/2.684, allocations: 7.625 kB / 2.02 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007721/2.685, allocations: 76.52 kB / 2.02 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.816e-05/2.685, allocations: 42.81 kB / 2.02 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.885e-05/2.685, allocations: 33.12 kB / 2.021 GB, free: 146.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.00071/2.686, allocations: 0.7442 MB / 2.021 GB, free: 146.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00177/2.688, allocations: 0.7345 MB / 2.022 GB, free: 145.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,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.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.001199/2.689, allocations: 0.9767 MB / 2.023 GB, free: 145.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001306/2.69, allocations: 1.013 MB / 2.024 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/2.69, allocations: 0 / 2.024 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004357/2.691, allocations: 344.1 kB / 2.024 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/2.693, allocations: 0.5134 MB / 2.025 GB, free: 145.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/2.695, allocations: 1.681 MB / 2.026 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007364/2.696, allocations: 1.355 MB / 2.028 GB, free: 144.3 MB / 0.8698 GB Notification: Performance of SimCode: time 2.7e-07/2.696, allocations: 0 / 2.028 GB, free: 144.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.0373/2.733, allocations: 30.19 MB / 2.057 GB, free: 143.4 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.makefile (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation.csv","../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches