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.001723/0.001723, allocations: 105.7 kB / 16.27 MB, free: 6.414 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.001795/0.001795, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.4/1.4, allocations: 222.9 MB / 240.9 MB, free: 15.27 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.53/2.53, allocations: 437.1 MB / 0.7111 GB, free: 4.441 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 68.33 kB / 0.8699 GB, free: 2.145 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3444, allocations: 151.6 MB / 1.018 GB, free: 10.58 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003331/0.3477, allocations: 1.669 MB / 1.02 GB, free: 8.895 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000872/0.3487, allocations: 456.4 kB / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.809e-05/0.3487, allocations: 3.938 kB / 1.02 GB, free: 8.441 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 4.335e-05/0.3488, allocations: 7.875 kB / 1.02 GB, free: 8.434 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 9.046e-05/0.3489, allocations: 15.84 kB / 1.02 GB, free: 8.418 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001948/0.3491, allocations: 27.91 kB / 1.02 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.3492, allocations: 79.78 kB / 1.02 GB, free: 8.312 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.3494, allocations: 31.97 kB / 1.02 GB, free: 8.281 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.3495, allocations: 35.86 kB / 1.02 GB, free: 8.246 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.682e-05/0.3496, allocations: 31.84 kB / 1.02 GB, free: 8.215 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.402e-05/0.3496, allocations: 8 kB / 1.02 GB, free: 8.207 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.826e-05/0.3496, allocations: 8 kB / 1.02 GB, free: 8.199 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.983e-05/0.3497, allocations: 23.91 kB / 1.02 GB, free: 8.176 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.34e-05/0.3498, allocations: 39.73 kB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.3499, allocations: 87.92 kB / 1.02 GB, free: 8.051 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.3499, allocations: 3.984 kB / 1.02 GB, free: 8.047 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.152e-06/0.3499, allocations: 0 / 1.02 GB, free: 8.047 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.3499, allocations: 0 / 1.02 GB, free: 8.047 MB / 0.795 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.0006164/0.3506, allocations: 383.1 kB / 1.021 GB, free: 7.625 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.3506, allocations: 8.922 kB / 1.021 GB, free: 7.617 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.855e-05/0.3507, allocations: 16.84 kB / 1.021 GB, free: 7.602 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001817/0.3508, allocations: 182.6 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.359e-05/0.3509, allocations: 384 / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.3509, allocations: 4.375 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002312/0.3511, allocations: 95.62 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.3511, allocations: 0 / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.3512, allocations: 0 / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.3512, allocations: 4 kB / 1.021 GB, free: 7.273 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.3513, allocations: 47.97 kB / 1.021 GB, free: 7.227 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005452/0.3519, allocations: 328.6 kB / 1.021 GB, free: 6.855 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001478/0.3521, allocations: 54.55 kB / 1.022 GB, free: 6.793 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.923e-05/0.3522, allocations: 32.88 kB / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/0.3522, allocations: 0 / 1.022 GB, free: 6.758 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.3522, allocations: 34.56 kB / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.3522, allocations: 0 / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0003699/0.3526, allocations: 101.6 kB / 1.022 GB, free: 6.609 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/0.3527, allocations: 85.09 kB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.3528, allocations: 122.1 kB / 1.022 GB, free: 6.375 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.3529, allocations: 33.7 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.861e-05/0.3529, allocations: 96.12 kB / 1.022 GB, free: 6.238 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.124e-05/0.353, allocations: 11.75 kB / 1.022 GB, free: 6.227 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.916e-05/0.353, allocations: 21.7 kB / 1.022 GB, free: 6.199 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001908/0.3532, allocations: 326.8 kB / 1.022 GB, free: 5.871 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.44e-05/0.3533, allocations: 23.98 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.219e-05/0.3534, allocations: 37.7 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001455/0.3536, allocations: 52.77 kB / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3536, allocations: 0 / 1.022 GB, free: 5.75 MB / 0.795 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001955/0.3538, allocations: 81.58 kB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3538, allocations: 4 kB / 1.023 GB, free: 5.66 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.3538, allocations: 7.969 kB / 1.023 GB, free: 5.652 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.3538, allocations: 4.188 kB / 1.023 GB, free: 5.648 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.3539, allocations: 15.98 kB / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.3539, allocations: 0 / 1.023 GB, free: 5.633 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.058e-05/0.354, allocations: 11.98 kB / 1.023 GB, free: 5.621 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.3541, allocations: 3.938 kB / 1.023 GB, free: 5.617 MB / 0.795 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.0001086/0.3542, allocations: 121.8 kB / 1.023 GB, free: 5.488 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.921e-05/0.3542, allocations: 4.094 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.3542, allocations: 24.22 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3542, allocations: 0 / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3543, allocations: 0 / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3543, allocations: 0 / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.3545, allocations: 197.5 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3545, allocations: 0 / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.014e-05/0.3546, allocations: 8 kB / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.3546, allocations: 0 / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.3546, allocations: 3.984 kB / 1.023 GB, free: 5.207 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.3546, allocations: 0 / 1.023 GB, free: 5.207 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3546, allocations: 7.938 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.3549, allocations: 179.4 kB / 1.023 GB, free: 5.008 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.387e-05/0.355, allocations: 85.02 kB / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.355, allocations: 0 / 1.023 GB, free: 4.906 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001122/0.3551, allocations: 11.98 kB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.033e-05/0.3552, allocations: 15.92 kB / 1.023 GB, free: 4.879 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.3552, allocations: 4 kB / 1.023 GB, free: 4.875 MB / 0.795 GB Notification: Performance of sorting global known variables: time 7.343e-05/0.3553, allocations: 105.6 kB / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.3553, allocations: 0 / 1.023 GB, free: 4.773 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000225/0.3555, allocations: 15.94 kB / 1.023 GB, free: 4.758 MB / 0.795 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.0001557/0.3557, allocations: 103.2 kB / 1.023 GB, free: 4.645 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002284/0.3559, allocations: 47.97 kB / 1.023 GB, free: 4.598 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.3559, allocations: 4 kB / 1.023 GB, free: 4.594 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 8.935e-05/0.356, allocations: 31.92 kB / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.3563, allocations: 5.5 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004693/0.3567, allocations: 204.9 kB / 1.024 GB, free: 4.324 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.3571, allocations: 0.6924 MB / 1.024 GB, free: 3.605 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.301e-05/0.3572, allocations: 11.44 kB / 1.024 GB, free: 3.594 MB / 0.795 GB Notification: Performance of SimCode: time 4.2e-07/0.3572, allocations: 0 / 1.024 GB, free: 3.594 MB / 0.795 GB Notification: Performance of Templates: time 0.002924/0.3601, allocations: 1.007 MB / 1.025 GB, free: 2.594 MB / 0.795 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=400 -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