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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.0008961/0.0008959, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009394/0.0009395, allocations: 177.3 kB / 15.94 MB, free: 228 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.328/1.328, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.3 MB / 0.6653 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003634/0.0003639, allocations: 11.98 kB / 0.8145 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6777/0.6781, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat): time 0.001954/0.6801, allocations: 1.703 MB / 0.9552 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.6811, allocations: 0.6902 MB / 0.9559 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.6813, allocations: 4.5 kB / 0.9559 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001159/0.6814, allocations: 22.52 kB / 0.9559 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.459e-05/0.6815, allocations: 42.62 kB / 0.9559 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.6818, allocations: 102.7 kB / 0.956 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002792/0.6821, allocations: 223.5 kB / 0.9562 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003196/0.6825, allocations: 192.9 kB / 0.9564 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001505/0.6826, allocations: 97.38 kB / 0.9565 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.6828, allocations: 108.3 kB / 0.9566 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.282e-05/0.6828, allocations: 17.56 kB / 0.9566 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.226e-05/0.6829, allocations: 23.39 kB / 0.9566 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.476e-05/0.683, allocations: 55.16 kB / 0.9567 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.385e-05/0.683, allocations: 66.7 kB / 0.9568 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002543/0.6833, allocations: 291.5 kB / 0.957 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.6833, allocations: 1.125 kB / 0.957 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.445e-06/0.6833, allocations: 0 / 0.957 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.6833, allocations: 0 / 0.957 GB, free: 5.367 MB / 0.7169 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.0006801/0.684, allocations: 0.5287 MB / 0.9576 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.684, allocations: 9.531 kB / 0.9576 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.624e-05/0.6841, allocations: 35.89 kB / 0.9576 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.6844, allocations: 257.5 kB / 0.9578 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.6844, allocations: 26.09 kB / 0.9579 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.761e-05/0.6845, allocations: 32.25 kB / 0.9579 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005055/0.685, allocations: 317.6 kB / 0.9582 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.685, allocations: 0 / 0.9582 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.685, allocations: 10.75 kB / 0.9582 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.6851, allocations: 10.83 kB / 0.9582 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004544/0.6855, allocations: 242.8 kB / 0.9585 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.6868, allocations: 0.9518 MB / 0.9594 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004717/0.6872, allocations: 247.7 kB / 0.9596 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.9e-05/0.6873, allocations: 10.28 kB / 0.9596 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003103/0.6876, allocations: 159.8 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=30): time 1.773e-06/0.6876, allocations: 1.375 kB / 0.9598 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=30): time 0.0006369/0.6883, allocations: 341.2 kB / 0.9601 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.458e-05/0.6883, allocations: 55.88 kB / 0.9602 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.6885, allocations: 212.2 kB / 0.9604 GB, free: 2.777 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/0.6885, allocations: 38.55 kB / 0.9604 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.42e-05/0.6886, allocations: 153.1 kB / 0.9606 GB, free: 2.598 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.6886, allocations: 81.8 kB / 0.9606 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.473e-05/0.6886, allocations: 10.25 kB / 0.9606 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.87e-05/0.6887, allocations: 335.8 kB / 0.961 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.6889, allocations: 95.8 kB / 0.9611 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002106/0.6891, allocations: 146.8 kB / 0.9612 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.6893, allocations: 91.11 kB / 0.9613 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6894, allocations: 3.938 kB / 0.9613 GB, free: 2 MB / 0.7169 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005449/0.6899, allocations: 324 kB / 0.9616 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.6899, allocations: 5.438 kB / 0.9616 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.6899, allocations: 2.031 kB / 0.9616 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.69, allocations: 3.156 kB / 0.9616 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001976/0.6902, allocations: 48.12 kB / 0.9616 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.6902, allocations: 3.469 kB / 0.9617 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.6904, allocations: 58.55 kB / 0.9617 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.6904, allocations: 17.3 kB / 0.9617 GB, free: 1.77 MB / 0.7169 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.0001408/0.6906, allocations: 169.9 kB / 0.9619 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.6906, allocations: 21.97 kB / 0.9619 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005563/0.6912, allocations: 289 kB / 0.9622 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.6912, allocations: 3.969 kB / 0.9622 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6912, allocations: 0 / 0.9622 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.6912, allocations: 1.031 kB / 0.9622 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009038/0.6921, allocations: 0.7382 MB / 0.9629 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.6921, allocations: 0 / 0.9629 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001396/0.6923, allocations: 38.77 kB / 0.9629 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.6923, allocations: 1.031 kB / 0.9629 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.6923, allocations: 5.562 kB / 0.963 GB, free: 0.8359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.6923, allocations: 5.297 kB / 0.963 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.6923, allocations: 1.406 kB / 0.963 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004432/0.6928, allocations: 357.1 kB / 0.9633 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.6928, allocations: 99.58 kB / 0.9634 GB, free: 500 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.6929, allocations: 10.56 kB / 0.9634 GB, free: 492 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.6931, allocations: 33.44 kB / 0.9634 GB, free: 480 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.6932, allocations: 43.55 kB / 0.9635 GB, free: 452 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.6932, allocations: 10.44 kB / 0.9635 GB, free: 448 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001025/0.6933, allocations: 133.5 kB / 0.9636 GB, free: 344 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6933, allocations: 0 / 0.9636 GB, free: 344 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003139/0.6936, allocations: 65.84 kB / 0.9637 GB, free: 324 kB / 0.7169 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.0001464/0.6938, allocations: 127.6 kB / 0.9638 GB, free: 208 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004384/0.6942, allocations: 257.5 kB / 0.964 GB, free: 100 kB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.6943, allocations: 1.125 kB / 0.964 GB, free: 100 kB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002305/0.6945, allocations: 133.8 kB / 0.9642 GB, free: 44 kB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.6948, allocations: 38.28 kB / 0.9642 GB, free: 20 kB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008376/0.6956, allocations: 0.5308 MB / 0.9647 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.696, allocations: 0.7657 MB / 0.9655 GB, free: 14.89 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001163/0.6961, allocations: 34.44 kB / 0.9655 GB, free: 14.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.871e-05/0.6962, allocations: 26.7 kB / 0.9655 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of SimCode: time 3.51e-07/0.6962, allocations: 0 / 0.9655 GB, free: 14.86 MB / 0.7325 GB Notification: Performance of Templates: time 0.009135/0.7053, allocations: 2.564 MB / 0.968 GB, free: 13.6 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.makefile (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 & ./Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.csv","../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches