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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.01051/0.01051, allocations: 94.77 kB / 15.73 MB, free: 6.039 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.002044/0.002044, allocations: 198.2 kB / 16.68 MB, free: 5.969 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.501/1.501, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.903/2.903, allocations: 472.6 MB / 0.7453 GB, free: 4.582 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 64.11 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3612, allocations: 159.9 MB / 1.226 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002705/0.3639, allocations: 1.661 MB / 1.227 GB, free: 7.531 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007312/0.3647, allocations: 458.7 kB / 1.228 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.573e-05/0.3647, allocations: 0 / 1.228 GB, free: 7.078 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.843e-05/0.3648, allocations: 11.92 kB / 1.228 GB, free: 7.066 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.858e-05/0.3649, allocations: 15.8 kB / 1.228 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.3651, allocations: 23.97 kB / 1.228 GB, free: 7.027 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001125/0.3652, allocations: 87.72 kB / 1.228 GB, free: 6.941 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3653, allocations: 35.95 kB / 1.228 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.3654, allocations: 35.84 kB / 1.228 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 8.555e-05/0.3655, allocations: 35.84 kB / 1.228 GB, free: 6.836 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.3656, allocations: 4 kB / 1.228 GB, free: 6.832 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 2.005e-05/0.3656, allocations: 8 kB / 1.228 GB, free: 6.824 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.802e-05/0.3656, allocations: 15.94 kB / 1.228 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 4.577e-05/0.3657, allocations: 43.78 kB / 1.228 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001341/0.3658, allocations: 79.7 kB / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3658, allocations: 0 / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3658, allocations: 0 / 1.228 GB, free: 6.688 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.3658, allocations: 0 / 1.228 GB, free: 6.688 MB / 0.9825 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.0004986/0.3663, allocations: 403 kB / 1.228 GB, free: 6.246 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.113e-05/0.3664, allocations: 8.031 kB / 1.228 GB, free: 6.238 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.31e-05/0.3665, allocations: 16.83 kB / 1.228 GB, free: 6.223 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.3666, allocations: 179.2 kB / 1.229 GB, free: 6.012 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.3666, allocations: 8.375 kB / 1.229 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.3666, allocations: 4.375 kB / 1.229 GB, free: 6 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001981/0.3668, allocations: 99.61 kB / 1.229 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3668, allocations: 0 / 1.229 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.3669, allocations: 0 / 1.229 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.3669, allocations: 0 / 1.229 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.367, allocations: 51.97 kB / 1.229 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005139/0.3675, allocations: 328.7 kB / 1.229 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.3677, allocations: 46.56 kB / 1.229 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.624e-05/0.3678, allocations: 32.88 kB / 1.229 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.3678, allocations: 4 kB / 1.229 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.3678, allocations: 34.55 kB / 1.229 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.3678, allocations: 0 / 1.229 GB, free: 5.332 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4): time 0.0003215/0.3682, allocations: 109.6 kB / 1.229 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.3682, allocations: 77.11 kB / 1.229 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3683, allocations: 134 kB / 1.23 GB, free: 4.98 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.3684, allocations: 29.7 kB / 1.23 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 5.501e-05/0.3684, allocations: 104.1 kB / 1.23 GB, free: 4.84 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.3685, allocations: 7.906 kB / 1.23 GB, free: 4.832 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.155e-05/0.3685, allocations: 25.7 kB / 1.23 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001013/0.3686, allocations: 318.8 kB / 1.23 GB, free: 4.48 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.859e-05/0.3687, allocations: 23.98 kB / 1.23 GB, free: 4.457 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.717e-05/0.3688, allocations: 37.69 kB / 1.23 GB, free: 4.414 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.3689, allocations: 48.88 kB / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3689, allocations: 0 / 1.23 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000185/0.3691, allocations: 93.55 kB / 1.23 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.3691, allocations: 9.406 kB / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.3691, allocations: 0 / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.3692, allocations: 0 / 1.23 GB, free: 4.258 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.3693, allocations: 11.98 kB / 1.23 GB, free: 4.246 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.009e-06/0.3693, allocations: 4 kB / 1.23 GB, free: 4.242 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.403e-05/0.3694, allocations: 15.92 kB / 1.23 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.3694, allocations: 3.938 kB / 1.23 GB, free: 4.223 MB / 0.9825 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 7.828e-05/0.3695, allocations: 114.6 kB / 1.23 GB, free: 4.102 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.3695, allocations: 11.89 kB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.3695, allocations: 12.25 kB / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3695, allocations: 4 kB / 1.23 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3695, allocations: 0 / 1.23 GB, free: 4.066 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.957e-05/0.3696, allocations: 7.984 kB / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.3698, allocations: 189.6 kB / 1.231 GB, free: 3.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3698, allocations: 7.938 kB / 1.231 GB, free: 3.816 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-05/0.3699, allocations: 7.984 kB / 1.231 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3699, allocations: 0 / 1.231 GB, free: 3.809 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.3699, allocations: 4 kB / 1.231 GB, free: 3.805 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3699, allocations: 3.984 kB / 1.231 GB, free: 3.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3699, allocations: 3.984 kB / 1.231 GB, free: 3.797 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.3701, allocations: 179.4 kB / 1.231 GB, free: 3.605 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.08e-05/0.3702, allocations: 85.05 kB / 1.231 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.3702, allocations: 0 / 1.231 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.3703, allocations: 11.98 kB / 1.231 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.81e-05/0.3704, allocations: 11.98 kB / 1.231 GB, free: 3.48 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.3704, allocations: 3.938 kB / 1.231 GB, free: 3.477 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.639e-05/0.3705, allocations: 107.2 kB / 1.231 GB, free: 3.371 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3705, allocations: 4 kB / 1.231 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002201/0.3707, allocations: 8 kB / 1.231 GB, free: 3.359 MB / 0.9825 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.0001112/0.3708, allocations: 103.2 kB / 1.231 GB, free: 3.25 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002073/0.371, allocations: 55.95 kB / 1.231 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.371, allocations: 0 / 1.231 GB, free: 3.195 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.3711, allocations: 27.98 kB / 1.231 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.3714, allocations: 4 kB / 1.231 GB, free: 3.164 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.3718, allocations: 189.5 kB / 1.231 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.372, allocations: 0.6885 MB / 1.232 GB, free: 2.238 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.219e-05/0.3721, allocations: 12.55 kB / 1.232 GB, free: 2.227 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.3721, allocations: 7.438 kB / 1.232 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of SimCode: time 1.9e-07/0.3721, allocations: 0 / 1.232 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of Templates: time 0.002872/0.375, allocations: 0.8826 MB / 1.233 GB, free: 1.352 MB / 0.9825 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