Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 71.75 kB / 20.97 MB, free: 3.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 169 kB / 24.28 MB, free: 280 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9283/0.9283, allocations: 177.2 MB / 204.6 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.827/1.827, allocations: 377.8 MB / 0.6239 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.032e-06/1.032e-06, allocations: 1.094 kB / 0.8115 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.261e-05/1.365e-05, allocations: 2.312 kB / 0.8115 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001868/0.001882, allocations: 1.754 MB / 0.8132 GB, free: 340 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0005953/0.002477, allocations: 0.4963 MB / 0.8137 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.995e-05/0.002527, allocations: 5.125 kB / 0.8137 GB, free: 15.83 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.119e-05/0.002548, allocations: 3.938 kB / 0.8137 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 7.237e-05/0.002621, allocations: 21.27 kB / 0.8137 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.002782, allocations: 47.88 kB / 0.8138 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001032/0.002886, allocations: 83.66 kB / 0.8139 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 7.468e-05/0.00296, allocations: 29.67 kB / 0.8139 GB, free: 15.64 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.003067, allocations: 55.83 kB / 0.814 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 5.033e-05/0.003117, allocations: 35.89 kB / 0.814 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.00313, allocations: 4.562 kB / 0.814 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 3.146e-05/0.003162, allocations: 12 kB / 0.814 GB, free: 15.54 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.003175, allocations: 17.08 kB / 0.814 GB, free: 15.52 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.542e-05/0.003201, allocations: 27.97 kB / 0.814 GB, free: 15.5 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.003303, allocations: 67.62 kB / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.003304, allocations: 1.406 kB / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of FrontEnd: time 5.01e-07/0.003305, allocations: 0 / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.986e-06/0.003308, allocations: 0 / 0.8141 GB, free: 15.43 MB / 0.7761 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003414/0.003649, allocations: 416.9 kB / 0.8145 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.038e-05/0.00368, allocations: 9.094 kB / 0.8145 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.003812, allocations: 28.88 kB / 0.8145 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.003956, allocations: 153 kB / 0.8147 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.384e-06/0.003964, allocations: 384 / 0.8147 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.003975, allocations: 9.094 kB / 0.8147 GB, free: 14.77 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001394/0.004115, allocations: 117.3 kB / 0.8148 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.004121, allocations: 192 / 0.8148 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.004133, allocations: 4.375 kB / 0.8148 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.004139, allocations: 7.938 kB / 0.8148 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.169e-05/0.004181, allocations: 17.77 kB / 0.8148 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002771/0.004458, allocations: 303.7 kB / 0.8151 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 8.3e-05/0.004541, allocations: 48.36 kB / 0.8152 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.589e-05/0.004567, allocations: 11.69 kB / 0.8152 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/0.00458, allocations: 7.984 kB / 0.8152 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.004601, allocations: 37.39 kB / 0.8152 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.004602, allocations: 3.438 kB / 0.8152 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of matching and sorting (n=4): time 0.000146/0.004748, allocations: 61.72 kB / 0.8153 GB, free: 14.08 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.33e-05/0.004781, allocations: 81.05 kB / 0.8154 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.455e-05/0.004866, allocations: 185.9 kB / 0.8155 GB, free: 13.78 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.004881, allocations: 29.7 kB / 0.8156 GB, free: 13.75 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.801e-05/0.004929, allocations: 146.8 kB / 0.8157 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.004944, allocations: 15.84 kB / 0.8157 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.004977, allocations: 27.36 kB / 0.8158 GB, free: 13.55 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.005073, allocations: 0.4884 MB / 0.8162 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.07e-05/0.005094, allocations: 8.766 kB / 0.8162 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.604e-05/0.00513, allocations: 49.08 kB / 0.8163 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.901e-05/0.005169, allocations: 28.17 kB / 0.8163 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.005171, allocations: 4.5 kB / 0.8163 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5) (initialization): time 7.002e-05/0.005241, allocations: 57.58 kB / 0.8164 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.005253, allocations: 13.91 kB / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.936e-06/0.005256, allocations: 1.312 kB / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.035e-06/0.005264, allocations: 0 / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.281e-05/0.005317, allocations: 4 kB / 0.8164 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.005321, allocations: 4.625 kB / 0.8164 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.942e-05/0.00535, allocations: 8.172 kB / 0.8164 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.005356, allocations: 4.594 kB / 0.8164 GB, free: 12.85 MB / 0.7761 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 6.716e-05/0.005423, allocations: 166.5 kB / 0.8166 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/0.005442, allocations: 7.953 kB / 0.8166 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.021e-05/0.005462, allocations: 16.33 kB / 0.8166 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.005463, allocations: 0 / 0.8166 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.005466, allocations: 0 / 0.8166 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.005469, allocations: 0.5312 kB / 0.8166 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.675e-05/0.005566, allocations: 137.3 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.005568, allocations: 3.938 kB / 0.8167 GB, free: 12.48 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.509e-05/0.005593, allocations: 8.812 kB / 0.8167 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.005595, allocations: 0 / 0.8167 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.005601, allocations: 4.922 kB / 0.8167 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.005602, allocations: 3.938 kB / 0.8167 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.005603, allocations: 0 / 0.8167 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.005704, allocations: 201.2 kB / 0.8169 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.217e-06/0.005713, allocations: 7.891 kB / 0.8169 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.00573, allocations: 4 kB / 0.8169 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.397e-05/0.005774, allocations: 12.95 kB / 0.817 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.005807, allocations: 7.984 kB / 0.817 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-06/0.00581, allocations: 0 / 0.817 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.532e-05/0.005856, allocations: 147.7 kB / 0.8171 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.005856, allocations: 0 / 0.8171 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001422/0.005998, allocations: 19.94 kB / 0.8171 GB, free: 12.06 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 5.86e-05/0.006057, allocations: 95.25 kB / 0.8172 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.932e-05/0.006136, allocations: 35.61 kB / 0.8173 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.006137, allocations: 1.031 kB / 0.8173 GB, free: 11.91 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.631e-05/0.006163, allocations: 19.67 kB / 0.8173 GB, free: 11.89 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.006314, allocations: 13.03 kB / 0.8173 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004613/0.006775, allocations: 180.1 kB / 0.8175 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.246e-05/0.006808, allocations: 64.28 kB / 0.8175 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.726e-05/0.006835, allocations: 8.516 kB / 0.8175 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.006867, allocations: 16.5 kB / 0.8175 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of SimCode: time 7.71e-07/0.006867, allocations: 0.5 kB / 0.8175 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of Templates: time 0.002042/0.00891, allocations: 0.941 MB / 0.8185 GB, free: 10.68 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8590699441265315]