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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.446/1.446, allocations: 249.3 MB / 261.8 MB, free: 5.844 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.001004/0.001004, allocations: 180.7 kB / 321.3 MB, free: 14.65 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.529/1.529, allocations: 205.2 MB / 0.572 GB, free: 10.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.0009772/0.0009775, allocations: 94.39 kB / 0.6764 GB, free: 15.58 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.323e-05/3.325e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.1993, allocations: 106.3 MB / 0.8918 GB, free: 6.684 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.384/1.583, allocations: 435.5 MB / 1.317 GB, free: 303.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/1.583, allocations: 94.75 kB / 1.317 GB, free: 303.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.131/3.714, allocations: 0.6744 GB / 1.992 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.222e-06/3.714, allocations: 0 / 1.992 GB, free: 161.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001535/3.714, allocations: 42.34 kB / 1.992 GB, free: 161.3 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.002842/3.717, allocations: 1.722 MB / 1.993 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/3.717, allocations: 6.625 kB / 1.993 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001302/3.719, allocations: 349.7 kB / 1.994 GB, free: 160.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0161/3.735, allocations: 8.375 MB / 2.002 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.559e-05/3.735, allocations: 67.62 kB / 2.002 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/3.735, allocations: 88.06 kB / 2.002 GB, free: 159.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/3.737, allocations: 0.9692 MB / 2.003 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/3.737, allocations: 0 / 2.003 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.514e-05/3.737, allocations: 32.62 kB / 2.003 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/3.737, allocations: 21.12 kB / 2.003 GB, free: 159.7 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009832/3.738, allocations: 0.6549 MB / 2.004 GB, free: 159.7 MB / 0.8698 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.005822/3.744, allocations: 4.739 MB / 2.008 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008169/3.744, allocations: 451.8 kB / 2.009 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003251/3.745, allocations: 234.8 kB / 2.009 GB, free: 157.4 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00216/3.747, allocations: 1.673 MB / 2.01 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004986/3.747, allocations: 383.6 kB / 2.011 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003952/3.748, allocations: 80.38 kB / 2.011 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=47): time 2.375e-06/3.748, allocations: 0 / 2.011 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=47): time 0.001101/3.749, allocations: 0.6785 MB / 2.012 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.095e-05/3.749, allocations: 114.3 kB / 2.012 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/3.75, allocations: 1.1 MB / 2.013 GB, free: 155.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.285e-05/3.75, allocations: 36.77 kB / 2.013 GB, free: 155.7 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005712/3.751, allocations: 0.6558 MB / 2.013 GB, free: 155.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/3.751, allocations: 153.6 kB / 2.014 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/3.751, allocations: 12.88 kB / 2.014 GB, free: 155.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001048/3.751, allocations: 331.5 kB / 2.014 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/3.752, allocations: 210.2 kB / 2.014 GB, free: 155.1 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/3.752, allocations: 492.9 kB / 2.015 GB, free: 154.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000393/3.752, allocations: 305.6 kB / 2.015 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/3.752, allocations: 3.781 kB / 2.015 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001344/3.754, allocations: 0.8964 MB / 2.016 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006854/3.755, allocations: 2.786 MB / 2.018 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.689e-05/3.755, allocations: 11.5 kB / 2.018 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003883/3.755, allocations: 83.98 kB / 2.019 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000602/3.756, allocations: 159.9 kB / 2.019 GB, free: 151.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005774/3.756, allocations: 1.127 MB / 2.02 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000978/3.757, allocations: 86.08 kB / 2.02 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/3.757, allocations: 39.58 kB / 2.02 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/3.757, allocations: 11.06 kB / 2.02 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001175/3.758, allocations: 0.758 MB / 2.021 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/3.758, allocations: 10.98 kB / 2.021 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/3.759, allocations: 84.61 kB / 2.021 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004992/3.759, allocations: 149 kB / 2.021 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004318/3.76, allocations: 1.13 MB / 2.022 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007562/3.76, allocations: 80.75 kB / 2.022 GB, free: 149.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.645e-05/3.761, allocations: 50.25 kB / 2.022 GB, free: 149.6 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.0001986/3.761, allocations: 183.1 kB / 2.022 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/3.761, allocations: 135.8 kB / 2.022 GB, free: 149.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001587/3.762, allocations: 0.8906 MB / 2.023 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/3.763, allocations: 8.312 kB / 2.023 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/3.763, allocations: 3.312 kB / 2.023 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/3.763, allocations: 0 / 2.023 GB, free: 149.2 MB / 0.8698 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.002572/3.765, allocations: 1.984 MB / 2.025 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/3.765, allocations: 2.938 kB / 2.025 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004374/3.766, allocations: 105.9 kB / 2.025 GB, free: 148.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002501/3.766, allocations: 79.31 kB / 2.025 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.206e-05/3.766, allocations: 27.59 kB / 2.025 GB, free: 148.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004252/3.766, allocations: 1.103 MB / 2.027 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/3.766, allocations: 8.969 kB / 2.027 GB, free: 147.7 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/3.767, allocations: 1.054 MB / 2.028 GB, free: 147.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/3.768, allocations: 299.1 kB / 2.028 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/3.768, allocations: 10.28 kB / 2.028 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007689/3.769, allocations: 88.03 kB / 2.028 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.405e-05/3.769, allocations: 45.14 kB / 2.028 GB, free: 147 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.153e-05/3.769, allocations: 33.72 kB / 2.028 GB, free: 147 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0009908/3.77, allocations: 0.8582 MB / 2.029 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.8e-07/3.77, allocations: 0 / 2.029 GB, free: 146.9 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.00219/3.772, allocations: 0.7613 MB / 2.03 GB, free: 146.8 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 (45): * Single equations (assignments): 38 * 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.001525/3.774, allocations: 0.9994 MB / 2.031 GB, free: 146.6 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001577/3.775, allocations: 1.124 MB / 2.032 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/3.775, allocations: 0 / 2.032 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000434/3.776, allocations: 369.6 kB / 2.032 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002523/3.778, allocations: 0.6237 MB / 2.033 GB, free: 146.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002633/3.781, allocations: 1.659 MB / 2.034 GB, free: 145.8 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/3.782, allocations: 1.236 MB / 2.035 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001669/3.783, allocations: 424 kB / 2.036 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/3.783, allocations: 80.47 kB / 2.036 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of SimCode: time 7.71e-07/3.783, allocations: 0 / 2.036 GB, free: 145.1 MB / 0.8698 GB Notification: Performance of Templates: time 0.04885/3.832, allocations: 35.06 MB / 2.07 GB, free: 143.5 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