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.001748/0.001748, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001979/0.001979, allocations: 189.1 kB / 16.25 MB, free: 6.152 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.485/1.485, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.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.715/2.715, allocations: 437 MB / 0.7101 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002032/0.002032, allocations: 63.89 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6503/0.6523, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.004239/0.6566, allocations: 1.735 MB / 1.019 GB, free: 1.047 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001065/0.6577, allocations: 451 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.233e-05/0.6578, allocations: 0 / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.914e-05/0.6579, allocations: 3.938 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.658, allocations: 15.81 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002714/0.6583, allocations: 31.95 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.6585, allocations: 75.78 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001747/0.6586, allocations: 27.98 kB / 1.019 GB, free: 460 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.6588, allocations: 39.78 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.6589, allocations: 39.84 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.138e-05/0.6589, allocations: 4 kB / 1.019 GB, free: 376 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 2.229e-05/0.659, allocations: 8 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 4.378e-05/0.659, allocations: 19.92 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 8.192e-05/0.6591, allocations: 35.8 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.6593, allocations: 77.73 kB / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.6593, allocations: 0 / 1.019 GB, free: 236 kB / 0.7637 GB Notification: Performance of FrontEnd: time 5.891e-06/0.6593, allocations: 7.984 kB / 1.019 GB, free: 228 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 9.397e-06/0.6594, allocations: 0 / 1.019 GB, free: 228 kB / 0.7637 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.0008276/0.6602, allocations: 388.5 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.6603, allocations: 8.031 kB / 1.02 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.944e-05/0.6603, allocations: 8.844 kB / 1.02 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.6605, allocations: 180.1 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.6606, allocations: 12.38 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.842e-05/0.6606, allocations: 4.375 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.6609, allocations: 91.62 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/0.6609, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.026e-05/0.6609, allocations: 4 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.6609, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.6611, allocations: 51.97 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.6619, allocations: 332.5 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.6621, allocations: 54.55 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.6622, allocations: 29.03 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.066e-05/0.6623, allocations: 7.875 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.639e-05/0.6623, allocations: 38.5 kB / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.222e-06/0.6623, allocations: 0 / 1.02 GB, free: 14.87 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4): time 0.0004343/0.6628, allocations: 93.66 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.6629, allocations: 81.09 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.6631, allocations: 136.6 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.008e-05/0.6631, allocations: 25.7 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.6632, allocations: 96.12 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.6633, allocations: 15.81 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.607e-05/0.6633, allocations: 21.7 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002347/0.6636, allocations: 318.8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.091e-05/0.6637, allocations: 23.98 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.6638, allocations: 45.64 kB / 1.021 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001564/0.664, allocations: 48.83 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.664, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002215/0.6642, allocations: 81.77 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.6642, allocations: 8 kB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.6643, allocations: 0 / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.427e-05/0.6643, allocations: 8.016 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.6644, allocations: 11.98 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.6644, allocations: 7.922 kB / 1.021 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.39e-05/0.6645, allocations: 16.11 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.6646, allocations: 7.938 kB / 1.021 GB, free: 13.77 MB / 0.7794 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.000159/0.6647, allocations: 113.8 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.574e-05/0.6648, allocations: 7.906 kB / 1.022 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.651e-05/0.6648, allocations: 16.23 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.6648, allocations: 8 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.6648, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.6649, allocations: 0 / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002957/0.6652, allocations: 185.6 kB / 1.022 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.6652, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.643e-05/0.6652, allocations: 4 kB / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.6653, allocations: 0 / 1.022 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.6653, allocations: 7.984 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.6653, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6653, allocations: 0 / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.6656, allocations: 187.3 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.751e-05/0.6657, allocations: 81.05 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.764e-05/0.6657, allocations: 4 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.6658, allocations: 11.98 kB / 1.022 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.629e-05/0.6659, allocations: 7.984 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.6659, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001065/0.6661, allocations: 115.1 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6661, allocations: 0 / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002481/0.6663, allocations: 11.91 kB / 1.022 GB, free: 12.93 MB / 0.7794 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.0001927/0.6665, allocations: 107.8 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002795/0.6668, allocations: 55.91 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6668, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.088e-05/0.6669, allocations: 27.98 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003885/0.6673, allocations: 9.875 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005256/0.6678, allocations: 203.1 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004641/0.6683, allocations: 0.6924 MB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.69e-05/0.6684, allocations: 4.141 kB / 1.023 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.132e-05/0.6684, allocations: 7.438 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.6684, allocations: 0 / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of Templates: time 0.004006/0.6724, allocations: 0.7859 MB / 1.024 GB, free: 10.99 MB / 0.7794 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/jenkins/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