Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001381/0.001381, allocations: 81.95 kB / 20.68 MB, free: 3.82 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.001634/0.001634, allocations: 181 kB / 24.08 MB, free: 424 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.9255/0.9255, allocations: 177.2 MB / 204.5 MB, free: 5.457 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.701/1.701, allocations: 359 MB / 0.6055 GB, free: 10.88 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_11_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_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 0 / 0.7876 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.341e-05/3.546e-05, allocations: 2.312 kB / 0.7876 GB, free: 12.2 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002269/0.002304, allocations: 1.744 MB / 0.7893 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.0006819/0.002986, allocations: 0.5012 MB / 0.7897 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.438e-05/0.00305, allocations: 0 / 0.7897 GB, free: 9.957 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.003078, allocations: 4.719 kB / 0.7897 GB, free: 9.953 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 8.02e-05/0.003158, allocations: 21.05 kB / 0.7898 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.003365, allocations: 47.88 kB / 0.7898 GB, free: 9.887 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.003476, allocations: 79.72 kB / 0.7899 GB, free: 9.809 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 9.148e-05/0.003568, allocations: 29.55 kB / 0.7899 GB, free: 9.777 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.0037, allocations: 55.83 kB / 0.79 GB, free: 9.723 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 5.83e-05/0.003758, allocations: 27.89 kB / 0.79 GB, free: 9.695 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.003776, allocations: 9.062 kB / 0.79 GB, free: 9.688 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 3.909e-05/0.003815, allocations: 12 kB / 0.79 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 1.773e-05/0.003833, allocations: 19.92 kB / 0.79 GB, free: 9.656 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.003854, allocations: 17.44 kB / 0.7901 GB, free: 9.641 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.003971, allocations: 71.72 kB / 0.7901 GB, free: 9.57 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.003975, allocations: 4 kB / 0.7901 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of FrontEnd: time 9.21e-07/0.003976, allocations: 0 / 0.7901 GB, free: 9.566 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 3.747e-06/0.00398, allocations: 1.594 kB / 0.7901 GB, free: 9.566 MB / 0.7448 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.0003534/0.004333, allocations: 416.2 kB / 0.7905 GB, free: 9.125 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.00437, allocations: 12.03 kB / 0.7905 GB, free: 9.113 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.004487, allocations: 26.59 kB / 0.7906 GB, free: 9.09 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.004612, allocations: 150 kB / 0.7907 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-06/0.004619, allocations: 384 / 0.7907 GB, free: 8.918 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.004628, allocations: 6.906 kB / 0.7907 GB, free: 8.914 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001312/0.00476, allocations: 119.9 kB / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.471e-06/0.004765, allocations: 192 / 0.7908 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.004775, allocations: 8.375 kB / 0.7908 GB, free: 8.766 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.004781, allocations: 7.875 kB / 0.7908 GB, free: 8.758 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.829e-05/0.004809, allocations: 8 kB / 0.7909 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002884/0.005098, allocations: 288.9 kB / 0.7911 GB, free: 8.441 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 5.955e-05/0.005157, allocations: 32.72 kB / 0.7912 GB, free: 8.398 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.042e-05/0.005178, allocations: 19.7 kB / 0.7912 GB, free: 8.375 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.005191, allocations: 4 kB / 0.7912 GB, free: 8.371 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.005214, allocations: 38.7 kB / 0.7912 GB, free: 8.324 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.005215, allocations: 0 / 0.7912 GB, free: 8.324 MB / 0.7448 GB Notification: Performance of matching and sorting (n=4): time 0.0001225/0.005338, allocations: 53.67 kB / 0.7913 GB, free: 8.266 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.005373, allocations: 82.27 kB / 0.7913 GB, free: 8.168 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.118e-05/0.005454, allocations: 187.9 kB / 0.7915 GB, free: 7.969 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.005471, allocations: 33.69 kB / 0.7916 GB, free: 7.93 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.429e-05/0.005526, allocations: 146.8 kB / 0.7917 GB, free: 7.781 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/0.005546, allocations: 17.2 kB / 0.7917 GB, free: 7.766 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.005575, allocations: 27.36 kB / 0.7917 GB, free: 7.73 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.005687, allocations: 0.4923 MB / 0.7922 GB, free: 7.227 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.0057, allocations: 5.75 kB / 0.7922 GB, free: 7.223 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.358e-05/0.005734, allocations: 49.06 kB / 0.7923 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.176e-05/0.005766, allocations: 19.81 kB / 0.7923 GB, free: 7.137 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.005768, allocations: 7.938 kB / 0.7923 GB, free: 7.129 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5) (initialization): time 6.57e-05/0.005834, allocations: 61.58 kB / 0.7924 GB, free: 7.062 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.005844, allocations: 4.594 kB / 0.7924 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.005848, allocations: 0.9375 kB / 0.7924 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.005861, allocations: 0 / 0.7924 GB, free: 7.059 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.404e-05/0.005915, allocations: 8 kB / 0.7924 GB, free: 7.051 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.005918, allocations: 5.922 kB / 0.7924 GB, free: 7.047 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.696e-05/0.005945, allocations: 4 kB / 0.7924 GB, free: 7.043 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-06/0.005951, allocations: 4 kB / 0.7924 GB, free: 7.039 MB / 0.7448 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.694e-05/0.006018, allocations: 152.6 kB / 0.7925 GB, free: 6.879 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.787e-05/0.006036, allocations: 18.2 kB / 0.7925 GB, free: 6.863 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.837e-05/0.006065, allocations: 20.31 kB / 0.7926 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.006066, allocations: 0 / 0.7926 GB, free: 6.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-06/0.006068, allocations: 3.938 kB / 0.7926 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.00607, allocations: 0 / 0.7926 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.946e-05/0.006169, allocations: 113.8 kB / 0.7927 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.11e-07/0.00617, allocations: 0 / 0.7927 GB, free: 6.699 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.41e-05/0.006194, allocations: 16.64 kB / 0.7927 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.006195, allocations: 0 / 0.7927 GB, free: 6.684 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.006202, allocations: 8.469 kB / 0.7927 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.81e-07/0.006203, allocations: 1.562 kB / 0.7927 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.006204, allocations: 0 / 0.7927 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.006305, allocations: 199.9 kB / 0.7929 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-06/0.006313, allocations: 3.953 kB / 0.7929 GB, free: 6.457 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.006331, allocations: 12.47 kB / 0.7929 GB, free: 6.445 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.086e-05/0.006372, allocations: 4.906 kB / 0.7929 GB, free: 6.441 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.006406, allocations: 11.97 kB / 0.7929 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.006409, allocations: 0 / 0.7929 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.489e-05/0.006454, allocations: 150.1 kB / 0.7931 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.006454, allocations: 0 / 0.7931 GB, free: 6.285 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001336/0.006587, allocations: 13.25 kB / 0.7931 GB, free: 6.273 MB / 0.7448 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 6.827e-05/0.006656, allocations: 103.2 kB / 0.7932 GB, free: 6.164 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 7.125e-05/0.006727, allocations: 32.23 kB / 0.7932 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.006728, allocations: 0 / 0.7932 GB, free: 6.129 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 2.295e-05/0.006751, allocations: 20.34 kB / 0.7932 GB, free: 6.105 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.006907, allocations: 5.719 kB / 0.7932 GB, free: 6.102 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004133/0.00732, allocations: 191.4 kB / 0.7934 GB, free: 5.883 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.317e-05/0.007353, allocations: 59.34 kB / 0.7935 GB, free: 5.805 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 2.538e-05/0.007378, allocations: 7.469 kB / 0.7935 GB, free: 5.801 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.826e-05/0.007437, allocations: 78.19 kB / 0.7936 GB, free: 5.723 MB / 0.7448 GB Notification: Performance of SimCode: time 6.62e-07/0.007437, allocations: 0 / 0.7936 GB, free: 5.723 MB / 0.7448 GB Notification: Performance of Templates: time 0.002264/0.009702, allocations: 1.022 MB / 0.7946 GB, free: 4.742 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.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.774803953245282]