Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCon.yVal|heaCon.yValSwi|heaCon.dT|heaCon.y",fileNamePrefix="Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCon.yVal|heaCon.yValSwi|heaCon.dT|heaCon.y",fileNamePrefix="Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 96.02 kB / 15.05 MB, free: 1.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001357/0.001358, allocations: 181.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.839/2.839, allocations: 436.5 MB / 0.7104 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.0003619, allocations: 8 kB / 0.8708 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7139/0.7143, allocations: 153.7 MB / 1.021 GB, free: 1.289 MB / 0.7638 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat): time 0.002531/0.7168, allocations: 1.708 MB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001245/0.7181, allocations: 0.6861 MB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.7183, allocations: 4 kB / 1.023 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.7184, allocations: 31.72 kB / 1.023 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.7186, allocations: 35.88 kB / 1.023 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.719, allocations: 107.8 kB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.7193, allocations: 219.5 kB / 1.024 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003429/0.7197, allocations: 195 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.7198, allocations: 91.64 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001641/0.72, allocations: 119.4 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.72, allocations: 12 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.04e-05/0.7201, allocations: 20 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.215e-05/0.7202, allocations: 47.83 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.864e-05/0.7202, allocations: 73.52 kB / 1.024 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002949/0.7205, allocations: 297.4 kB / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.7206, allocations: 0 / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.816e-06/0.7206, allocations: 0 / 1.024 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.7206, allocations: 4 kB / 1.024 GB, free: 13.63 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0007824/0.7214, allocations: 0.5181 MB / 1.025 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.7214, allocations: 11.98 kB / 1.025 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.7215, allocations: 31.62 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.7218, allocations: 274.6 kB / 1.025 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.11e-05/0.7219, allocations: 24.55 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.7219, allocations: 35.95 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.7225, allocations: 311.7 kB / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.7225, allocations: 0 / 1.026 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.306e-05/0.7225, allocations: 12 kB / 1.026 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.7226, allocations: 8 kB / 1.026 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004627/0.723, allocations: 242.1 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001456/0.7245, allocations: 0.9558 MB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004877/0.725, allocations: 251.6 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.725, allocations: 4.234 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003175/0.7254, allocations: 163.4 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.7254, allocations: 0 / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of matching and sorting (n=30): time 0.0006757/0.726, allocations: 335.6 kB / 1.027 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.7261, allocations: 59.41 kB / 1.027 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/0.7263, allocations: 203.4 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.72e-05/0.7263, allocations: 45.62 kB / 1.028 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.7265, allocations: 160.6 kB / 1.028 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.853e-05/0.7265, allocations: 78.91 kB / 1.028 GB, free: 9.746 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.659e-05/0.7265, allocations: 8 kB / 1.028 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.7267, allocations: 330.8 kB / 1.028 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001913/0.7269, allocations: 95.95 kB / 1.028 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.7271, allocations: 149.1 kB / 1.028 GB, free: 9.148 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.7273, allocations: 99.73 kB / 1.029 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7273, allocations: 0 / 1.029 GB, free: 9.051 MB / 0.7794 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005061/0.7278, allocations: 308.7 kB / 1.029 GB, free: 8.742 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.7278, allocations: 11.95 kB / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.7279, allocations: 0 / 1.029 GB, free: 8.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.7279, allocations: 8.156 kB / 1.029 GB, free: 8.723 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001955/0.7281, allocations: 47.84 kB / 1.029 GB, free: 8.676 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.7281, allocations: 4 kB / 1.029 GB, free: 8.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.7283, allocations: 51.66 kB / 1.029 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.314e-05/0.7283, allocations: 16 kB / 1.029 GB, free: 8.605 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.heaCon.offToOn.enableFire,$PRE.heaCon.onToOff.enableFire,$whenCondition2,$whenCondition1,$PRE.heaCon.off.localActive,heaCon.off.localActive,$PRE.heaCon.off.newActive,heaCon.off.newActive,$PRE.heaCon.off.oldActive,heaCon.off.oldActive,heaCon.off.active,$PRE.heaCon.on.localActive,heaCon.on.localActive,$PRE.heaCon.on.newActive,heaCon.on.newActive,$PRE.heaCon.on.oldActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.condition,heaCon.offToOn.enableFire,heaCon.offToOn.fire,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.t_start,heaCon.onToOff.condition,heaCon.onToOff.enableFire,heaCon.onToOff.fire,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.t_start,heaCon.stateGraphRoot.activeSteps,heaCon.stateGraphRoot.resume,heaCon.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001796/0.7285, allocations: 175.8 kB / 1.029 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.7286, allocations: 15.81 kB / 1.029 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005329/0.7291, allocations: 284.2 kB / 1.029 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.7291, allocations: 7.938 kB / 1.029 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.7291, allocations: 0 / 1.029 GB, free: 8.121 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.7291, allocations: 3.984 kB / 1.029 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009897/0.7301, allocations: 0.7446 MB / 1.03 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.7301, allocations: 0 / 1.03 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.7303, allocations: 27.98 kB / 1.03 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.7303, allocations: 0 / 1.03 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.7303, allocations: 11.98 kB / 1.03 GB, free: 7.277 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.7303, allocations: 4 kB / 1.03 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.7303, allocations: 0 / 1.03 GB, free: 7.273 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004812/0.7308, allocations: 367.4 kB / 1.031 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.7309, allocations: 96.77 kB / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.702e-05/0.7309, allocations: 11.98 kB / 1.031 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002066/0.7311, allocations: 35.97 kB / 1.031 GB, free: 6.738 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.733e-05/0.7313, allocations: 35.94 kB / 1.031 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.712e-05/0.7313, allocations: 12 kB / 1.031 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.357e-05/0.7314, allocations: 140.2 kB / 1.031 GB, free: 6.555 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7314, allocations: 3.938 kB / 1.031 GB, free: 6.551 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003147/0.7317, allocations: 67.84 kB / 1.031 GB, free: 6.484 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 (heaCon.onToOff.enableFire,heaCon.offToOn.enableFire,heaCon.on.localActive,heaCon.off.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,heaCon.off.newActive,heaCon.off.oldActive,heaCon.off.active,heaCon.on.newActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.condition,heaCon.offToOn.fire,heaCon.offToOn.t_start,heaCon.onToOff.condition,heaCon.onToOff.fire,heaCon.onToOff.t_start,heaCon.stateGraphRoot.activeSteps) * Number of discrete states: 2 (heaCon.off.newActive,heaCon.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001788/0.7319, allocations: 125 kB / 1.031 GB, free: 6.352 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005086/0.7324, allocations: 259.8 kB / 1.031 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.7324, allocations: 0 / 1.031 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.7327, allocations: 128.2 kB / 1.031 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.7329, allocations: 24.73 kB / 1.032 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008279/0.7338, allocations: 0.5353 MB / 1.032 GB, free: 5.383 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.7341, allocations: 0.7683 MB / 1.033 GB, free: 4.586 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001025/0.7342, allocations: 26.28 kB / 1.033 GB, free: 4.562 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.699e-05/0.7343, allocations: 27.42 kB / 1.033 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.7343, allocations: 4 kB / 1.033 GB, free: 4.531 MB / 0.7794 GB Notification: Performance of Templates: time 0.005631/0.7399, allocations: 2.564 MB / 1.035 GB, free: 1.992 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.makefile (rm -f Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; mkfifo Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe >> ../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.sim & ./Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.csv","../files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches