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.002362/0.002363, allocations: 105.8 kB / 16.41 MB, free: 6.492 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.003102/0.003102, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.521/1.521, 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 12.0.0-master/package.mo): time 2.9/2.9, allocations: 474.5 MB / 0.7477 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00213/0.00213, allocations: 67.83 kB / 1.073 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.827/0.8292, allocations: 160.3 MB / 1.229 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003098/0.8323, allocations: 1.664 MB / 1.231 GB, free: 9.363 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.000827/0.8332, allocations: 456.4 kB / 1.231 GB, free: 8.914 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.869e-05/0.8332, allocations: 0 / 1.231 GB, free: 8.914 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 3.614e-05/0.8333, allocations: 11.88 kB / 1.231 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.481e-05/0.8334, allocations: 11.86 kB / 1.231 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.8336, allocations: 31.89 kB / 1.231 GB, free: 8.859 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001271/0.8337, allocations: 79.72 kB / 1.231 GB, free: 8.781 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001301/0.8339, allocations: 31.92 kB / 1.231 GB, free: 8.75 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.834, allocations: 43.78 kB / 1.231 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.941e-05/0.8341, allocations: 39.84 kB / 1.231 GB, free: 8.668 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.8341, allocations: 4 kB / 1.231 GB, free: 8.664 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.758e-05/0.8341, allocations: 8 kB / 1.231 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.783e-05/0.8342, allocations: 19.92 kB / 1.231 GB, free: 8.637 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.76e-05/0.8342, allocations: 35.8 kB / 1.232 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001422/0.8344, allocations: 80.25 kB / 1.232 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.8344, allocations: 4 kB / 1.232 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8344, allocations: 0 / 1.232 GB, free: 8.523 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.08e-06/0.8344, allocations: 4 kB / 1.232 GB, free: 8.52 MB / 0.9512 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.0006165/0.835, allocations: 391 kB / 1.232 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.835, allocations: 8.031 kB / 1.232 GB, free: 8.082 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.136e-05/0.8351, allocations: 8.891 kB / 1.232 GB, free: 8.074 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.8353, allocations: 184.2 kB / 1.232 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.8353, allocations: 8.375 kB / 1.232 GB, free: 7.848 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.438e-05/0.8353, allocations: 4.375 kB / 1.232 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.8356, allocations: 95.69 kB / 1.232 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.706e-06/0.8356, allocations: 3.938 kB / 1.232 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.8356, allocations: 0 / 1.232 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.8356, allocations: 0 / 1.232 GB, free: 7.734 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001708/0.8358, allocations: 55.89 kB / 1.232 GB, free: 7.68 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005396/0.8363, allocations: 320.8 kB / 1.233 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.8365, allocations: 58.58 kB / 1.233 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.473e-05/0.8366, allocations: 28.94 kB / 1.233 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.8366, allocations: 0 / 1.233 GB, free: 7.219 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.8367, allocations: 34.56 kB / 1.233 GB, free: 7.176 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.8367, allocations: 4 kB / 1.233 GB, free: 7.172 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4): time 0.0003818/0.8371, allocations: 101.6 kB / 1.233 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.639e-05/0.8372, allocations: 81.11 kB / 1.233 GB, free: 6.969 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.8373, allocations: 126.1 kB / 1.233 GB, free: 6.832 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.8373, allocations: 29.64 kB / 1.233 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.275e-05/0.8374, allocations: 100 kB / 1.233 GB, free: 6.695 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.8374, allocations: 15.89 kB / 1.233 GB, free: 6.68 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/0.8375, allocations: 29.66 kB / 1.233 GB, free: 6.645 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001503/0.8377, allocations: 322.8 kB / 1.234 GB, free: 6.32 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.477e-05/0.8377, allocations: 19.98 kB / 1.234 GB, free: 6.301 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.957e-05/0.8378, allocations: 37.7 kB / 1.234 GB, free: 6.258 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001475/0.838, allocations: 48.83 kB / 1.234 GB, free: 6.207 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.838, allocations: 4.031 kB / 1.234 GB, free: 6.203 MB / 0.9512 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002097/0.8382, allocations: 81.62 kB / 1.234 GB, free: 6.117 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.8383, allocations: 8 kB / 1.234 GB, free: 6.109 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.8383, allocations: 0 / 1.234 GB, free: 6.109 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.8383, allocations: 3.938 kB / 1.234 GB, free: 6.105 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.8384, allocations: 11.98 kB / 1.234 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.8384, allocations: 3.984 kB / 1.234 GB, free: 6.09 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.419e-05/0.8385, allocations: 12.17 kB / 1.234 GB, free: 6.078 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.8385, allocations: 7.938 kB / 1.234 GB, free: 6.07 MB / 0.9512 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.000106/0.8386, allocations: 125.8 kB / 1.234 GB, free: 5.938 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.361e-05/0.8387, allocations: 11.94 kB / 1.234 GB, free: 5.926 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.69e-05/0.8387, allocations: 8.25 kB / 1.234 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.8387, allocations: 4 kB / 1.234 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.8387, allocations: 0 / 1.234 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.8387, allocations: 0 / 1.234 GB, free: 5.902 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.839, allocations: 193.4 kB / 1.234 GB, free: 5.664 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.839, allocations: 4 kB / 1.234 GB, free: 5.66 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.449e-05/0.8391, allocations: 12.17 kB / 1.234 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.8391, allocations: 4 kB / 1.234 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.8391, allocations: 4 kB / 1.234 GB, free: 5.641 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.8391, allocations: 0 / 1.234 GB, free: 5.641 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.8391, allocations: 0 / 1.234 GB, free: 5.641 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.8394, allocations: 187.3 kB / 1.234 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.768e-05/0.8394, allocations: 81.06 kB / 1.234 GB, free: 5.344 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.127e-05/0.8395, allocations: 4 kB / 1.234 GB, free: 5.34 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.8396, allocations: 11.98 kB / 1.234 GB, free: 5.328 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/0.8396, allocations: 7.984 kB / 1.234 GB, free: 5.32 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.215e-06/0.8397, allocations: 4 kB / 1.234 GB, free: 5.316 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 7.412e-05/0.8397, allocations: 106 kB / 1.234 GB, free: 5.215 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8397, allocations: 0 / 1.234 GB, free: 5.215 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002342/0.84, allocations: 15.98 kB / 1.234 GB, free: 5.199 MB / 0.9512 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.0001214/0.8401, allocations: 103.2 kB / 1.235 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0002288/0.8403, allocations: 55.91 kB / 1.235 GB, free: 5.035 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.8404, allocations: 0 / 1.235 GB, free: 5.035 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 8.982e-05/0.8404, allocations: 23.98 kB / 1.235 GB, free: 5.012 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.8407, allocations: 11.92 kB / 1.235 GB, free: 5 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004454/0.8412, allocations: 186.9 kB / 1.235 GB, free: 4.793 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.8415, allocations: 0.6924 MB / 1.236 GB, free: 4.074 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.199e-05/0.8416, allocations: 4 kB / 1.236 GB, free: 4.07 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.092e-05/0.8416, allocations: 11.44 kB / 1.236 GB, free: 4.059 MB / 0.9512 GB Notification: Performance of SimCode: time 3.2e-07/0.8416, allocations: 3.938 kB / 1.236 GB, free: 4.055 MB / 0.9512 GB Notification: Performance of Templates: time 0.003701/0.8453, allocations: 0.8812 MB / 1.236 GB, free: 3.188 MB / 0.9512 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 gbode -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