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.00154/0.00154, allocations: 102.5 kB / 16.35 MB, free: 5.828 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.00176/0.001761, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.442/1.442, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.609/2.609, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 60.17 kB / 0.8773 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3638, allocations: 153 MB / 1.027 GB, free: 2.016 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003052/0.3669, allocations: 1.693 MB / 1.028 GB, free: 320 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.000754/0.3677, allocations: 450.8 kB / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.634e-05/0.3677, allocations: 0 / 1.029 GB, free: 15.87 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.665e-05/0.3678, allocations: 11.88 kB / 1.029 GB, free: 15.86 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 7.491e-05/0.3679, allocations: 15.86 kB / 1.029 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.3681, allocations: 31.89 kB / 1.029 GB, free: 15.81 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.3682, allocations: 75.78 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.3684, allocations: 35.91 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.3685, allocations: 35.92 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.158e-05/0.3686, allocations: 31.84 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.3686, allocations: 11.94 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.507e-05/0.3686, allocations: 8 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.3686, allocations: 19.91 kB / 1.029 GB, free: 15.59 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.722e-05/0.3687, allocations: 39.8 kB / 1.029 GB, free: 15.55 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.3688, allocations: 79.69 kB / 1.029 GB, free: 15.48 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3688, allocations: 3.938 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of FrontEnd: time 4.208e-06/0.3689, allocations: 4 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.3689, allocations: 3.938 kB / 1.029 GB, free: 15.46 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.0005536/0.3694, allocations: 387.1 kB / 1.03 GB, free: 15.04 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.3695, allocations: 12.03 kB / 1.03 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.003e-05/0.3695, allocations: 8.844 kB / 1.03 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.3697, allocations: 180.2 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.385e-05/0.3697, allocations: 4.375 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.3697, allocations: 8.312 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.3699, allocations: 95.69 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3699, allocations: 0 / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.3699, allocations: 0 / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3699, allocations: 0 / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000145/0.3701, allocations: 59.88 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004516/0.3705, allocations: 316.7 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000132/0.3707, allocations: 58.58 kB / 1.03 GB, free: 14.2 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.704e-05/0.3708, allocations: 32.94 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.774e-05/0.3708, allocations: 0 / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3708, allocations: 30.56 kB / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.3708, allocations: 0 / 1.03 GB, free: 14.13 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003279/0.3712, allocations: 105.5 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.3712, allocations: 81.11 kB / 1.031 GB, free: 13.92 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3714, allocations: 126.1 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.3714, allocations: 29.7 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.594e-05/0.3714, allocations: 92.14 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.3715, allocations: 15.73 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.3715, allocations: 17.72 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.765e-05/0.3716, allocations: 334.7 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.247e-05/0.3717, allocations: 19.98 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-05/0.3718, allocations: 37.7 kB / 1.031 GB, free: 13.22 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000124/0.3719, allocations: 48.83 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3719, allocations: 0 / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001792/0.3721, allocations: 89.73 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3721, allocations: 10.66 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.3721, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.3722, allocations: 3.938 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.829e-05/0.3723, allocations: 15.92 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.3723, allocations: 3.984 kB / 1.031 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.18e-05/0.3724, allocations: 15.92 kB / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.3724, allocations: 7.938 kB / 1.031 GB, free: 13.02 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 7.805e-05/0.3725, allocations: 117.8 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.3725, allocations: 11.89 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.697e-05/0.3725, allocations: 8.25 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3725, allocations: 0 / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3726, allocations: 4 kB / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.3726, allocations: 0 / 1.031 GB, free: 12.87 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.3727, allocations: 189.5 kB / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3728, allocations: 0 / 1.032 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.709e-05/0.3728, allocations: 11.98 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3728, allocations: 4 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.3729, allocations: 4 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.3729, allocations: 0 / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.3729, allocations: 4 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.3731, allocations: 179.3 kB / 1.032 GB, free: 12.42 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.079e-05/0.3731, allocations: 85.02 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.3732, allocations: 0 / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.3733, allocations: 15.98 kB / 1.032 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.3733, allocations: 11.98 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-06/0.3733, allocations: 0 / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.4e-05/0.3734, allocations: 106.1 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3734, allocations: 0 / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002217/0.3736, allocations: 19.94 kB / 1.032 GB, free: 12.17 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.0001086/0.3737, allocations: 99.48 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002047/0.374, allocations: 59.89 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.374, allocations: 4 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 7.73e-05/0.374, allocations: 27.98 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002732/0.3743, allocations: 3.984 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003738/0.3747, allocations: 167.3 kB / 1.032 GB, free: 11.78 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.375, allocations: 0.6924 MB / 1.033 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.691e-05/0.375, allocations: 4 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.315e-05/0.375, allocations: 7.438 kB / 1.033 GB, free: 11.05 MB / 0.8106 GB Notification: Performance of SimCode: time 2.51e-07/0.375, allocations: 4 kB / 1.033 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of Templates: time 0.003122/0.3782, allocations: 0.8791 MB / 1.034 GB, free: 10.18 MB / 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 -s cvode -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