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.431/1.431, allocations: 251.9 MB / 266.9 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 183.8 kB / 326.5 MB, free: 2.219 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.576/1.576, allocations: 205.4 MB / 0.5775 GB, free: 20.16 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.001083/0.001083, allocations: 88.38 kB / 0.6821 GB, free: 12.87 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003203/0.0003203, allocations: 12.38 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2167, allocations: 106.3 MB / 0.9001 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9833/1.2, allocations: 435.5 MB / 1.325 GB, free: 13.23 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000343/1.2, allocations: 95.56 kB / 1.326 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.374/3.575, allocations: 0.6766 GB / 2.002 GB, free: 89.48 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.595e-06/3.575, allocations: 7.875 kB / 2.002 GB, free: 89.47 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001684/3.575, allocations: 39.98 kB / 2.002 GB, free: 89.43 MB / 0.8855 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.00448/3.58, allocations: 2.125 MB / 2.004 GB, free: 87.25 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/3.58, allocations: 12.03 kB / 2.004 GB, free: 87.23 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001315/3.581, allocations: 345.7 kB / 2.005 GB, free: 86.89 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/3.598, allocations: 8.452 MB / 2.013 GB, free: 78.33 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/3.598, allocations: 70 kB / 2.013 GB, free: 78.26 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/3.599, allocations: 88 kB / 2.013 GB, free: 78.17 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001976/3.601, allocations: 1.033 MB / 2.014 GB, free: 77.09 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/3.601, allocations: 3.938 kB / 2.014 GB, free: 77.09 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.487e-05/3.601, allocations: 32 kB / 2.014 GB, free: 77.05 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/3.601, allocations: 23.94 kB / 2.014 GB, free: 77.03 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/3.602, allocations: 0.7806 MB / 2.015 GB, free: 76.25 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.006068/3.608, allocations: 4.733 MB / 2.019 GB, free: 71.24 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/3.61, allocations: 0.5195 MB / 2.02 GB, free: 70.71 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002261/3.612, allocations: 1.678 MB / 2.022 GB, free: 68.86 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007989/3.613, allocations: 437.3 kB / 2.022 GB, free: 68.41 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003625/3.613, allocations: 87.33 kB / 2.022 GB, free: 68.33 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=47): time 4.068e-06/3.613, allocations: 0 / 2.022 GB, free: 68.33 MB / 0.8855 GB Notification: Performance of matching and sorting (n=47): time 0.002726/3.616, allocations: 1.318 MB / 2.023 GB, free: 66.94 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/3.616, allocations: 110.8 kB / 2.023 GB, free: 66.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001402/3.617, allocations: 1.11 MB / 2.025 GB, free: 65.69 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/3.617, allocations: 37.7 kB / 2.025 GB, free: 65.64 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005294/3.618, allocations: 0.6493 MB / 2.025 GB, free: 64.99 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/3.618, allocations: 153.8 kB / 2.025 GB, free: 64.84 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/3.618, allocations: 16 kB / 2.025 GB, free: 64.82 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.435e-05/3.618, allocations: 330 kB / 2.026 GB, free: 64.49 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005896/3.619, allocations: 265.1 kB / 2.026 GB, free: 64.23 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006998/3.62, allocations: 0.5405 MB / 2.026 GB, free: 63.57 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006413/3.62, allocations: 361.1 kB / 2.027 GB, free: 63.21 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/3.62, allocations: 4 kB / 2.027 GB, free: 63.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001739/3.622, allocations: 1.024 MB / 2.028 GB, free: 62.16 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006201/3.623, allocations: 2.783 MB / 2.031 GB, free: 59.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/3.623, allocations: 11.98 kB / 2.031 GB, free: 59.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003915/3.623, allocations: 89.61 kB / 2.031 GB, free: 59.11 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005562/3.624, allocations: 155.7 kB / 2.031 GB, free: 58.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000503/3.624, allocations: 1.132 MB / 2.032 GB, free: 57.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008941/3.625, allocations: 87.86 kB / 2.032 GB, free: 57.69 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.635e-05/3.625, allocations: 43.98 kB / 2.032 GB, free: 57.64 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.817e-06/3.625, allocations: 4 kB / 2.032 GB, free: 57.64 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001512/3.627, allocations: 0.8695 MB / 2.033 GB, free: 56.76 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/3.627, allocations: 8 kB / 2.033 GB, free: 56.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/3.627, allocations: 82.33 kB / 2.033 GB, free: 56.66 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004789/3.627, allocations: 155.7 kB / 2.033 GB, free: 56.51 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004236/3.628, allocations: 1.124 MB / 2.034 GB, free: 55.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007535/3.629, allocations: 83.98 kB / 2.034 GB, free: 55.25 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.439e-05/3.629, allocations: 35.98 kB / 2.034 GB, free: 55.22 MB / 0.8855 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 () * Number of clocked 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.0009001/3.63, allocations: 498.9 kB / 2.035 GB, free: 54.71 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/3.63, allocations: 134.3 kB / 2.035 GB, free: 54.58 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/3.632, allocations: 1.014 MB / 2.036 GB, free: 53.54 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/3.632, allocations: 4 kB / 2.036 GB, free: 53.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/3.632, allocations: 4.062 kB / 2.036 GB, free: 53.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/3.632, allocations: 3.984 kB / 2.036 GB, free: 53.53 MB / 0.8855 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.003163/3.635, allocations: 2.109 MB / 2.038 GB, free: 51.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/3.635, allocations: 0 / 2.038 GB, free: 51.34 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004158/3.635, allocations: 99.86 kB / 2.038 GB, free: 51.24 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002596/3.636, allocations: 85.73 kB / 2.038 GB, free: 51.15 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/3.636, allocations: 23.94 kB / 2.038 GB, free: 51.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004207/3.636, allocations: 1.117 MB / 2.039 GB, free: 49.96 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/3.636, allocations: 0 / 2.039 GB, free: 49.96 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/3.638, allocations: 1.18 MB / 2.04 GB, free: 48.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/3.638, allocations: 291.3 kB / 2.041 GB, free: 48.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/3.638, allocations: 16 kB / 2.041 GB, free: 48.38 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007812/3.639, allocations: 83.81 kB / 2.041 GB, free: 48.29 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/3.639, allocations: 43.91 kB / 2.041 GB, free: 48.25 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.299e-05/3.639, allocations: 31.97 kB / 2.041 GB, free: 48.22 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001076/3.64, allocations: 0.8715 MB / 2.042 GB, free: 47.35 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.91e-07/3.64, allocations: 0 / 2.042 GB, free: 47.35 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00265/3.643, allocations: 0.7603 MB / 2.042 GB, free: 46.59 MB / 0.8855 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) * Number of clocked states: 0 () * 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.00163/3.645, allocations: 1.006 MB / 2.043 GB, free: 45.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002457/3.647, allocations: 1.244 MB / 2.045 GB, free: 44.34 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/3.647, allocations: 4.125 kB / 2.045 GB, free: 44.33 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007211/3.648, allocations: 433.4 kB / 2.045 GB, free: 43.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002343/3.65, allocations: 0.6173 MB / 2.046 GB, free: 43.29 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003698/3.654, allocations: 2.659 MB / 2.048 GB, free: 40.59 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006192/3.655, allocations: 1.23 MB / 2.049 GB, free: 39.32 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00126/3.656, allocations: 298.8 kB / 2.05 GB, free: 39.02 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/3.656, allocations: 103.4 kB / 2.05 GB, free: 38.92 MB / 0.8855 GB Notification: Performance of SimCode: time 1.553e-06/3.656, allocations: 0 / 2.05 GB, free: 38.92 MB / 0.8855 GB Notification: Performance of Templates: time 0.05065/3.707, allocations: 31.03 MB / 2.08 GB, free: 8.145 MB / 0.8855 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