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.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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.00157/0.00157, allocations: 108.2 kB / 15.99 MB, free: 6.359 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.001542/0.001542, allocations: 196.3 kB / 16.91 MB, free: 6.199 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.454/1.454, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.733/2.733, allocations: 469.8 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 67.67 kB / 0.9087 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3684, allocations: 159.1 MB / 1.064 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003334/0.3717, allocations: 1.734 MB / 1.066 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007824/0.3726, allocations: 447 kB / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.747e-05/0.3726, allocations: 0 / 1.066 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 4.138e-05/0.3727, allocations: 7.922 kB / 1.066 GB, free: 12.92 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 7.659e-05/0.3727, allocations: 7.875 kB / 1.066 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.3729, allocations: 31.97 kB / 1.066 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001344/0.3731, allocations: 75.78 kB / 1.066 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3732, allocations: 23.98 kB / 1.066 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.3733, allocations: 39.78 kB / 1.066 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 7.925e-05/0.3734, allocations: 39.83 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.3734, allocations: 8 kB / 1.066 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 1.829e-05/0.3735, allocations: 12 kB / 1.066 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 2.299e-05/0.3735, allocations: 11.94 kB / 1.067 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 4.858e-05/0.3736, allocations: 35.8 kB / 1.067 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.3737, allocations: 68.11 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3737, allocations: 0 / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3737, allocations: 0 / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.307e-06/0.3737, allocations: 0 / 1.067 GB, free: 12.57 MB / 0.8419 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.0006038/0.3743, allocations: 389 kB / 1.067 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3744, allocations: 12.03 kB / 1.067 GB, free: 12.13 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.216e-05/0.3744, allocations: 12.84 kB / 1.067 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.3746, allocations: 180.2 kB / 1.067 GB, free: 11.91 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.3746, allocations: 8.312 kB / 1.067 GB, free: 11.9 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.931e-05/0.3746, allocations: 4.375 kB / 1.067 GB, free: 11.89 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.3749, allocations: 91.69 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.3749, allocations: 0 / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.3749, allocations: 4 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3749, allocations: 4 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.3751, allocations: 51.91 kB / 1.067 GB, free: 11.73 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.3756, allocations: 328.7 kB / 1.068 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.3758, allocations: 54.69 kB / 1.068 GB, free: 11.3 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.271e-05/0.3759, allocations: 32.83 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.3759, allocations: 4 kB / 1.068 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.376, allocations: 30.56 kB / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 3.737e-06/0.376, allocations: 0 / 1.068 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0003493/0.3763, allocations: 105.7 kB / 1.068 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.3764, allocations: 77.11 kB / 1.068 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.3765, allocations: 127.7 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.3765, allocations: 33.7 kB / 1.068 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.3766, allocations: 100 kB / 1.068 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.3767, allocations: 11.78 kB / 1.068 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-05/0.3767, allocations: 21.7 kB / 1.068 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.3769, allocations: 322.8 kB / 1.069 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.09e-05/0.3769, allocations: 27.97 kB / 1.069 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.292e-05/0.377, allocations: 37.7 kB / 1.069 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001349/0.3772, allocations: 48.83 kB / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3772, allocations: 128 / 1.069 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002014/0.3774, allocations: 93.59 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.3774, allocations: 4 kB / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.3774, allocations: 0 / 1.069 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.3774, allocations: 4 kB / 1.069 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3775, allocations: 11.92 kB / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.3776, allocations: 0 / 1.069 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.59e-05/0.3776, allocations: 15.98 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.3777, allocations: 7.938 kB / 1.069 GB, free: 10.12 MB / 0.8419 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.0001013/0.3778, allocations: 117.8 kB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.932e-05/0.3778, allocations: 11.84 kB / 1.069 GB, free: 9.98 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.615e-05/0.3778, allocations: 12.23 kB / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3779, allocations: 0 / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.3779, allocations: 0 / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3779, allocations: 0 / 1.069 GB, free: 9.961 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002125/0.3781, allocations: 189.6 kB / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3781, allocations: 0 / 1.069 GB, free: 9.727 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.875e-05/0.3782, allocations: 8 kB / 1.069 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3782, allocations: 0 / 1.069 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.3782, allocations: 7.984 kB / 1.069 GB, free: 9.711 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.3782, allocations: 4 kB / 1.069 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3782, allocations: 0 / 1.069 GB, free: 9.707 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000239/0.3785, allocations: 183.3 kB / 1.069 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.457e-05/0.3785, allocations: 85.02 kB / 1.069 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.3785, allocations: 0 / 1.069 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3787, allocations: 15.92 kB / 1.069 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.421e-05/0.3787, allocations: 15.98 kB / 1.069 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.119e-06/0.3787, allocations: 0 / 1.069 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 7.089e-05/0.3788, allocations: 100.8 kB / 1.069 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3788, allocations: 0 / 1.069 GB, free: 9.281 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002228/0.379, allocations: 19.94 kB / 1.07 GB, free: 9.262 MB / 0.8419 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.0001228/0.3792, allocations: 103.2 kB / 1.07 GB, free: 9.152 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002147/0.3794, allocations: 51.91 kB / 1.07 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3794, allocations: 4 kB / 1.07 GB, free: 9.098 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.273e-05/0.3795, allocations: 31.98 kB / 1.07 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.3798, allocations: 192 / 1.07 GB, free: 9.066 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004331/0.3802, allocations: 225 kB / 1.07 GB, free: 8.812 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.3805, allocations: 0.6922 MB / 1.071 GB, free: 8.094 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.3806, allocations: 11.44 kB / 1.071 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.3806, allocations: 3.938 kB / 1.071 GB, free: 8.082 MB / 0.8419 GB Notification: Performance of Templates: time 0.002688/0.3833, allocations: 1.003 MB / 1.072 GB, free: 7.086 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (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=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches