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.0009672/0.0009676, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001156/0.001156, allocations: 172.7 kB / 15.95 MB, free: 208 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.579/1.579, allocations: 223.3 MB / 240 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.067/3.067, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003907/0.0003909, allocations: 9.25 kB / 0.9021 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.3993, allocations: 159.6 MB / 1.058 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002363/0.4017, allocations: 1.368 MB / 1.059 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008643/0.4026, allocations: 419.2 kB / 1.06 GB, free: 3.52 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.766e-05/0.4027, allocations: 4 kB / 1.06 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.654e-05/0.4027, allocations: 7.922 kB / 1.06 GB, free: 3.508 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000102/0.4029, allocations: 11.88 kB / 1.06 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002254/0.4031, allocations: 31.95 kB / 1.06 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000149/0.4032, allocations: 71.72 kB / 1.06 GB, free: 3.395 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001342/0.4034, allocations: 19.98 kB / 1.06 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.4035, allocations: 27.86 kB / 1.06 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.59e-05/0.4036, allocations: 27.84 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.4037, allocations: 7.938 kB / 1.06 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.426e-05/0.4037, allocations: 4 kB / 1.06 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.052e-05/0.4037, allocations: 7.984 kB / 1.06 GB, free: 3.301 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.4038, allocations: 37.64 kB / 1.06 GB, free: 3.258 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000124/0.4039, allocations: 64.08 kB / 1.06 GB, free: 3.195 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4039, allocations: 4 kB / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.964e-06/0.4039, allocations: 0 / 1.06 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.4039, allocations: 0 / 1.06 GB, free: 3.191 MB / 0.8106 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.0006065/0.4045, allocations: 375.1 kB / 1.06 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.4046, allocations: 8.031 kB / 1.06 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.005e-05/0.4046, allocations: 11.91 kB / 1.06 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001649/0.4048, allocations: 178.9 kB / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.4048, allocations: 0 / 1.061 GB, free: 2.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.4048, allocations: 7.953 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002567/0.4051, allocations: 99.36 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.4051, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.4052, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.4052, allocations: 7.938 kB / 1.061 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.4054, allocations: 55.91 kB / 1.061 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000597/0.406, allocations: 336.6 kB / 1.061 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.4061, allocations: 54.59 kB / 1.061 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.48e-05/0.4062, allocations: 36.94 kB / 1.061 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.12e-05/0.4062, allocations: 0 / 1.061 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.4063, allocations: 30.56 kB / 1.061 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.4063, allocations: 0 / 1.061 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003654/0.4067, allocations: 113.6 kB / 1.061 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.4067, allocations: 81.05 kB / 1.061 GB, free: 1.629 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.4069, allocations: 128.5 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.4069, allocations: 29.7 kB / 1.062 GB, free: 1.457 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/0.407, allocations: 100 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.232e-05/0.407, allocations: 19.75 kB / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-06/0.407, allocations: 0 / 1.062 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001449/0.4072, allocations: 322.8 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.247e-05/0.4072, allocations: 27.98 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.878e-05/0.4073, allocations: 41.7 kB / 1.062 GB, free: 0.9375 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.009e-05/0.4074, allocations: 31.95 kB / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.4074, allocations: 0 / 1.062 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000213/0.4077, allocations: 93.7 kB / 1.062 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.4077, allocations: 8 kB / 1.062 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4077, allocations: 4 kB / 1.062 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.4077, allocations: 3.938 kB / 1.062 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.4078, allocations: 15.98 kB / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.4079, allocations: 0 / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.157e-05/0.4079, allocations: 15.98 kB / 1.062 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.408, allocations: 0 / 1.062 GB, free: 0.7617 MB / 0.8106 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.0001173/0.4081, allocations: 122 kB / 1.062 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.785e-05/0.4081, allocations: 15.88 kB / 1.062 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.698e-05/0.4082, allocations: 12.25 kB / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4082, allocations: 0 / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4082, allocations: 0 / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.4082, allocations: 0 / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002189/0.4084, allocations: 197.6 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.4084, allocations: 0 / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.26e-05/0.4085, allocations: 15.92 kB / 1.063 GB, free: 352 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.4085, allocations: 4 kB / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.308e-06/0.4085, allocations: 0 / 1.063 GB, free: 348 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.4086, allocations: 4 kB / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4086, allocations: 0 / 1.063 GB, free: 344 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002615/0.4088, allocations: 187.4 kB / 1.063 GB, free: 140 kB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.4089, allocations: 89.02 kB / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.4089, allocations: 0 / 1.063 GB, free: 32 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.409, allocations: 15.98 kB / 1.063 GB, free: 16 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.986e-05/0.4091, allocations: 11.98 kB / 1.063 GB, free: 4 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.4091, allocations: 3.984 kB / 1.063 GB, free: 0 / 0.8106 GB Notification: Performance of sorting global known variables: time 9.462e-05/0.4092, allocations: 95.27 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4092, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002411/0.4095, allocations: 27.84 kB / 1.063 GB, free: 15.88 MB / 0.8262 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.0001199/0.4096, allocations: 99.25 kB / 1.063 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.4098, allocations: 59.91 kB / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4098, allocations: 0 / 1.063 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.838e-05/0.4099, allocations: 35.97 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.4102, allocations: 15.72 kB / 1.063 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004016/0.4107, allocations: 194.6 kB / 1.063 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.4109, allocations: 0.6926 MB / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.644e-05/0.411, allocations: 0 / 1.064 GB, free: 14.73 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.411, allocations: 19.36 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of SimCode: time 2.484e-06/0.411, allocations: 0 / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of Templates: time 0.00348/0.4145, allocations: 0.7205 MB / 1.065 GB, free: 14.01 MB / 0.8262 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","/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) Reference file matches