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.001935/0.001934, allocations: 106.8 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.001621/0.001621, allocations: 190.3 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.449/1.449, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.807/2.807, allocations: 482.4 MB / 0.7553 GB, free: 6.98 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001965/0.001965, allocations: 71.83 kB / 0.9245 GB, free: 15.96 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.005/1.007, allocations: 162.2 MB / 1.083 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003231/1.01, allocations: 1.662 MB / 1.085 GB, free: 480 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007684/1.011, allocations: 459.5 kB / 1.085 GB, free: 152 kB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.463e-05/1.011, allocations: 1.406 kB / 1.085 GB, free: 152 kB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/1.011, allocations: 5.297 kB / 1.085 GB, free: 148 kB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.42e-05/1.011, allocations: 15.53 kB / 1.085 GB, free: 136 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001882/1.012, allocations: 27.95 kB / 1.085 GB, free: 120 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001231/1.012, allocations: 79.83 kB / 1.085 GB, free: 80 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/1.012, allocations: 35.41 kB / 1.085 GB, free: 60 kB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/1.012, allocations: 29.25 kB / 1.085 GB, free: 48 kB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.747e-05/1.012, allocations: 42.06 kB / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/1.012, allocations: 6.938 kB / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 2.149e-05/1.012, allocations: 7.125 kB / 1.085 GB, free: 24 kB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.857e-05/1.012, allocations: 17.64 kB / 1.085 GB, free: 12 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.381e-05/1.012, allocations: 36.05 kB / 1.085 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001507/1.012, allocations: 80.55 kB / 1.085 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/1.012, allocations: 4 kB / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.442e-06/1.012, allocations: 0 / 1.085 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.47e-06/1.012, allocations: 0 / 1.085 GB, free: 15.95 MB / 0.8419 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.000651/1.013, allocations: 390.5 kB / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/1.013, allocations: 9.219 kB / 1.086 GB, free: 15.57 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/1.013, allocations: 12.53 kB / 1.086 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/1.013, allocations: 175.4 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/1.013, allocations: 7.062 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/1.013, allocations: 7.672 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002497/1.014, allocations: 93.34 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/1.014, allocations: 0 / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/1.014, allocations: 5.031 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/1.014, allocations: 0.5312 kB / 1.086 GB, free: 15.28 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/1.014, allocations: 52.19 kB / 1.086 GB, free: 15.27 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005858/1.014, allocations: 334.9 kB / 1.086 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/1.015, allocations: 51.59 kB / 1.086 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.815e-05/1.015, allocations: 30.22 kB / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/1.015, allocations: 0 / 1.086 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/1.015, allocations: 36.92 kB / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/1.015, allocations: 0 / 1.087 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of matching and sorting (n=4): time 0.0003852/1.015, allocations: 101.2 kB / 1.087 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/1.015, allocations: 82.42 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/1.015, allocations: 136.4 kB / 1.087 GB, free: 14.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/1.015, allocations: 27.02 kB / 1.087 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 7.499e-05/1.016, allocations: 98.73 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/1.016, allocations: 10.41 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/1.016, allocations: 20.41 kB / 1.087 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001425/1.016, allocations: 320.4 kB / 1.087 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.993e-05/1.016, allocations: 27.7 kB / 1.087 GB, free: 14.11 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.906e-05/1.016, allocations: 42.06 kB / 1.087 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/1.016, allocations: 48.09 kB / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/1.016, allocations: 0 / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002192/1.016, allocations: 88.44 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/1.016, allocations: 6.562 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/1.016, allocations: 0 / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/1.016, allocations: 0.6875 kB / 1.087 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/1.017, allocations: 14.38 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/1.017, allocations: 0.6094 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.158e-05/1.017, allocations: 14.41 kB / 1.088 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/1.017, allocations: 5.734 kB / 1.088 GB, free: 14 MB / 0.8419 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.0001044/1.017, allocations: 115.5 kB / 1.088 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/1.017, allocations: 7.312 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.029e-05/1.017, allocations: 18.78 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/1.017, allocations: 1.75 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/1.017, allocations: 4 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/1.017, allocations: 1.188 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/1.017, allocations: 186.8 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/1.017, allocations: 1.156 kB / 1.088 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.525e-05/1.017, allocations: 13.34 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/1.017, allocations: 4.844 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/1.017, allocations: 1.125 kB / 1.088 GB, free: 13.65 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/1.017, allocations: 4.938 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/1.017, allocations: 0.9844 kB / 1.088 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/1.017, allocations: 182.6 kB / 1.088 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/1.018, allocations: 83.7 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.639e-05/1.018, allocations: 5.984 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/1.018, allocations: 10.14 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.626e-05/1.018, allocations: 7.359 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-06/1.018, allocations: 1.797 kB / 1.088 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.398e-05/1.018, allocations: 109.7 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.11e-07/1.018, allocations: 0.9688 kB / 1.088 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002249/1.018, allocations: 10.62 kB / 1.088 GB, free: 13.3 MB / 0.8419 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.0001296/1.018, allocations: 107.6 kB / 1.088 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002434/1.018, allocations: 59.58 kB / 1.088 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/1.018, allocations: 0.625 kB / 1.088 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 8.976e-05/1.019, allocations: 28.95 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/1.019, allocations: 6.828 kB / 1.088 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004885/1.019, allocations: 203.9 kB / 1.089 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/1.02, allocations: 0.7016 MB / 1.089 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.469e-05/1.02, allocations: 11.58 kB / 1.089 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of SimCode: time 2.1e-07/1.02, allocations: 0 / 1.089 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of Templates: time 0.003257/1.023, allocations: 0.9904 MB / 1.09 GB, free: 12.22 MB / 0.8419 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=400 -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