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) 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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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=5000,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=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001104, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001255/0.001255, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.704/2.704, allocations: 436.5 MB / 0.7104 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005457/0.0005459, allocations: 16 kB / 0.8708 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9517/0.9522, allocations: 153.6 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002152/0.9544, allocations: 1.354 MB / 1.022 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0009708/0.9554, allocations: 427.3 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.382e-05/0.9555, allocations: 4 kB / 1.023 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 5.762e-05/0.9556, allocations: 11.92 kB / 1.023 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.9557, allocations: 7.984 kB / 1.023 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002734/0.956, allocations: 23.95 kB / 1.023 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.9562, allocations: 47.88 kB / 1.023 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002027/0.9564, allocations: 19.98 kB / 1.023 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.9565, allocations: 27.92 kB / 1.023 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001483/0.9567, allocations: 31.83 kB / 1.023 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.8e-05/0.9567, allocations: 4 kB / 1.023 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.835e-05/0.9568, allocations: 0 / 1.023 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.841e-05/0.9568, allocations: 15.92 kB / 1.023 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.081e-05/0.9569, allocations: 37.64 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.957, allocations: 57.86 kB / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.957, allocations: 0 / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.02e-06/0.957, allocations: 0 / 1.023 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.957, allocations: 0 / 1.023 GB, free: 15.02 MB / 0.7794 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.0008393/0.9579, allocations: 383 kB / 1.023 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 7.419e-05/0.958, allocations: 11.98 kB / 1.023 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.257e-05/0.958, allocations: 11.91 kB / 1.023 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002508/0.9583, allocations: 178.9 kB / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.9583, allocations: 0 / 1.023 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.638e-05/0.9584, allocations: 8 kB / 1.023 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.9587, allocations: 99.27 kB / 1.023 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.9587, allocations: 0 / 1.023 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.9587, allocations: 4 kB / 1.023 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.9587, allocations: 4 kB / 1.023 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.9589, allocations: 55.97 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007141/0.9597, allocations: 324.6 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.9599, allocations: 62.55 kB / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 4.43e-05/0.9599, allocations: 0 / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/0.96, allocations: 34.56 kB / 1.024 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 3.667e-06/0.96, allocations: 7.922 kB / 1.024 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.000442/0.9604, allocations: 117.7 kB / 1.024 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/0.9605, allocations: 81.09 kB / 1.024 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.9607, allocations: 128.2 kB / 1.024 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.9607, allocations: 29.7 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.446e-05/0.9608, allocations: 100 kB / 1.024 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.9608, allocations: 7.906 kB / 1.024 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.751e-06/0.9609, allocations: 4 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.961, allocations: 322.8 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.448e-05/0.9611, allocations: 27.98 kB / 1.025 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.169e-05/0.9612, allocations: 45.7 kB / 1.025 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.509e-05/0.9613, allocations: 28.02 kB / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.9613, allocations: 0 / 1.025 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002046/0.9616, allocations: 101.5 kB / 1.025 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.9616, allocations: 4 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.9616, allocations: 4 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.792e-05/0.9616, allocations: 4 kB / 1.025 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.9617, allocations: 11.98 kB / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.9618, allocations: 0 / 1.025 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.069e-05/0.9618, allocations: 15.98 kB / 1.025 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.9619, allocations: 0 / 1.025 GB, free: 12.61 MB / 0.7794 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 ($PRE.chiSwi.hysteresis.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001119/0.962, allocations: 125.7 kB / 1.025 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.136e-05/0.962, allocations: 7.906 kB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.9621, allocations: 12.25 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.9621, allocations: 3.938 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.9621, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.9621, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002099/0.9623, allocations: 197.6 kB / 1.025 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.9623, allocations: 3.938 kB / 1.025 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.955e-05/0.9624, allocations: 11.98 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.9624, allocations: 0 / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.9624, allocations: 4 kB / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.9624, allocations: 0 / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.9624, allocations: 0 / 1.025 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002396/0.9627, allocations: 187.4 kB / 1.025 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.9627, allocations: 93 kB / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.9628, allocations: 0 / 1.026 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.9629, allocations: 15.98 kB / 1.026 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.9629, allocations: 11.98 kB / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.9629, allocations: 192 / 1.026 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.44e-05/0.963, allocations: 98.08 kB / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.963, allocations: 0 / 1.026 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002261/0.9632, allocations: 19.94 kB / 1.026 GB, free: 11.74 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000138/0.9634, allocations: 103.2 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002368/0.9636, allocations: 67.95 kB / 1.026 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.9636, allocations: 0 / 1.026 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.12e-05/0.9637, allocations: 35.98 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002372/0.964, allocations: 0.5625 kB / 1.026 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004216/0.9644, allocations: 206.4 kB / 1.026 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.9647, allocations: 0.7043 MB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.409e-05/0.9647, allocations: 4.312 kB / 1.027 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.628e-05/0.9648, allocations: 11.44 kB / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of SimCode: time 5.61e-07/0.9648, allocations: 0 / 1.027 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of Templates: time 0.00328/0.9681, allocations: 0.7067 MB / 1.027 GB, free: 9.859 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) 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","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches