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.001389/0.001389, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 196 kB / 16.79 MB, free: 6.809 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.351/1.351, allocations: 222.9 MB / 240.5 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.818/2.818, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 70.59 kB / 0.899 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3321/0.3335, allocations: 157.4 MB / 1.053 GB, free: 8.297 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003102/0.3366, allocations: 1.734 MB / 1.054 GB, free: 6.547 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008027/0.3374, allocations: 462.7 kB / 1.055 GB, free: 6.09 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.3375, allocations: 8 kB / 1.055 GB, free: 6.082 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.425e-05/0.3376, allocations: 3.938 kB / 1.055 GB, free: 6.078 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.132e-05/0.3377, allocations: 15.84 kB / 1.055 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001829/0.3379, allocations: 19.98 kB / 1.055 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.338, allocations: 71.78 kB / 1.055 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3382, allocations: 27.98 kB / 1.055 GB, free: 5.945 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.3383, allocations: 39.78 kB / 1.055 GB, free: 5.906 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.382e-05/0.3384, allocations: 27.84 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.204e-05/0.3384, allocations: 4 kB / 1.055 GB, free: 5.875 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.74e-05/0.3385, allocations: 4 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.531e-05/0.3385, allocations: 15.92 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.869e-05/0.3385, allocations: 31.8 kB / 1.055 GB, free: 5.824 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.3386, allocations: 64.11 kB / 1.055 GB, free: 5.762 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3387, allocations: 4 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.092e-06/0.3387, allocations: 0 / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.3387, allocations: 4 kB / 1.055 GB, free: 5.754 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.0005723/0.3393, allocations: 387.2 kB / 1.056 GB, free: 5.328 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3393, allocations: 11.97 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.803e-05/0.3394, allocations: 8.844 kB / 1.056 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.3395, allocations: 176.2 kB / 1.056 GB, free: 5.098 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.3395, allocations: 4.375 kB / 1.056 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.3396, allocations: 4.375 kB / 1.056 GB, free: 5.09 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002252/0.3398, allocations: 107.6 kB / 1.056 GB, free: 4.973 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.3398, allocations: 3.984 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.3398, allocations: 0 / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.369e-06/0.3398, allocations: 0 / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.34, allocations: 47.97 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005192/0.3405, allocations: 336.6 kB / 1.056 GB, free: 4.543 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.3407, allocations: 46.56 kB / 1.056 GB, free: 4.488 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.094e-05/0.3408, allocations: 32.97 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.3408, allocations: 0 / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.3408, allocations: 34.56 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.3408, allocations: 0 / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003499/0.3412, allocations: 105.5 kB / 1.056 GB, free: 4.301 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.3412, allocations: 81.05 kB / 1.057 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.3414, allocations: 127.8 kB / 1.057 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.3414, allocations: 29.7 kB / 1.057 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.3414, allocations: 100.1 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3415, allocations: 15.75 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.3415, allocations: 17.72 kB / 1.057 GB, free: 3.891 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.707e-05/0.3416, allocations: 322.8 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.739e-05/0.3417, allocations: 23.92 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.754e-05/0.3418, allocations: 37.7 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.342, allocations: 52.86 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.342, allocations: 0 / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002056/0.3422, allocations: 89.56 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3422, allocations: 5.562 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3422, allocations: 3.984 kB / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.3422, allocations: 0 / 1.057 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3423, allocations: 12.12 kB / 1.057 GB, free: 3.332 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.3424, allocations: 3.984 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.796e-05/0.3425, allocations: 20 kB / 1.057 GB, free: 3.309 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.3425, allocations: 7.922 kB / 1.057 GB, free: 3.301 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 (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 8.537e-05/0.3426, allocations: 113.8 kB / 1.057 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.3426, allocations: 7.906 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.171e-05/0.3426, allocations: 8.25 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3427, allocations: 4.188 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3427, allocations: 3.938 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.3427, allocations: 3.984 kB / 1.057 GB, free: 3.148 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001799/0.3429, allocations: 189.6 kB / 1.058 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3429, allocations: 4 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-05/0.343, allocations: 11.98 kB / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.343, allocations: 0 / 1.058 GB, free: 2.898 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.343, allocations: 4 kB / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.343, allocations: 0 / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.343, allocations: 0 / 1.058 GB, free: 2.895 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002339/0.3432, allocations: 187.3 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.358e-05/0.3433, allocations: 81.02 kB / 1.058 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.404e-05/0.3433, allocations: 4 kB / 1.058 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.3434, allocations: 7.984 kB / 1.058 GB, free: 2.586 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.141e-05/0.3435, allocations: 19.91 kB / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.952e-06/0.3435, allocations: 0 / 1.058 GB, free: 2.566 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.965e-05/0.3436, allocations: 105.6 kB / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3436, allocations: 0 / 1.058 GB, free: 2.465 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002338/0.3438, allocations: 15.94 kB / 1.058 GB, free: 2.449 MB / 0.8106 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.0001125/0.3439, allocations: 103.2 kB / 1.058 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002137/0.3441, allocations: 55.95 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3442, allocations: 0 / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.581e-05/0.3442, allocations: 27.92 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.3445, allocations: 8 kB / 1.058 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004009/0.3449, allocations: 210.7 kB / 1.058 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.3452, allocations: 0.6887 MB / 1.059 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.729e-05/0.3452, allocations: 15.42 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3452, allocations: 4 kB / 1.059 GB, free: 1.277 MB / 0.8106 GB Notification: Performance of Templates: time 0.002576/0.3478, allocations: 0.9828 MB / 1.06 GB, free: 308 kB / 0.8106 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/jenkins1/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