Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.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.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_maint.7.0.x_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_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.498/1.498, allocations: 249.5 MB / 257 MB, free: 6.891 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.001508/0.001508, allocations: 186.9 kB / 316.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.144/2.144, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.001048/0.001048, allocations: 101.9 kB / 0.6714 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.023e-05/2.073e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2597, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.848/2.108, allocations: 451.6 MB / 1.326 GB, free: 293.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/2.109, allocations: 100.7 kB / 1.326 GB, free: 293.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.337/6.445, allocations: 1.225 GB / 2.551 GB, free: 40.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.946e-06/6.445, allocations: 0 / 2.551 GB, free: 40.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0008647/6.446, allocations: 90.78 kB / 2.552 GB, free: 40.73 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: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.01095/6.457, allocations: 2.919 MB / 2.554 GB, free: 37.77 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.684e-05/6.457, allocations: 12.03 kB / 2.554 GB, free: 37.76 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003663/6.461, allocations: 0.5427 MB / 2.555 GB, free: 37.21 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01175/6.473, allocations: 3.359 MB / 2.558 GB, free: 33.86 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007654/6.473, allocations: 196.4 kB / 2.558 GB, free: 33.67 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001046/6.475, allocations: 104 kB / 2.558 GB, free: 33.57 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004661/6.479, allocations: 1.591 MB / 2.56 GB, free: 31.98 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005523/6.485, allocations: 1.776 MB / 2.562 GB, free: 30.11 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.648e-05/6.485, allocations: 11.89 kB / 2.562 GB, free: 30.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004102/6.485, allocations: 0 / 2.562 GB, free: 30.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.243e-05/6.485, allocations: 40 kB / 2.562 GB, free: 30.06 MB / 0.8855 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.02009/6.505, allocations: 10.71 MB / 2.572 GB, free: 18.73 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/6.508, allocations: 1.691 MB / 2.574 GB, free: 16.91 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/6.509, allocations: 0.6526 MB / 2.575 GB, free: 16.26 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001421/6.51, allocations: 1.231 MB / 2.576 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001477/6.512, allocations: 0.7494 MB / 2.576 GB, free: 14 MB / 0.8855 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00248/6.514, allocations: 138.9 kB / 2.577 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=110): time 9.869e-06/6.514, allocations: 0 / 2.577 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of matching and sorting (n=110): time 0.004654/6.519, allocations: 1.492 MB / 2.578 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001349/6.519, allocations: 325.7 kB / 2.578 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005434/6.525, allocations: 1.938 MB / 2.58 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000428/6.525, allocations: 29.7 kB / 2.58 GB, free: 9.988 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001588/6.527, allocations: 1.179 MB / 2.581 GB, free: 8.793 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004848/6.527, allocations: 374.3 kB / 2.582 GB, free: 8.426 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002151/6.527, allocations: 0 / 2.582 GB, free: 8.426 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001786/6.528, allocations: 361.9 kB / 2.582 GB, free: 8.066 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/6.529, allocations: 0.6443 MB / 2.583 GB, free: 7.422 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/6.53, allocations: 1.05 MB / 2.584 GB, free: 6.215 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002168/6.532, allocations: 0.8627 MB / 2.585 GB, free: 5.359 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/6.532, allocations: 0 / 2.585 GB, free: 5.359 MB / 0.8855 GB Notification: Performance of matching and sorting (n=183) (initialization): time 0.005001/6.537, allocations: 2.028 MB / 2.587 GB, free: 3.32 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007356/6.538, allocations: 2.491 MB / 2.589 GB, free: 0.6133 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.344e-05/6.538, allocations: 8 kB / 2.589 GB, free: 0.6055 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002407/6.538, allocations: 48.84 kB / 2.589 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/6.54, allocations: 379.5 kB / 2.589 GB, free: 188 kB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006261/6.541, allocations: 0.61 MB / 2.59 GB, free: 15.55 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003344/6.544, allocations: 211.7 kB / 2.59 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003195/6.544, allocations: 79.7 kB / 2.59 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/6.544, allocations: 4 kB / 2.59 GB, free: 15.27 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004417/6.549, allocations: 1.734 MB / 2.592 GB, free: 13.53 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.588e-05/6.549, allocations: 8 kB / 2.592 GB, free: 13.52 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002387/6.549, allocations: 49.3 kB / 2.592 GB, free: 13.47 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/6.551, allocations: 375.4 kB / 2.592 GB, free: 13.1 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001734/6.553, allocations: 1.502 MB / 2.594 GB, free: 11.49 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003027/6.556, allocations: 199.6 kB / 2.594 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003206/6.556, allocations: 71.95 kB / 2.594 GB, free: 11.22 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (171): * Single equations (assignments): 165 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0006674/6.557, allocations: 192.8 kB / 2.594 GB, free: 11.03 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001099/6.558, allocations: 248.8 kB / 2.595 GB, free: 10.79 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005188/6.563, allocations: 1.754 MB / 2.596 GB, free: 9.035 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-05/6.563, allocations: 19.98 kB / 2.596 GB, free: 9.016 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/6.563, allocations: 4 kB / 2.596 GB, free: 9.012 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003048/6.566, allocations: 1.462 MB / 2.598 GB, free: 7.496 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01243/6.578, allocations: 4.414 MB / 2.602 GB, free: 2.977 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/6.579, allocations: 8.031 kB / 2.602 GB, free: 2.969 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/6.58, allocations: 243.7 kB / 2.602 GB, free: 2.73 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001913/6.58, allocations: 28.86 kB / 2.602 GB, free: 2.699 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/6.58, allocations: 31.97 kB / 2.602 GB, free: 2.668 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004423/6.581, allocations: 0.5718 MB / 2.603 GB, free: 2.07 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.345e-06/6.581, allocations: 4 kB / 2.603 GB, free: 2.066 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00566/6.586, allocations: 2.814 MB / 2.606 GB, free: 15.14 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002175/6.589, allocations: 0.5796 MB / 2.606 GB, free: 14.54 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009761/6.59, allocations: 15.98 kB / 2.606 GB, free: 14.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00244/6.592, allocations: 175.6 kB / 2.606 GB, free: 14.35 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/6.592, allocations: 85.16 kB / 2.607 GB, free: 14.26 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/6.592, allocations: 51.97 kB / 2.607 GB, free: 14.21 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.00426/6.597, allocations: 1.46 MB / 2.608 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.7e-07/6.597, allocations: 0 / 2.608 GB, free: 12.75 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.007602/6.604, allocations: 1.306 MB / 2.609 GB, free: 11.44 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (WSE.heaExc.thrWayVal.vol.dynBal.U,WSE.heaExc.thrWayVal.filter.x[1],WSE.heaExc.thrWayVal.filter.x[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 (121): * Single equations (assignments): 112 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.003286/6.608, allocations: 1.255 MB / 2.611 GB, free: 10.3 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.005775/6.613, allocations: 2.819 MB / 2.613 GB, free: 7.426 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/6.613, allocations: 4.062 kB / 2.613 GB, free: 7.422 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.001224/6.615, allocations: 0.75 MB / 2.614 GB, free: 6.66 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007477/6.622, allocations: 1.12 MB / 2.615 GB, free: 5.598 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01172/6.634, allocations: 3.805 MB / 2.619 GB, free: 1.723 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.705/7.339, allocations: 1.835 MB / 2.621 GB, free: 106.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.005811/7.345, allocations: 0.8615 MB / 2.621 GB, free: 106.9 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006246/7.345, allocations: 153 kB / 2.622 GB, free: 106.9 MB / 0.9167 GB Notification: Performance of SimCode: time 1.914e-06/7.345, allocations: 1.312 kB / 2.622 GB, free: 106.9 MB / 0.9167 GB Notification: Performance of Templates: time 0.1128/7.458, allocations: 51.18 MB / 2.672 GB, free: 105.1 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.makefile (rm -f Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.sim & ./Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Applications_DataCenters_ChillerCooled_Equipment_Validation_WatersideEconomizer.csv","../files/Buildings_maint.7.0.x_Buildings.Applications.DataCenters.ChillerCooled.Equipment.Validation.WatersideEconomizer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches