Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 110.5 kB / 17.6 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002246/0.002246, allocations: 186.7 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 225.6 MB / 249.4 MB, free: 3.148 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.854/2.854, allocations: 496.2 MB / 0.7819 GB, free: 12.26 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 71.88 kB / 1.136 GB, free: 12.43 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9629/0.9648, allocations: 173.6 MB / 1.305 GB, free: 33.42 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002414/0.9672, allocations: 1.696 MB / 1.307 GB, free: 32.25 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0006011/0.9678, allocations: 453.7 kB / 1.308 GB, free: 31.94 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.618e-05/0.9679, allocations: 0 / 1.308 GB, free: 31.94 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 3.361e-05/0.9679, allocations: 7.312 kB / 1.308 GB, free: 31.94 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 7.742e-05/0.968, allocations: 18.62 kB / 1.308 GB, free: 31.92 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.9681, allocations: 32.67 kB / 1.308 GB, free: 31.9 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 8.838e-05/0.9682, allocations: 84.5 kB / 1.308 GB, free: 31.86 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 9.748e-05/0.9683, allocations: 19.31 kB / 1.308 GB, free: 31.85 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.759e-05/0.9684, allocations: 39.97 kB / 1.308 GB, free: 31.83 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 6.885e-05/0.9685, allocations: 37.11 kB / 1.308 GB, free: 31.81 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.9685, allocations: 5.781 kB / 1.308 GB, free: 31.81 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.379e-05/0.9685, allocations: 8.469 kB / 1.308 GB, free: 31.81 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.896e-05/0.9685, allocations: 17.89 kB / 1.308 GB, free: 31.8 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.447e-05/0.9686, allocations: 34.06 kB / 1.308 GB, free: 31.78 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.9687, allocations: 88.09 kB / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.9687, allocations: 0 / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.162e-06/0.9687, allocations: 0 / 1.308 GB, free: 31.74 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.04e-05/0.9687, allocations: 0 / 1.308 GB, free: 31.74 MB / 1.061 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.000437/0.9691, allocations: 399.8 kB / 1.308 GB, free: 31.35 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.9692, allocations: 11.47 kB / 1.308 GB, free: 31.35 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.8e-05/0.9692, allocations: 7.891 kB / 1.308 GB, free: 31.34 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.245e-05/0.9693, allocations: 183.7 kB / 1.308 GB, free: 31.14 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.9693, allocations: 7.406 kB / 1.308 GB, free: 31.13 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.9693, allocations: 7.312 kB / 1.308 GB, free: 31.13 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000177/0.9695, allocations: 92.34 kB / 1.309 GB, free: 31.06 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.9695, allocations: 0 / 1.309 GB, free: 31.06 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.9695, allocations: 7.938 kB / 1.309 GB, free: 31.05 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.9695, allocations: 2.844 kB / 1.309 GB, free: 31.05 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.9697, allocations: 43.44 kB / 1.309 GB, free: 31.05 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003676/0.97, allocations: 329.4 kB / 1.309 GB, free: 30.74 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.9701, allocations: 46.84 kB / 1.309 GB, free: 30.71 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.634e-05/0.9702, allocations: 28.56 kB / 1.309 GB, free: 30.69 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.9702, allocations: 2.812 kB / 1.309 GB, free: 30.69 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.76e-05/0.9702, allocations: 38.5 kB / 1.309 GB, free: 30.64 MB / 1.061 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.9702, allocations: 0 / 1.309 GB, free: 30.64 MB / 1.061 GB Notification: Performance of matching and sorting (n=4): time 0.0002844/0.9705, allocations: 106.8 kB / 1.309 GB, free: 30.59 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.9706, allocations: 80.05 kB / 1.309 GB, free: 30.5 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.98e-05/0.9706, allocations: 126 kB / 1.309 GB, free: 30.38 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.9706, allocations: 28.45 kB / 1.309 GB, free: 30.35 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 3.394e-05/0.9707, allocations: 107.2 kB / 1.309 GB, free: 30.25 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.548e-05/0.9707, allocations: 14.03 kB / 1.309 GB, free: 30.24 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.434e-05/0.9707, allocations: 17.06 kB / 1.309 GB, free: 30.22 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 3.86e-05/0.9708, allocations: 325 kB / 1.31 GB, free: 29.9 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.842e-05/0.9708, allocations: 18.56 kB / 1.31 GB, free: 29.9 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.639e-05/0.9709, allocations: 41.62 kB / 1.31 GB, free: 29.88 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.971, allocations: 50.7 kB / 1.31 GB, free: 29.85 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.971, allocations: 3.938 kB / 1.31 GB, free: 29.85 MB / 1.061 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001581/0.9712, allocations: 83.98 kB / 1.31 GB, free: 29.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.9712, allocations: 7.219 kB / 1.31 GB, free: 29.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.9712, allocations: 3.984 kB / 1.31 GB, free: 29.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.9712, allocations: 6.688 kB / 1.31 GB, free: 29.79 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.173e-05/0.9713, allocations: 8.641 kB / 1.31 GB, free: 29.79 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.9713, allocations: 4 kB / 1.31 GB, free: 29.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.059e-05/0.9714, allocations: 19.14 kB / 1.31 GB, free: 29.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.9714, allocations: 2.938 kB / 1.31 GB, free: 29.78 MB / 1.061 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 5.213e-05/0.9714, allocations: 112.3 kB / 1.31 GB, free: 29.66 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.9715, allocations: 12.64 kB / 1.31 GB, free: 29.66 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.542e-05/0.9715, allocations: 8.25 kB / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.9715, allocations: 0 / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.9715, allocations: 3.062 kB / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.9715, allocations: 7.938 kB / 1.31 GB, free: 29.64 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001306/0.9716, allocations: 196.7 kB / 1.31 GB, free: 29.43 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.9716, allocations: 3.938 kB / 1.31 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.531e-05/0.9717, allocations: 9.203 kB / 1.31 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.9717, allocations: 0 / 1.31 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.9717, allocations: 2.969 kB / 1.31 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.9717, allocations: 0 / 1.31 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.9717, allocations: 0 / 1.31 GB, free: 29.42 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.9719, allocations: 184.2 kB / 1.311 GB, free: 29.27 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.838e-05/0.9719, allocations: 77.11 kB / 1.311 GB, free: 29.18 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.9719, allocations: 2.688 kB / 1.311 GB, free: 29.18 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.996e-05/0.972, allocations: 9.328 kB / 1.311 GB, free: 29.18 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.284e-05/0.9721, allocations: 10.17 kB / 1.311 GB, free: 29.17 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.9721, allocations: 10.3 kB / 1.311 GB, free: 29.17 MB / 1.061 GB Notification: Performance of sorting global known variables: time 3.826e-05/0.9721, allocations: 100.4 kB / 1.311 GB, free: 29.09 MB / 1.061 GB Notification: Performance of sort global known variables: time 7e-08/0.9721, allocations: 3.938 kB / 1.311 GB, free: 29.08 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000222/0.9723, allocations: 23.92 kB / 1.311 GB, free: 29.07 MB / 1.061 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 8.76e-05/0.9724, allocations: 96.72 kB / 1.311 GB, free: 28.98 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002029/0.9726, allocations: 51.77 kB / 1.311 GB, free: 28.97 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.9726, allocations: 0 / 1.311 GB, free: 28.97 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 7.156e-05/0.9727, allocations: 31.95 kB / 1.311 GB, free: 28.96 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002557/0.973, allocations: 9.531 kB / 1.311 GB, free: 28.96 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003216/0.9733, allocations: 189 kB / 1.311 GB, free: 28.8 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.672e-05/0.9734, allocations: 0.6902 MB / 1.312 GB, free: 28.11 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 3.964e-05/0.9734, allocations: 7.406 kB / 1.312 GB, free: 28.1 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.9734, allocations: 10.25 kB / 1.312 GB, free: 28.09 MB / 1.061 GB Notification: Performance of SimCode: time 4.51e-07/0.9734, allocations: 0 / 1.312 GB, free: 28.09 MB / 1.061 GB Notification: Performance of Templates: time 0.002981/0.9764, allocations: 0.8987 MB / 1.313 GB, free: 28 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.899245837703347]