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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.261/2.261, allocations: 390.3 MB / 402.8 MB, free: 6.664 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.001406/0.001406, allocations: 176.8 kB / 496.1 MB, free: 12.84 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.845/1.845, allocations: 221.3 MB / 0.7915 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 91.89 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.312e-05/4.315e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3842, allocations: 143 MB / 1.219 GB, free: 13.49 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.199/1.583, allocations: 152.9 MB / 1.368 GB, free: 1.137 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/1.584, allocations: 90.42 kB / 1.368 GB, free: 1.082 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01275/1.596, allocations: 4.796 MB / 1.373 GB, free: 13 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.412e-06/1.596, allocations: 3.984 kB / 1.373 GB, free: 13 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.081e-05/1.596, allocations: 7.938 kB / 1.373 GB, free: 12.99 MB / 0.8386 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.0007802/1.597, allocations: 0.5013 MB / 1.373 GB, free: 12.46 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/1.597, allocations: 8.031 kB / 1.373 GB, free: 12.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.617e-05/1.597, allocations: 31.62 kB / 1.373 GB, free: 12.42 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000354/1.598, allocations: 264.2 kB / 1.374 GB, free: 12.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.653e-05/1.598, allocations: 30.75 kB / 1.374 GB, free: 12.14 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.538e-05/1.598, allocations: 33.73 kB / 1.374 GB, free: 12.11 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005361/1.598, allocations: 295.9 kB / 1.374 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/1.598, allocations: 0 / 1.374 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.758e-05/1.598, allocations: 18.27 kB / 1.374 GB, free: 11.89 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/1.598, allocations: 8 kB / 1.374 GB, free: 11.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/1.599, allocations: 210.6 kB / 1.374 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/1.601, allocations: 0.969 MB / 1.375 GB, free: 10.93 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004601/1.601, allocations: 232.9 kB / 1.375 GB, free: 10.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/1.601, allocations: 112.3 kB / 1.375 GB, free: 10.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/1.601, allocations: 4.219 kB / 1.375 GB, free: 10.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/1.602, allocations: 144.5 kB / 1.376 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=30): time 1.884e-06/1.602, allocations: 0 / 1.376 GB, free: 10.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30): time 0.000452/1.602, allocations: 224.1 kB / 1.376 GB, free: 10.4 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/1.602, allocations: 57.97 kB / 1.376 GB, free: 10.33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/1.602, allocations: 188.7 kB / 1.376 GB, free: 10.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/1.602, allocations: 43.39 kB / 1.376 GB, free: 10.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/1.602, allocations: 153.1 kB / 1.376 GB, free: 9.992 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.372e-05/1.602, allocations: 73.3 kB / 1.376 GB, free: 9.93 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.678e-05/1.603, allocations: 10.94 kB / 1.376 GB, free: 9.926 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001357/1.603, allocations: 333.2 kB / 1.377 GB, free: 9.602 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/1.603, allocations: 77.81 kB / 1.377 GB, free: 9.555 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/1.603, allocations: 144.6 kB / 1.377 GB, free: 9.434 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001467/1.603, allocations: 76.47 kB / 1.377 GB, free: 9.383 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/1.603, allocations: 0 / 1.377 GB, free: 9.383 MB / 0.8386 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004138/1.604, allocations: 284.2 kB / 1.377 GB, free: 9.164 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/1.604, allocations: 12.16 kB / 1.377 GB, free: 9.152 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/1.604, allocations: 0 / 1.377 GB, free: 9.152 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/1.604, allocations: 4 kB / 1.377 GB, free: 9.148 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002277/1.604, allocations: 43.84 kB / 1.377 GB, free: 9.105 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/1.604, allocations: 7.953 kB / 1.377 GB, free: 9.098 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/1.604, allocations: 54.38 kB / 1.377 GB, free: 9.051 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/1.604, allocations: 11.31 kB / 1.377 GB, free: 9.043 MB / 0.8386 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.enableFire,heaCon.offToOn.fire,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.enableFire,heaCon.onToOff.fire,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps,heaCon.stateGraphRoot.resume,heaCon.stateGraphRoot.suspend) * Number of discrete 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.0001212/1.604, allocations: 134.2 kB / 1.377 GB, free: 8.914 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.03e-05/1.604, allocations: 23.72 kB / 1.377 GB, free: 8.891 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004443/1.605, allocations: 257.9 kB / 1.378 GB, free: 8.707 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/1.605, allocations: 4 kB / 1.378 GB, free: 8.703 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/1.605, allocations: 7.922 kB / 1.378 GB, free: 8.695 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/1.605, allocations: 11.94 kB / 1.378 GB, free: 8.684 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/1.606, allocations: 0.6962 MB / 1.378 GB, free: 8.074 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.606, allocations: 0 / 1.378 GB, free: 8.074 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001455/1.606, allocations: 30.72 kB / 1.378 GB, free: 8.047 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.393e-06/1.606, allocations: 7.953 kB / 1.378 GB, free: 8.039 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/1.606, allocations: 6.562 kB / 1.378 GB, free: 8.035 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/1.606, allocations: 4 kB / 1.378 GB, free: 8.031 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.606, allocations: 0 / 1.378 GB, free: 8.031 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004001/1.606, allocations: 333.3 kB / 1.379 GB, free: 7.746 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.396e-05/1.606, allocations: 92.83 kB / 1.379 GB, free: 7.637 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/1.607, allocations: 15.58 kB / 1.379 GB, free: 7.625 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/1.607, allocations: 35.91 kB / 1.379 GB, free: 7.594 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/1.607, allocations: 38.38 kB / 1.379 GB, free: 7.562 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.126e-05/1.607, allocations: 8 kB / 1.379 GB, free: 7.555 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001229/1.607, allocations: 142.8 kB / 1.379 GB, free: 7.434 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.607, allocations: 0 / 1.379 GB, free: 7.434 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003155/1.607, allocations: 55.44 kB / 1.379 GB, free: 7.387 MB / 0.8386 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.offToOn.enableFire,heaCon.onToOff.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.fire,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.fire,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps) * Number of discrete states: 2 (heaCon.off.newActive,heaCon.on.newActive) * 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.0002244/1.608, allocations: 129.4 kB / 1.379 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004431/1.608, allocations: 230.3 kB / 1.379 GB, free: 7.094 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/1.608, allocations: 0 / 1.379 GB, free: 7.094 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001842/1.608, allocations: 112.1 kB / 1.38 GB, free: 7.02 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002937/1.609, allocations: 28.34 kB / 1.38 GB, free: 7 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006939/1.609, allocations: 330.2 kB / 1.38 GB, free: 6.711 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003651/1.61, allocations: 0.7683 MB / 1.381 GB, free: 5.914 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001259/1.61, allocations: 26.06 kB / 1.381 GB, free: 5.887 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.475e-05/1.61, allocations: 31.3 kB / 1.381 GB, free: 5.859 MB / 0.8386 GB Notification: Performance of SimCode: time 4.91e-07/1.61, allocations: 0 / 1.381 GB, free: 5.859 MB / 0.8386 GB Notification: Performance of Templates: time 0.006513/1.616, allocations: 2.559 MB / 1.383 GB, free: 3.336 MB / 0.8386 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