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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001576/0.001576, allocations: 108.8 kB / 16.41 MB, free: 6.508 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.001654/0.001654, allocations: 184 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.822/2.822, allocations: 481.8 MB / 0.7549 GB, free: 7.508 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 66.7 kB / 1.083 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3396/0.3416, allocations: 162.1 MB / 1.242 GB, free: 9.793 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat): time 0.003535/0.3451, allocations: 2.026 MB / 1.244 GB, free: 7.754 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001398/0.3465, allocations: 0.7129 MB / 1.244 GB, free: 7.035 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3466, allocations: 4 kB / 1.244 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.3468, allocations: 39.59 kB / 1.244 GB, free: 6.992 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.3469, allocations: 43.53 kB / 1.244 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004745/0.3474, allocations: 155.8 kB / 1.244 GB, free: 6.797 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004696/0.3479, allocations: 407.1 kB / 1.245 GB, free: 6.398 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003442/0.3482, allocations: 199.7 kB / 1.245 GB, free: 6.203 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.3484, allocations: 147.5 kB / 1.245 GB, free: 6.059 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.3486, allocations: 147.4 kB / 1.245 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.602e-05/0.3487, allocations: 36 kB / 1.245 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 9.735e-05/0.3488, allocations: 47.98 kB / 1.245 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.165e-05/0.3489, allocations: 79.77 kB / 1.246 GB, free: 5.754 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001623/0.349, allocations: 159.2 kB / 1.246 GB, free: 5.598 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004982/0.3495, allocations: 422.4 kB / 1.246 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.3495, allocations: 0 / 1.246 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3495, allocations: 0 / 1.246 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.3495, allocations: 0 / 1.246 GB, free: 5.184 MB / 0.9669 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.0009681/0.3505, allocations: 0.5803 MB / 1.247 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.3505, allocations: 8.031 kB / 1.247 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/0.3506, allocations: 32.75 kB / 1.247 GB, free: 4.508 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.3511, allocations: 275.9 kB / 1.247 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.3511, allocations: 28.94 kB / 1.247 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.127e-05/0.3512, allocations: 28.38 kB / 1.247 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006142/0.3518, allocations: 320 kB / 1.247 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.3518, allocations: 0 / 1.247 GB, free: 3.824 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.3518, allocations: 12 kB / 1.247 GB, free: 3.812 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.3518, allocations: 8 kB / 1.247 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004974/0.3523, allocations: 238.1 kB / 1.248 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001541/0.3539, allocations: 0.9326 MB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005437/0.3544, allocations: 229.5 kB / 1.249 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.3546, allocations: 101.2 kB / 1.249 GB, free: 2.242 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.174e-05/0.3547, allocations: 8.219 kB / 1.249 GB, free: 2.234 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000321/0.355, allocations: 159.5 kB / 1.249 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=30): time 2.295e-06/0.355, allocations: 0 / 1.249 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of matching and sorting (n=30): time 0.0007884/0.3558, allocations: 333.4 kB / 1.249 GB, free: 1.734 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.3559, allocations: 71.34 kB / 1.249 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.3561, allocations: 199.5 kB / 1.25 GB, free: 1.449 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.77e-05/0.3561, allocations: 37.7 kB / 1.25 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.3563, allocations: 156.7 kB / 1.25 GB, free: 1.25 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.898e-05/0.3563, allocations: 83.36 kB / 1.25 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3565, allocations: 81.67 kB / 1.25 GB, free: 1.082 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001752/0.3566, allocations: 338.8 kB / 1.25 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.3569, allocations: 95.95 kB / 1.25 GB, free: 0.6484 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002576/0.3571, allocations: 145 kB / 1.25 GB, free: 500 kB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004101/0.3575, allocations: 218.9 kB / 1.251 GB, free: 264 kB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3575, allocations: 0 / 1.251 GB, free: 264 kB / 0.9669 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006101/0.3581, allocations: 312.9 kB / 1.251 GB, free: 15.94 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.3582, allocations: 8 kB / 1.251 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3582, allocations: 0 / 1.251 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.155e-05/0.3582, allocations: 4 kB / 1.251 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.3584, allocations: 39.91 kB / 1.251 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.3584, allocations: 4 kB / 1.251 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000222/0.3587, allocations: 39.81 kB / 1.251 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.932e-05/0.3587, allocations: 16 kB / 1.251 GB, free: 15.83 MB / 0.9825 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,heaCon.stateGraphRoot.activeSteps,heaCon.onToOff.t_start,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.fire,heaCon.onToOff.enableFire,heaCon.onToOff.localCondition,heaCon.offToOn.t_start,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.fire,heaCon.offToOn.enableFire,heaCon.offToOn.localCondition,heaCon.on.active,heaCon.on.oldActive,$PRE.heaCon.on.oldActive,heaCon.on.newActive,$PRE.heaCon.on.newActive,heaCon.on.localActive,$PRE.heaCon.on.localActive,heaCon.off.active,heaCon.off.oldActive,$PRE.heaCon.off.oldActive,heaCon.off.newActive,$PRE.heaCon.off.newActive,heaCon.off.localActive,$PRE.heaCon.off.localActive,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002183/0.3589, allocations: 181.7 kB / 1.251 GB, free: 15.65 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.359, allocations: 19.86 kB / 1.251 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006126/0.3596, allocations: 272.1 kB / 1.251 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3596, allocations: 4 kB / 1.251 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.3596, allocations: 0 / 1.251 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.3596, allocations: 7.984 kB / 1.251 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.3607, allocations: 0.7268 MB / 1.252 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3607, allocations: 0 / 1.252 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.3609, allocations: 31.92 kB / 1.252 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.3609, allocations: 4 kB / 1.252 GB, free: 14.53 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.471e-05/0.3609, allocations: 11.98 kB / 1.252 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3609, allocations: 4 kB / 1.252 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3609, allocations: 0 / 1.252 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005231/0.3614, allocations: 360.9 kB / 1.253 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.797e-05/0.3615, allocations: 104.9 kB / 1.253 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.3615, allocations: 7.984 kB / 1.253 GB, free: 14.02 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.3617, allocations: 23.97 kB / 1.253 GB, free: 14 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3619, allocations: 43.83 kB / 1.253 GB, free: 13.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.3619, allocations: 12 kB / 1.253 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001274/0.362, allocations: 137.2 kB / 1.253 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.362, allocations: 0 / 1.253 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003587/0.3624, allocations: 67.89 kB / 1.253 GB, free: 13.74 MB / 0.9825 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.active,heaCon.off.active,$cse1,$cse2,$whenCondition2,$whenCondition1,heaCon.off.localActive,heaCon.off.newActive,heaCon.off.oldActive,heaCon.on.localActive,heaCon.on.newActive,heaCon.on.oldActive,heaCon.offToOn.localCondition,heaCon.offToOn.fire,heaCon.offToOn.t_start,heaCon.onToOff.localCondition,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002006/0.3626, allocations: 117.4 kB / 1.253 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000574/0.3631, allocations: 243.9 kB / 1.253 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3631, allocations: 0 / 1.253 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.3634, allocations: 115.8 kB / 1.253 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.3637, allocations: 31.92 kB / 1.253 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008972/0.3646, allocations: 482.8 kB / 1.254 GB, free: 12.74 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.3651, allocations: 0.7643 MB / 1.255 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001104/0.3652, allocations: 26.28 kB / 1.255 GB, free: 11.92 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.044e-05/0.3653, allocations: 31.44 kB / 1.255 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of SimCode: time 4.81e-07/0.3653, allocations: 0 / 1.255 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of Templates: time 0.007406/0.3727, allocations: 3.095 MB / 1.258 GB, free: 8.824 MB / 0.9825 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches