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: 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.001722/0.001722, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001816/0.001816, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.49/1.49, 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 9.1.3-maint.9.1.x/package.mo): time 2.379/2.379, allocations: 390.3 MB / 0.6655 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.89 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.126/1.127, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat): time 0.003445/1.131, allocations: 2.04 MB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001282/1.132, allocations: 0.7019 MB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/1.132, allocations: 4.188 kB / 1.091 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001608/1.132, allocations: 32.45 kB / 1.091 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000109/1.132, allocations: 40.72 kB / 1.091 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004888/1.133, allocations: 161.7 kB / 1.092 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004771/1.133, allocations: 399.4 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004394/1.134, allocations: 248.6 kB / 1.092 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/1.134, allocations: 134 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/1.134, allocations: 150.2 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.244e-05/1.134, allocations: 37.75 kB / 1.092 GB, free: 2.973 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/1.135, allocations: 47.06 kB / 1.092 GB, free: 2.969 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.283e-05/1.135, allocations: 82.59 kB / 1.093 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001438/1.135, allocations: 154.1 kB / 1.093 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005635/1.135, allocations: 424.1 kB / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/1.135, allocations: 0 / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.793e-06/1.135, allocations: 0 / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.037e-06/1.135, allocations: 0 / 1.093 GB, free: 2.629 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.0008877/1.136, allocations: 0.5681 MB / 1.094 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/1.136, allocations: 9.781 kB / 1.094 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.614e-05/1.136, allocations: 33.09 kB / 1.094 GB, free: 2.129 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/1.137, allocations: 282.5 kB / 1.094 GB, free: 1.863 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/1.137, allocations: 27.11 kB / 1.094 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.059e-05/1.137, allocations: 28.25 kB / 1.094 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/1.138, allocations: 319 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/1.138, allocations: 0.6094 kB / 1.094 GB, free: 1.691 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/1.138, allocations: 11.06 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.365e-05/1.138, allocations: 7.297 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005277/1.138, allocations: 237.5 kB / 1.095 GB, free: 1.598 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/1.14, allocations: 0.9251 MB / 1.095 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000567/1.14, allocations: 237.4 kB / 1.096 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00026/1.141, allocations: 125.3 kB / 1.096 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/1.141, allocations: 6.672 kB / 1.096 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/1.141, allocations: 167.2 kB / 1.096 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=30): time 1.603e-06/1.141, allocations: 0 / 1.096 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30): time 0.0008259/1.142, allocations: 323.9 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.116e-05/1.142, allocations: 60.77 kB / 1.096 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/1.142, allocations: 201 kB / 1.097 GB, free: 392 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/1.142, allocations: 39.36 kB / 1.097 GB, free: 352 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/1.142, allocations: 157.9 kB / 1.097 GB, free: 212 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.693e-05/1.142, allocations: 80.41 kB / 1.097 GB, free: 148 kB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/1.142, allocations: 79 kB / 1.097 GB, free: 104 kB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001659/1.143, allocations: 332.3 kB / 1.097 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002343/1.143, allocations: 97.89 kB / 1.097 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002956/1.143, allocations: 153.5 kB / 1.097 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004495/1.144, allocations: 217.6 kB / 1.098 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/1.144, allocations: 1.062 kB / 1.098 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000637/1.144, allocations: 312.4 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/1.144, allocations: 9.219 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/1.144, allocations: 2.844 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/1.144, allocations: 2.25 kB / 1.098 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/1.145, allocations: 42.97 kB / 1.098 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/1.145, allocations: 2.156 kB / 1.098 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/1.145, allocations: 50.02 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.086e-05/1.145, allocations: 14.75 kB / 1.098 GB, free: 15.34 MB / 0.8731 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.0002012/1.145, allocations: 178.5 kB / 1.098 GB, free: 15.19 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.387e-05/1.145, allocations: 21.41 kB / 1.098 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000637/1.146, allocations: 285.8 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/1.146, allocations: 2.719 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-06/1.146, allocations: 1.703 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/1.146, allocations: 1.312 kB / 1.099 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/1.147, allocations: 0.7263 MB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/1.147, allocations: 0.9375 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/1.147, allocations: 25.5 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/1.147, allocations: 1.125 kB / 1.099 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/1.147, allocations: 7.312 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/1.147, allocations: 3.109 kB / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/1.147, allocations: 0 / 1.099 GB, free: 14.56 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005572/1.148, allocations: 361.8 kB / 1.1 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.369e-05/1.148, allocations: 100.9 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.81e-05/1.148, allocations: 6.594 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002084/1.148, allocations: 25.75 kB / 1.1 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001254/1.148, allocations: 43.42 kB / 1.1 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/1.148, allocations: 11.41 kB / 1.1 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001256/1.148, allocations: 137.8 kB / 1.1 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.883e-06/1.148, allocations: 0 / 1.1 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003419/1.149, allocations: 67.23 kB / 1.1 GB, free: 14.09 MB / 0.8731 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.0002129/1.149, allocations: 117 kB / 1.1 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005783/1.15, allocations: 261.2 kB / 1.1 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/1.15, allocations: 4.062 kB / 1.1 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002614/1.15, allocations: 126.2 kB / 1.1 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/1.15, allocations: 39.39 kB / 1.101 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009755/1.151, allocations: 487.6 kB / 1.101 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/1.152, allocations: 0.7571 MB / 1.102 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/1.152, allocations: 31.53 kB / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/1.152, allocations: 0 / 1.102 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of Templates: time 0.007453/1.159, allocations: 3.417 MB / 1.105 GB, free: 12.43 MB / 0.8731 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","/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