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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001437/0.001437, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.002023/0.002023, allocations: 197.2 kB / 16.14 MB, free: 6.734 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.469/1.469, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.793/2.793, allocations: 461.8 MB / 0.7342 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001303, allocations: 66.66 kB / 0.8984 GB, free: 37.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4317/0.433, allocations: 157.4 MB / 1.052 GB, free: 8.895 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003395/0.4364, allocations: 1.738 MB / 1.054 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0008262/0.4373, allocations: 450.7 kB / 1.054 GB, free: 6.695 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.386e-05/0.4374, allocations: 4 kB / 1.054 GB, free: 6.691 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 4.943e-05/0.4374, allocations: 3.938 kB / 1.054 GB, free: 6.688 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 8.688e-05/0.4375, allocations: 11.86 kB / 1.054 GB, free: 6.676 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001894/0.4377, allocations: 27.97 kB / 1.054 GB, free: 6.648 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.4379, allocations: 75.72 kB / 1.054 GB, free: 6.574 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.438, allocations: 35.91 kB / 1.054 GB, free: 6.539 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000109/0.4381, allocations: 23.92 kB / 1.054 GB, free: 6.516 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 9.183e-05/0.4382, allocations: 35.84 kB / 1.054 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.962e-05/0.4383, allocations: 0 / 1.054 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 1.54e-05/0.4383, allocations: 8 kB / 1.054 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.4383, allocations: 19.91 kB / 1.054 GB, free: 6.453 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.4384, allocations: 31.8 kB / 1.054 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001393/0.4385, allocations: 75.98 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 9.188e-06/0.4385, allocations: 7.984 kB / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4385, allocations: 0 / 1.055 GB, free: 6.34 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.4385, allocations: 0 / 1.055 GB, free: 6.34 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.0006316/0.4392, allocations: 383.2 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.664e-05/0.4392, allocations: 8.031 kB / 1.055 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.002e-05/0.4393, allocations: 16.84 kB / 1.055 GB, free: 5.895 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.4395, allocations: 180.2 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.4395, allocations: 12.25 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.4395, allocations: 4.375 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002359/0.4398, allocations: 91.69 kB / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.4398, allocations: 0 / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.4398, allocations: 0 / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.4398, allocations: 0 / 1.055 GB, free: 5.562 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001552/0.44, allocations: 59.89 kB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005575/0.4406, allocations: 324.7 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.4407, allocations: 58.58 kB / 1.056 GB, free: 5.07 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.241e-05/0.4408, allocations: 28.94 kB / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.4408, allocations: 0 / 1.056 GB, free: 5.039 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.4409, allocations: 30.56 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.4409, allocations: 0 / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4): time 0.0003817/0.4413, allocations: 105.6 kB / 1.056 GB, free: 4.891 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/0.4413, allocations: 81.09 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.4415, allocations: 128.5 kB / 1.056 GB, free: 4.656 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.997e-05/0.4415, allocations: 29.7 kB / 1.056 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/0.4415, allocations: 96.12 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.11e-05/0.4416, allocations: 11.75 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-05/0.4416, allocations: 25.7 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.4418, allocations: 322.8 kB / 1.056 GB, free: 4.156 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.516e-05/0.4418, allocations: 23.98 kB / 1.057 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.751e-05/0.4419, allocations: 41.7 kB / 1.057 GB, free: 4.086 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001304/0.4421, allocations: 48.83 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4421, allocations: 0 / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001862/0.4423, allocations: 81.58 kB / 1.057 GB, free: 3.949 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.4423, allocations: 15.97 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.4423, allocations: 0 / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.4423, allocations: 0 / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.4424, allocations: 15.98 kB / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.4424, allocations: 0 / 1.057 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.723e-05/0.4425, allocations: 11.98 kB / 1.057 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.4425, allocations: 3.938 kB / 1.057 GB, free: 3.902 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 9.856e-05/0.4426, allocations: 113.8 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.142e-05/0.4427, allocations: 11.91 kB / 1.057 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.4427, allocations: 16.17 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.4427, allocations: 7.938 kB / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4428, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4428, allocations: 0 / 1.057 GB, free: 3.742 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.443, allocations: 193.5 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.443, allocations: 4 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.671e-05/0.443, allocations: 4 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.443, allocations: 0 / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.4431, allocations: 7.984 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4431, allocations: 4 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.4431, allocations: 192 / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002344/0.4433, allocations: 187.3 kB / 1.057 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.371e-05/0.4434, allocations: 85.02 kB / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.22e-05/0.4434, allocations: 0 / 1.057 GB, free: 3.184 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.4435, allocations: 11.98 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.651e-05/0.4436, allocations: 15.98 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.4436, allocations: 0 / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.433e-05/0.4437, allocations: 103.2 kB / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4437, allocations: 0 / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002241/0.4439, allocations: 15.94 kB / 1.057 GB, free: 3.039 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.0001207/0.444, allocations: 109 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002143/0.4442, allocations: 55.91 kB / 1.058 GB, free: 2.871 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.4442, allocations: 4 kB / 1.058 GB, free: 2.867 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.255e-05/0.4443, allocations: 23.98 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003301/0.4447, allocations: 4 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004686/0.4451, allocations: 196.9 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.4454, allocations: 0.6887 MB / 1.059 GB, free: 1.906 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.643e-05/0.4455, allocations: 4 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.732e-05/0.4455, allocations: 11.38 kB / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/0.4455, allocations: 0 / 1.059 GB, free: 1.891 MB / 0.8106 GB Notification: Performance of Templates: time 0.003159/0.4487, allocations: 0.7558 MB / 1.059 GB, free: 1.152 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 -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