Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001389/0.001389, allocations: 108 kB / 16.41 MB, free: 6.508 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.001396/0.001396, allocations: 189.7 kB / 17.34 MB, free: 5.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.427/2.427, allocations: 437 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 68.11 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9617/0.9632, allocations: 151.6 MB / 1.167 GB, free: 3.809 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003575/0.9668, allocations: 1.668 MB / 1.169 GB, free: 2.125 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009421/0.9678, allocations: 454.9 kB / 1.169 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.764e-05/0.9679, allocations: 3.938 kB / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.086e-05/0.968, allocations: 3.938 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.9681, allocations: 19.8 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.9684, allocations: 27.95 kB / 1.169 GB, free: 1.621 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.9685, allocations: 83.66 kB / 1.169 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.9687, allocations: 35.97 kB / 1.17 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001455/0.9688, allocations: 31.86 kB / 1.17 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 9.704e-05/0.9689, allocations: 31.84 kB / 1.17 GB, free: 1.441 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.969, allocations: 8 kB / 1.17 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 1.643e-05/0.969, allocations: 8 kB / 1.17 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.495e-05/0.969, allocations: 19.92 kB / 1.17 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 5.236e-05/0.9691, allocations: 39.78 kB / 1.17 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.9692, allocations: 87.5 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.9693, allocations: 4 kB / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9693, allocations: 0 / 1.17 GB, free: 1.281 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.9693, allocations: 0 / 1.17 GB, free: 1.281 MB / 0.8887 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.0006669/0.97, allocations: 381 kB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.97, allocations: 8.922 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.167e-05/0.9701, allocations: 8.844 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001768/0.9703, allocations: 184.2 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.874e-05/0.9703, allocations: 8.375 kB / 1.17 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.9703, allocations: 4.375 kB / 1.17 GB, free: 0.6172 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.9705, allocations: 95.62 kB / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.9706, allocations: 4 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.9706, allocations: 0 / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.425e-06/0.9706, allocations: 0 / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.9708, allocations: 55.94 kB / 1.17 GB, free: 464 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005563/0.9713, allocations: 328.6 kB / 1.171 GB, free: 84 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/0.9715, allocations: 54.48 kB / 1.171 GB, free: 20 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.9716, allocations: 33.02 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.9716, allocations: 0 / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.9717, allocations: 34.56 kB / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.9717, allocations: 0 / 1.171 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=4): time 0.0003511/0.972, allocations: 105.6 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.9721, allocations: 85.05 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.9722, allocations: 128.2 kB / 1.171 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.9723, allocations: 29.7 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.333e-05/0.9724, allocations: 100 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.9724, allocations: 7.891 kB / 1.171 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.843e-05/0.9724, allocations: 17.72 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.9726, allocations: 326.8 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.788e-05/0.9726, allocations: 19.98 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.335e-05/0.9727, allocations: 37.7 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.9729, allocations: 56.8 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.9729, allocations: 0 / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001958/0.9731, allocations: 81.58 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.9731, allocations: 8 kB / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.9731, allocations: 0 / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.9731, allocations: 0 / 1.172 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.9733, allocations: 11.98 kB / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.9733, allocations: 0 / 1.172 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.866e-05/0.9734, allocations: 19.92 kB / 1.172 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.9734, allocations: 7.938 kB / 1.172 GB, free: 14.84 MB / 0.9044 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 0.0001073/0.9735, allocations: 113.8 kB / 1.172 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.9735, allocations: 15.83 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.9736, allocations: 8.25 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.9736, allocations: 0 / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.9736, allocations: 4 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.9736, allocations: 192 / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.9738, allocations: 197.5 kB / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-06/0.9738, allocations: 0 / 1.172 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.376e-05/0.9739, allocations: 11.98 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.9739, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.9739, allocations: 4 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.698e-06/0.974, allocations: 7.938 kB / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.974, allocations: 0 / 1.172 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/0.9742, allocations: 183.4 kB / 1.172 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-05/0.9743, allocations: 81.02 kB / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.419e-05/0.9743, allocations: 0 / 1.172 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.9744, allocations: 11.98 kB / 1.172 GB, free: 14.12 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.702e-05/0.9745, allocations: 15.92 kB / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.9745, allocations: 0 / 1.173 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 7.61e-05/0.9746, allocations: 103.2 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.9746, allocations: 4 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002396/0.9749, allocations: 12 kB / 1.173 GB, free: 13.98 MB / 0.9044 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 0.0001466/0.975, allocations: 107.5 kB / 1.173 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002178/0.9752, allocations: 55.91 kB / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.9753, allocations: 0 / 1.173 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.563e-05/0.9753, allocations: 31.92 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002985/0.9756, allocations: 4.547 kB / 1.173 GB, free: 13.78 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000494/0.9762, allocations: 212 kB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002739/0.9764, allocations: 0.6962 MB / 1.174 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.9765, allocations: 7.438 kB / 1.174 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/0.9765, allocations: 0 / 1.174 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of Templates: time 0.002711/0.9792, allocations: 1.01 MB / 1.175 GB, free: 11.81 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches