Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,fileNamePrefix="Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006827/0.006827, allocations: 103.5 kB / 15.73 MB, free: 6.035 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.001254/0.001254, allocations: 198.9 kB / 16.67 MB, free: 5.969 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.221/2.221, allocations: 390.2 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 66.36 kB / 0.9504 GB, free: 6 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.23, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat): time 0.003091/0.2331, allocations: 2.041 MB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001285/0.2345, allocations: 0.7052 MB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.2346, allocations: 4 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.2348, allocations: 39.55 kB / 1.09 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001346/0.235, allocations: 43.59 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004744/0.2355, allocations: 155.7 kB / 1.09 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004494/0.2359, allocations: 399.2 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003564/0.2363, allocations: 235.7 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.2365, allocations: 139.5 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.2367, allocations: 147.4 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.619e-05/0.2368, allocations: 36 kB / 1.091 GB, free: 14.09 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.26e-05/0.2369, allocations: 47.98 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.687e-05/0.2369, allocations: 83.7 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001424/0.2371, allocations: 147.3 kB / 1.092 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.2375, allocations: 421.4 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2375, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.243e-06/0.2375, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.386e-06/0.2375, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 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.0008722/0.2384, allocations: 0.5699 MB / 1.093 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2385, allocations: 16.02 kB / 1.093 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.872e-05/0.2385, allocations: 66.61 kB / 1.093 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.757e-05/0.2386, allocations: 32.56 kB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.239, allocations: 276.8 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.926e-05/0.239, allocations: 20.94 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.2391, allocations: 32.38 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005592/0.2396, allocations: 323.7 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2397, allocations: 3.938 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.068e-05/0.2397, allocations: 12 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.2397, allocations: 4 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.2402, allocations: 234.1 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.2415, allocations: 0.9363 MB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005126/0.2421, allocations: 247.5 kB / 1.095 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000215/0.2423, allocations: 117.3 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.2423, allocations: 4.234 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.2426, allocations: 159.5 kB / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=30): time 1.934e-06/0.2426, allocations: 0 / 1.095 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30): time 0.0006797/0.2433, allocations: 325.3 kB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.2434, allocations: 67.39 kB / 1.095 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001688/0.2435, allocations: 198.2 kB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.984e-05/0.2436, allocations: 41.7 kB / 1.096 GB, free: 9.539 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.895e-05/0.2437, allocations: 152.6 kB / 1.096 GB, free: 9.387 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.866e-05/0.2438, allocations: 79 kB / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.2439, allocations: 81.67 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.244, allocations: 334.8 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.2442, allocations: 91.95 kB / 1.096 GB, free: 8.797 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002389/0.2445, allocations: 156.7 kB / 1.096 GB, free: 8.625 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003723/0.2448, allocations: 216.8 kB / 1.097 GB, free: 8.395 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.2448, allocations: 3.938 kB / 1.097 GB, free: 8.391 MB / 0.8575 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005333/0.2454, allocations: 312.6 kB / 1.097 GB, free: 8.078 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2454, allocations: 4 kB / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.2454, allocations: 0 / 1.097 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2454, allocations: 7.984 kB / 1.097 GB, free: 8.066 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000201/0.2456, allocations: 35.92 kB / 1.097 GB, free: 8.031 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2457, allocations: 7.984 kB / 1.097 GB, free: 8.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.2459, allocations: 47.7 kB / 1.097 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.2459, allocations: 12.16 kB / 1.097 GB, free: 7.965 MB / 0.8575 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.0001724/0.2461, allocations: 181.6 kB / 1.097 GB, free: 7.777 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.2461, allocations: 23.72 kB / 1.097 GB, free: 7.754 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005515/0.2467, allocations: 280.7 kB / 1.097 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2467, allocations: 4 kB / 1.097 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.2467, allocations: 0 / 1.097 GB, free: 7.469 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2467, allocations: 4 kB / 1.097 GB, free: 7.465 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009892/0.2477, allocations: 0.7294 MB / 1.098 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.225e-06/0.2477, allocations: 0 / 1.098 GB, free: 6.68 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000154/0.2479, allocations: 27.92 kB / 1.098 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.2479, allocations: 0 / 1.098 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.311e-05/0.2479, allocations: 8 kB / 1.098 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.248, allocations: 3.984 kB / 1.098 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.248, allocations: 11.88 kB / 1.098 GB, free: 6.629 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004901/0.2485, allocations: 356.8 kB / 1.099 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.206e-05/0.2485, allocations: 96.86 kB / 1.099 GB, free: 6.152 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.398e-05/0.2486, allocations: 8 kB / 1.099 GB, free: 6.145 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.2488, allocations: 31.95 kB / 1.099 GB, free: 6.113 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.827e-05/0.2489, allocations: 39.91 kB / 1.099 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.056e-05/0.2489, allocations: 7.984 kB / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000106/0.249, allocations: 137.5 kB / 1.099 GB, free: 5.934 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.249, allocations: 0 / 1.099 GB, free: 5.934 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003188/0.2494, allocations: 71.73 kB / 1.099 GB, free: 5.863 MB / 0.8575 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.0007933/0.2502, allocations: 0.898 MB / 1.1 GB, free: 4.938 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004932/0.2507, allocations: 251.8 kB / 1.1 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2507, allocations: 0 / 1.1 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.2509, allocations: 132.4 kB / 1.1 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.2513, allocations: 40.23 kB / 1.1 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003018/0.2543, allocations: 2.541 MB / 1.103 GB, free: 1.875 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.2546, allocations: 0.7642 MB / 1.103 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001154/0.2548, allocations: 30.27 kB / 1.103 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001525/0.2549, allocations: 87.41 kB / 1.104 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.2549, allocations: 0 / 1.104 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.2762, allocations: 5.615 MB / 1.109 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.385/7.661, allocations: 11.67 kB / 1.109 GB, free: 11.5 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.48 Buildings_9_Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.fmu > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches