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.006272/0.006272, allocations: 102 kB / 15.73 MB, free: 6.035 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.001211/0.001211, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.883/2.883, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001762, allocations: 67.89 kB / 1.054 GB, free: 7.238 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4273/0.429, allocations: 157.4 MB / 1.208 GB, free: 9.727 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003372/0.4325, allocations: 1.659 MB / 1.209 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009299/0.4334, allocations: 451.2 kB / 1.21 GB, free: 7.602 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.513e-05/0.4335, allocations: 4 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.233e-05/0.4336, allocations: 3.938 kB / 1.21 GB, free: 7.594 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.4337, allocations: 19.78 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.4339, allocations: 31.91 kB / 1.21 GB, free: 7.543 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001314/0.4341, allocations: 75.78 kB / 1.21 GB, free: 7.469 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.4342, allocations: 31.98 kB / 1.21 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001349/0.4344, allocations: 39.78 kB / 1.21 GB, free: 7.398 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.648e-05/0.4345, allocations: 35.84 kB / 1.21 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.514e-05/0.4345, allocations: 8 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 1.51e-05/0.4345, allocations: 4 kB / 1.21 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.815e-05/0.4346, allocations: 19.92 kB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.612e-05/0.4346, allocations: 35.8 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.4348, allocations: 91.69 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.4348, allocations: 0 / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4348, allocations: 0 / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.574e-06/0.4348, allocations: 0 / 1.21 GB, free: 7.207 MB / 0.9669 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.000613/0.4354, allocations: 387.1 kB / 1.211 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.4355, allocations: 8.625 kB / 1.211 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.248e-05/0.4355, allocations: 8.844 kB / 1.211 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.4357, allocations: 189.8 kB / 1.211 GB, free: 6.543 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.4357, allocations: 4.375 kB / 1.211 GB, free: 6.539 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.833e-05/0.4358, allocations: 4.375 kB / 1.211 GB, free: 6.535 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002268/0.436, allocations: 103.5 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.436, allocations: 0 / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.436, allocations: 0 / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.436, allocations: 7.938 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.4362, allocations: 43.97 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005415/0.4368, allocations: 328.8 kB / 1.211 GB, free: 6 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.4369, allocations: 54.48 kB / 1.211 GB, free: 5.938 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.472e-05/0.437, allocations: 28.94 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.437, allocations: 0 / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.4371, allocations: 34.56 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.4371, allocations: 0 / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4): time 0.0003707/0.4374, allocations: 109.5 kB / 1.211 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.973e-05/0.4375, allocations: 77.11 kB / 1.211 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.4376, allocations: 130.1 kB / 1.212 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.4377, allocations: 29.7 kB / 1.212 GB, free: 5.48 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.635e-05/0.4377, allocations: 108 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.4378, allocations: 11.84 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.171e-05/0.4378, allocations: 17.72 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4379, allocations: 322.8 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.673e-05/0.438, allocations: 19.98 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.676e-05/0.4381, allocations: 41.7 kB / 1.212 GB, free: 4.945 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.4383, allocations: 52.86 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4383, allocations: 0 / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002039/0.4385, allocations: 93.5 kB / 1.212 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.4385, allocations: 4 kB / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4385, allocations: 0 / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.4385, allocations: 0 / 1.212 GB, free: 4.789 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.4387, allocations: 8 kB / 1.212 GB, free: 4.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.4387, allocations: 7.984 kB / 1.212 GB, free: 4.773 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.241e-05/0.4388, allocations: 12 kB / 1.212 GB, free: 4.762 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.482e-05/0.4388, allocations: 7.922 kB / 1.212 GB, free: 4.754 MB / 0.9669 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.634e-05/0.4389, allocations: 113.8 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.4389, allocations: 7.906 kB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.606e-05/0.439, allocations: 12.25 kB / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.439, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.439, allocations: 0 / 1.212 GB, free: 4.609 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.439, allocations: 3.938 kB / 1.212 GB, free: 4.605 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.4392, allocations: 197.5 kB / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4392, allocations: 0 / 1.213 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.578e-05/0.4393, allocations: 11.98 kB / 1.213 GB, free: 4.352 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.4393, allocations: 4 kB / 1.213 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.4393, allocations: 3.938 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.4393, allocations: 192 / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4393, allocations: 0 / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002412/0.4396, allocations: 187.4 kB / 1.213 GB, free: 4.145 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.516e-05/0.4396, allocations: 81.02 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.226e-05/0.4396, allocations: 4 kB / 1.213 GB, free: 4.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.748e-05/0.4397, allocations: 7.984 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.4398, allocations: 11.98 kB / 1.213 GB, free: 4.023 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.137e-06/0.4398, allocations: 7.984 kB / 1.213 GB, free: 4.016 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.555e-05/0.4399, allocations: 105.6 kB / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of sort global known variables: time 4.11e-07/0.4399, allocations: 0 / 1.213 GB, free: 3.914 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002279/0.4401, allocations: 19.94 kB / 1.213 GB, free: 3.895 MB / 0.9669 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.0001276/0.4403, allocations: 95.25 kB / 1.213 GB, free: 3.793 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002224/0.4405, allocations: 56.14 kB / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4405, allocations: 0 / 1.213 GB, free: 3.738 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.163e-05/0.4406, allocations: 31.97 kB / 1.213 GB, free: 3.707 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.4409, allocations: 4.094 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004347/0.4414, allocations: 199 kB / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.4417, allocations: 0.6885 MB / 1.214 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.428e-05/0.4417, allocations: 4 kB / 1.214 GB, free: 2.766 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.962e-05/0.4418, allocations: 11.42 kB / 1.214 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.4418, allocations: 4 kB / 1.214 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of Templates: time 0.003571/0.4453, allocations: 0.8734 MB / 1.215 GB, free: 1.895 MB / 0.9669 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