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.001529/0.001529, allocations: 81.86 kB / 20.68 MB, free: 3.816 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.001924/0.001924, allocations: 181 kB / 24.09 MB, free: 416 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.9643/0.9643, allocations: 177.1 MB / 204.5 MB, free: 5.48 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.828/1.828, allocations: 377.9 MB / 0.624 GB, free: 8.41 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 2.104e-06/2.104e-06, allocations: 0 / 0.812 GB, free: 1.453 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.441e-05/3.651e-05, allocations: 2.312 kB / 0.812 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002604/0.002641, allocations: 1.724 MB / 0.8137 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0007854/0.003426, allocations: 0.5089 MB / 0.8142 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.15e-05/0.003498, allocations: 4 kB / 0.8142 GB, free: 15.21 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.297e-05/0.003531, allocations: 7.875 kB / 0.8142 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.592e-05/0.003616, allocations: 16.67 kB / 0.8142 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002124/0.003829, allocations: 52.64 kB / 0.8143 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.003938, allocations: 83.66 kB / 0.8143 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.668e-05/0.004034, allocations: 25.84 kB / 0.8144 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.004183, allocations: 55.88 kB / 0.8144 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.105e-05/0.004244, allocations: 27.91 kB / 0.8144 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.898e-05/0.004263, allocations: 8 kB / 0.8145 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 5.086e-05/0.004314, allocations: 13.52 kB / 0.8145 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.654e-05/0.004331, allocations: 15.94 kB / 0.8145 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.445e-05/0.004355, allocations: 23.92 kB / 0.8145 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001288/0.004484, allocations: 79.59 kB / 0.8146 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.004487, allocations: 1.75 kB / 0.8146 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of FrontEnd: time 9.22e-07/0.004488, allocations: 0 / 0.8146 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.004492, allocations: 0 / 0.8146 GB, free: 14.81 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.0003583/0.00485, allocations: 416.3 kB / 0.815 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.004888, allocations: 9.062 kB / 0.815 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.005025, allocations: 28.88 kB / 0.815 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.005163, allocations: 141.6 kB / 0.8151 GB, free: 14.17 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.005173, allocations: 8.375 kB / 0.8152 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.899e-06/0.005183, allocations: 5.531 kB / 0.8152 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.005325, allocations: 119.9 kB / 0.8153 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.011e-06/0.005331, allocations: 192 / 0.8153 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.436e-06/0.005339, allocations: 2.875 kB / 0.8153 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.005346, allocations: 7.938 kB / 0.8153 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.9e-05/0.005375, allocations: 7.984 kB / 0.8153 GB, free: 14 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002892/0.005664, allocations: 292.2 kB / 0.8156 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.311e-05/0.005727, allocations: 39.56 kB / 0.8156 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.026e-05/0.005747, allocations: 15.62 kB / 0.8156 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.005764, allocations: 0.7188 kB / 0.8156 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.005789, allocations: 41.52 kB / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 1.774e-06/0.005791, allocations: 0.5312 kB / 0.8157 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of matching and sorting (n=4): time 0.0001305/0.005921, allocations: 63.19 kB / 0.8157 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.203e-05/0.005953, allocations: 77.11 kB / 0.8158 GB, free: 13.41 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.186e-05/0.006035, allocations: 189.9 kB / 0.816 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.006051, allocations: 25.7 kB / 0.816 GB, free: 13.17 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.363e-05/0.006104, allocations: 147.4 kB / 0.8161 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.874e-05/0.006123, allocations: 19.84 kB / 0.8162 GB, free: 13 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.006156, allocations: 28.03 kB / 0.8162 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.006269, allocations: 0.4884 MB / 0.8167 GB, free: 12.47 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.721e-05/0.006286, allocations: 8.672 kB / 0.8167 GB, free: 12.46 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.705e-05/0.006324, allocations: 53.92 kB / 0.8167 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.516e-05/0.006359, allocations: 19.67 kB / 0.8167 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.00636, allocations: 0 / 0.8167 GB, free: 12.37 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5) (initialization): time 7.329e-05/0.006434, allocations: 58.97 kB / 0.8168 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.006448, allocations: 10.33 kB / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.006454, allocations: 0 / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.397e-06/0.006463, allocations: 0.8125 kB / 0.8168 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.275e-05/0.006526, allocations: 8 kB / 0.8168 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.567e-06/0.006529, allocations: 4.875 kB / 0.8168 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.006e-05/0.006559, allocations: 11.98 kB / 0.8168 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.006564, allocations: 192 / 0.8168 GB, free: 12.28 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 7.327e-05/0.006637, allocations: 161.8 kB / 0.817 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.968e-05/0.006656, allocations: 11.89 kB / 0.817 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.467e-05/0.006681, allocations: 13.19 kB / 0.817 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.006684, allocations: 3.984 kB / 0.817 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.006686, allocations: 2.219 kB / 0.817 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.006688, allocations: 0 / 0.817 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.006792, allocations: 113.2 kB / 0.8171 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.006794, allocations: 0 / 0.8171 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-05/0.006824, allocations: 7.984 kB / 0.8171 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.006827, allocations: 4 kB / 0.8171 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.006834, allocations: 7 kB / 0.8171 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.01e-07/0.006834, allocations: 0 / 0.8171 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.006835, allocations: 0 / 0.8171 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.006957, allocations: 203.8 kB / 0.8173 GB, free: 11.71 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.2e-05/0.006969, allocations: 11.94 kB / 0.8174 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.006984, allocations: 3.938 kB / 0.8174 GB, free: 11.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.221e-05/0.007026, allocations: 11.94 kB / 0.8174 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.007062, allocations: 7.984 kB / 0.8174 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.007066, allocations: 5.297 kB / 0.8174 GB, free: 11.67 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.947e-05/0.007116, allocations: 135.2 kB / 0.8175 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.007116, allocations: 0 / 0.8175 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001353/0.007251, allocations: 19.94 kB / 0.8175 GB, free: 11.52 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 9.836e-05/0.00735, allocations: 96.44 kB / 0.8176 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8e-05/0.00743, allocations: 33.08 kB / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.007431, allocations: 0 / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.254e-05/0.007454, allocations: 27.59 kB / 0.8177 GB, free: 11.35 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001735/0.007627, allocations: 5.094 kB / 0.8177 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004629/0.00809, allocations: 184 kB / 0.8179 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.753e-05/0.008128, allocations: 63.34 kB / 0.8179 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.79e-05/0.008156, allocations: 1.188 kB / 0.8179 GB, free: 11.05 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.586e-05/0.008222, allocations: 82.19 kB / 0.818 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of SimCode: time 7.92e-07/0.008222, allocations: 1.031 kB / 0.818 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of Templates: time 0.002516/0.01074, allocations: 1.015 MB / 0.819 GB, free: 9.996 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.916896560229361]