Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001623/0.001623, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001757/0.001757, allocations: 190.3 kB / 22.1 MB, free: 5.152 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"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: 225.6 MB / 250.8 MB, free: 13.05 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.158/3.158, allocations: 495.8 MB / 0.783 GB, free: 33.63 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/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=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch")
translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002011/0.002011, allocations: 62.69 kB / 1.137 GB, free: 33.86 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3361, allocations: 173.6 MB / 1.307 GB, free: 1.836 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003027/0.3392, allocations: 1.692 MB / 1.308 GB, free: 136 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0008309/0.34, allocations: 447 kB / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 4.55e-05/0.34, allocations: 0 / 1.309 GB, free: 15.69 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.492e-05/0.3401, allocations: 11.86 kB / 1.309 GB, free: 15.68 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 8.803e-05/0.3402, allocations: 23.8 kB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.3403, allocations: 23.97 kB / 1.309 GB, free: 15.63 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001312/0.3405, allocations: 79.72 kB / 1.309 GB, free: 15.55 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3406, allocations: 31.91 kB / 1.309 GB, free: 15.52 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3407, allocations: 39.86 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 8.533e-05/0.3408, allocations: 35.78 kB / 1.309 GB, free: 15.45 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.3408, allocations: 8 kB / 1.309 GB, free: 15.44 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 2.392e-05/0.3408, allocations: 8 kB / 1.309 GB, free: 15.43 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.3409, allocations: 19.97 kB / 1.309 GB, free: 15.41 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 5e-05/0.3409, allocations: 35.8 kB / 1.309 GB, free: 15.38 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.3411, allocations: 87.62 kB / 1.309 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.3411, allocations: 0 / 1.309 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.583e-06/0.3411, allocations: 3.938 kB / 1.309 GB, free: 15.29 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 8.746e-06/0.3411, allocations: 0 / 1.309 GB, free: 15.29 MB / 1.014 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.0005731/0.3417, allocations: 317.9 kB / 1.31 GB, free: 14.95 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3417, allocations: 12.03 kB / 1.31 GB, free: 14.94 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.3417, allocations: 12.89 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.3419, allocations: 122.4 kB / 1.31 GB, free: 14.78 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.3419, allocations: 4.375 kB / 1.31 GB, free: 14.78 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.3419, allocations: 8.375 kB / 1.31 GB, free: 14.77 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002392/0.3421, allocations: 91.69 kB / 1.31 GB, free: 14.67 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3421, allocations: 0 / 1.31 GB, free: 14.67 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.549e-05/0.3422, allocations: 4 kB / 1.31 GB, free: 14.66 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.3422, allocations: 0 / 1.31 GB, free: 14.66 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.3423, allocations: 51.91 kB / 1.31 GB, free: 14.61 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.3429, allocations: 291.8 kB / 1.31 GB, free: 14.29 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/0.343, allocations: 50.59 kB / 1.31 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.608e-05/0.3431, allocations: 36.94 kB / 1.31 GB, free: 14.19 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.3431, allocations: 0 / 1.31 GB, free: 14.19 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.3432, allocations: 34.55 kB / 1.31 GB, free: 14.14 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.3432, allocations: 0 / 1.31 GB, free: 14.14 MB / 1.014 GB
Notification: Performance of matching and sorting (n=4): time 0.0003821/0.3435, allocations: 105.5 kB / 1.31 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.014e-05/0.3436, allocations: 77.11 kB / 1.31 GB, free: 13.94 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.3438, allocations: 138.6 kB / 1.311 GB, free: 13.79 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.3438, allocations: 25.7 kB / 1.311 GB, free: 13.76 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.3439, allocations: 104.1 kB / 1.311 GB, free: 13.66 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.3439, allocations: 15.84 kB / 1.311 GB, free: 13.64 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-05/0.3439, allocations: 21.7 kB / 1.311 GB, free: 13.61 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001709/0.3441, allocations: 318.8 kB / 1.311 GB, free: 13.29 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 8.657e-05/0.3442, allocations: 19.98 kB / 1.311 GB, free: 13.27 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 9.725e-05/0.3443, allocations: 45.69 kB / 1.311 GB, free: 13.22 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.3444, allocations: 44.84 kB / 1.311 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3444, allocations: 0 / 1.311 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002345/0.3447, allocations: 97.55 kB / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/0.3447, allocations: 5.719 kB / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.3447, allocations: 0 / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3447, allocations: 192 / 1.311 GB, free: 13.07 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.3448, allocations: 19.95 kB / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3448, allocations: 0 / 1.311 GB, free: 13.05 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.763e-05/0.3449, allocations: 11.98 kB / 1.311 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.3449, allocations: 3.938 kB / 1.311 GB, free: 13.04 MB / 1.014 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.0001032/0.345, allocations: 117.8 kB / 1.311 GB, free: 12.91 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.3451, allocations: 7.953 kB / 1.311 GB, free: 12.9 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.551e-05/0.3451, allocations: 12.34 kB / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3451, allocations: 0 / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3451, allocations: 8.172 kB / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.3451, allocations: 0 / 1.311 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002112/0.3453, allocations: 164.7 kB / 1.312 GB, free: 12.67 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3453, allocations: 0 / 1.312 GB, free: 12.67 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.405e-05/0.3454, allocations: 11.98 kB / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3454, allocations: 0 / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.3454, allocations: 0 / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.3454, allocations: 3.938 kB / 1.312 GB, free: 12.66 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3454, allocations: 3.984 kB / 1.312 GB, free: 12.65 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002806/0.3457, allocations: 179.4 kB / 1.312 GB, free: 12.46 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.756e-05/0.3457, allocations: 11.94 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.164e-05/0.3457, allocations: 0 / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.3458, allocations: 11.98 kB / 1.312 GB, free: 12.44 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.492e-05/0.3459, allocations: 7.984 kB / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.3459, allocations: 7.938 kB / 1.312 GB, free: 12.42 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 8.401e-05/0.346, allocations: 104.9 kB / 1.312 GB, free: 12.32 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.346, allocations: 4 kB / 1.312 GB, free: 12.32 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002278/0.3462, allocations: 15.94 kB / 1.312 GB, free: 12.3 MB / 1.014 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.0001158/0.3463, allocations: 100 kB / 1.312 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002445/0.3466, allocations: 51.91 kB / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3466, allocations: 0 / 1.312 GB, free: 12.14 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 9.098e-05/0.3467, allocations: 27.98 kB / 1.312 GB, free: 12.12 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3469, allocations: 8 kB / 1.312 GB, free: 12.11 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004293/0.3474, allocations: 171.3 kB / 1.312 GB, free: 11.92 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003501/0.3477, allocations: 0.6963 MB / 1.313 GB, free: 11.2 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.857e-05/0.3478, allocations: 0 / 1.313 GB, free: 11.2 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.14e-05/0.3478, allocations: 11.44 kB / 1.313 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of SimCode: time 3.01e-07/0.3478, allocations: 4 kB / 1.313 GB, free: 11.18 MB / 1.014 GB
Notification: Performance of Templates: time 0.003737/0.3516, allocations: 0.9195 MB / 1.314 GB, free: 10.28 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300]
""
[Timeout remaining time 300]
Reference file matches
[Calling sys.exit(0), Time elapsed: 8.96869471296668]