Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.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.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onWSE.y|TEva_in.k|TCon_in.y|TSet.k|TSup.T",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|onWSE.y|TEva_in.k|TCon_in.y|TSet.k|TSup.T",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer") [: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.866/1.866, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001037/0.001036, allocations: 181.2 kB / 487 MB, free: 5.348 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.185/1.185, allocations: 221.3 MB / 0.7819 GB, free: 1.336 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.0009061/0.000906, allocations: 109.2 kB / 0.9213 GB, free: 2.586 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.883e-06/6.983e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.1957, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7938/0.9895, allocations: 471.2 MB / 1.665 GB, free: 1.016 MB / 1.089 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.9898, allocations: 107.5 kB / 1.665 GB, free: 0.957 MB / 1.089 GB Notification: Performance of FrontEnd: time 3.306/4.296, allocations: 1.289 GB / 2.955 GB, free: 71.22 MB / 1.182 GB Notification: Performance of Transformations before backend: time 0.0002857/4.297, allocations: 79.58 kB / 2.955 GB, free: 71.15 MB / 1.182 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 399 * Number of variables: 399 Notification: Performance of Generate backend data structure: time 0.004624/4.301, allocations: 2.928 MB / 2.958 GB, free: 68.21 MB / 1.182 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/4.301, allocations: 13.03 kB / 2.958 GB, free: 68.2 MB / 1.182 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001691/4.303, allocations: 0.5685 MB / 2.958 GB, free: 67.64 MB / 1.182 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004909/4.308, allocations: 3.357 MB / 2.961 GB, free: 64.3 MB / 1.182 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005966/4.308, allocations: 215.9 kB / 2.962 GB, free: 64.11 MB / 1.182 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000214/4.309, allocations: 108 kB / 2.962 GB, free: 64.01 MB / 1.182 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002306/4.311, allocations: 1.592 MB / 2.963 GB, free: 62.41 MB / 1.182 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002335/4.313, allocations: 1.763 MB / 2.965 GB, free: 60.57 MB / 1.182 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.637e-05/4.313, allocations: 3.938 kB / 2.965 GB, free: 60.57 MB / 1.182 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/4.313, allocations: 4.562 kB / 2.965 GB, free: 60.57 MB / 1.182 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.943e-05/4.314, allocations: 55.7 kB / 2.965 GB, free: 60.51 MB / 1.182 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/4.324, allocations: 11.12 MB / 2.976 GB, free: 48.79 MB / 1.182 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/4.325, allocations: 0.925 MB / 2.977 GB, free: 47.86 MB / 1.182 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007987/4.326, allocations: 0.6759 MB / 2.978 GB, free: 47.18 MB / 1.182 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008929/4.327, allocations: 1.238 MB / 2.979 GB, free: 45.69 MB / 1.182 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008313/4.328, allocations: 0.7106 MB / 2.979 GB, free: 44.96 MB / 1.182 GB Notification: Performance of pre-optimization done (n=107): time 3.516e-06/4.328, allocations: 0 / 2.979 GB, free: 44.96 MB / 1.182 GB Notification: Performance of matching and sorting (n=107): time 0.002692/4.33, allocations: 1.496 MB / 2.981 GB, free: 43.45 MB / 1.182 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.853e-05/4.331, allocations: 222.6 kB / 2.981 GB, free: 43.19 MB / 1.182 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002191/4.333, allocations: 1.966 MB / 2.983 GB, free: 41.21 MB / 1.182 GB Notification: Performance of collectPreVariables (initialization): time 0.000114/4.333, allocations: 29.7 kB / 2.983 GB, free: 41.18 MB / 1.182 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004395/4.333, allocations: 0.733 MB / 2.984 GB, free: 40.43 MB / 1.182 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002503/4.334, allocations: 350.8 kB / 2.984 GB, free: 40.08 MB / 1.182 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-05/4.334, allocations: 0 / 2.984 GB, free: 40.08 MB / 1.182 GB Notification: Performance of setup shared object (initialization): time 7.693e-05/4.334, allocations: 357.8 kB / 2.984 GB, free: 39.73 MB / 1.182 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008006/4.335, allocations: 0.6521 MB / 2.985 GB, free: 39.07 MB / 1.182 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009611/4.336, allocations: 1.054 MB / 2.986 GB, free: 37.86 MB / 1.182 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/4.337, allocations: 0.8675 MB / 2.987 GB, free: 36.99 MB / 1.182 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/4.337, allocations: 4 kB / 2.987 GB, free: 36.99 MB / 1.182 GB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003195/4.34, allocations: 2.053 MB / 2.989 GB, free: 34.93 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004557/4.341, allocations: 2.825 MB / 2.992 GB, free: 31.87 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/4.341, allocations: 8 kB / 2.992 GB, free: 31.86 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002104/4.341, allocations: 76.83 kB / 2.992 GB, free: 31.78 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/4.343, allocations: 387.3 kB / 2.992 GB, free: 31.4 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003981/4.343, allocations: 0.685 MB / 2.993 GB, free: 30.69 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002097/4.345, allocations: 290.5 kB / 2.993 GB, free: 30.41 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001538/4.345, allocations: 76.14 kB / 2.993 GB, free: 30.33 MB / 1.182 GB Notification: Performance of prepare postOptimizeDAE: time 6.021e-06/4.345, allocations: 7.938 kB / 2.993 GB, free: 30.32 MB / 1.182 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002763/4.348, allocations: 1.727 MB / 2.995 GB, free: 28.59 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/4.348, allocations: 4 kB / 2.995 GB, free: 28.59 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/4.348, allocations: 93.31 kB / 2.995 GB, free: 28.5 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/4.35, allocations: 375.4 kB / 2.995 GB, free: 28.13 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001451/4.351, allocations: 1.7 MB / 2.997 GB, free: 26.32 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/4.353, allocations: 254.6 kB / 2.997 GB, free: 26.07 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001331/4.353, allocations: 80.02 kB / 2.997 GB, free: 26 MB / 1.182 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,WSE.on[1],TCon_in.a,TCon_in.b,TCon_in.last,$PRE.TCon_in.nextEvent,TCon_in.nextEvent,TCon_in.nextEventScaled,WSE.heaExc.con.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (167): * Single equations (assignments): 163 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003003/4.353, allocations: 176.8 kB / 2.997 GB, free: 25.81 MB / 1.182 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002815/4.354, allocations: 248.8 kB / 2.998 GB, free: 25.57 MB / 1.182 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003444/4.357, allocations: 1.851 MB / 3 GB, free: 23.73 MB / 1.182 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/4.357, allocations: 12 kB / 3 GB, free: 23.71 MB / 1.182 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.845e-06/4.357, allocations: 3.938 kB / 3 GB, free: 23.71 MB / 1.182 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002127/4.359, allocations: 1.505 MB / 3.001 GB, free: 22.15 MB / 1.182 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005789/4.365, allocations: 4.199 MB / 3.005 GB, free: 17.89 MB / 1.182 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/4.365, allocations: 4 kB / 3.005 GB, free: 17.89 MB / 1.182 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/4.366, allocations: 243.9 kB / 3.005 GB, free: 17.65 MB / 1.182 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001309/4.366, allocations: 62.89 kB / 3.005 GB, free: 17.59 MB / 1.182 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.688e-05/4.366, allocations: 27.98 kB / 3.005 GB, free: 17.56 MB / 1.182 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003085/4.367, allocations: 0.6537 MB / 3.006 GB, free: 16.88 MB / 1.182 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/4.367, allocations: 4 kB / 3.006 GB, free: 16.88 MB / 1.182 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003284/4.37, allocations: 2.777 MB / 3.009 GB, free: 14 MB / 1.182 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009168/4.371, allocations: 0.6106 MB / 3.009 GB, free: 13.37 MB / 1.182 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003297/4.371, allocations: 11.98 kB / 3.009 GB, free: 13.36 MB / 1.182 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/4.373, allocations: 179.7 kB / 3.01 GB, free: 13.18 MB / 1.182 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/4.373, allocations: 72.89 kB / 3.01 GB, free: 13.11 MB / 1.182 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/4.373, allocations: 51.97 kB / 3.01 GB, free: 13.06 MB / 1.182 GB Notification: Performance of sort global known variables: time 0.001706/4.375, allocations: 1.483 MB / 3.011 GB, free: 11.57 MB / 1.182 GB Notification: Performance of remove unused functions: time 0.003513/4.378, allocations: 1.329 MB / 3.012 GB, free: 10.25 MB / 1.182 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (WSE.heaExc.thrWayVal.vol.dynBal.U,WSE.heaExc.thrWayVal.filter.s[1],WSE.heaExc.thrWayVal.filter.s[2],WSE.heaExc.con.I.y,WSE.filter[1].x[1],WSE.filter[1].x[2],TSup.T) * Number of discrete variables: 7 ($whenCondition1,WSE.on[1],TCon_in.a,TCon_in.b,TCon_in.last,TCon_in.nextEvent,TCon_in.nextEventScaled) * Number of discrete states: 6 (TCon_in.nextEvent,TCon_in.last,TCon_in.nextEventScaled,TCon_in.b,TCon_in.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001696/4.38, allocations: 1.247 MB / 3.014 GB, free: 9.133 MB / 1.182 GB Notification: Performance of simCode: created initialization part: time 0.003315/4.383, allocations: 2.719 MB / 3.016 GB, free: 6.387 MB / 1.182 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/4.383, allocations: 0 / 3.016 GB, free: 6.387 MB / 1.182 GB Notification: Performance of simCode: created simulation system equations: time 0.0008192/4.384, allocations: 0.7471 MB / 3.017 GB, free: 5.633 MB / 1.182 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/4.388, allocations: 1.055 MB / 3.018 GB, free: 4.609 MB / 1.182 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006886/4.395, allocations: 3.867 MB / 3.022 GB, free: 0.6797 MB / 1.182 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00181/4.397, allocations: 2.052 MB / 3.024 GB, free: 14.59 MB / 1.198 GB Notification: Performance of SimCode: time 9.21e-07/4.397, allocations: 0 / 3.024 GB, free: 14.59 MB / 1.198 GB Notification: Performance of Templates: time 0.5219/4.919, allocations: 59.15 MB / 3.082 GB, free: 168 MB / 1.214 GB make -j1 -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.makefile (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.sim & ./Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_DataCenters_ChillerCooled_Equipment_Validation_WatersideEconomizer.csv","../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches