Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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.001551/0.001551, allocations: 101.8 kB / 18.83 MB, free: 3.023 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.00225/0.00225, allocations: 192.9 kB / 22.1 MB, free: 4.625 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.525/1.525, allocations: 225.6 MB / 250.8 MB, free: 13.04 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.258/3.258, allocations: 495.8 MB / 0.783 GB, free: 33.71 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.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch")
translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 71.78 kB / 1.137 GB, free: 33.73 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4547/0.4568, allocations: 173.6 MB / 1.307 GB, free: 1.809 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002133/0.4589, allocations: 0.7037 MB / 1.307 GB, free: 1.105 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001835/0.4607, allocations: 1.276 MB / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.61e-05/0.4608, allocations: 0 / 1.309 GB, free: 15.82 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.4608, allocations: 11.88 kB / 1.309 GB, free: 15.8 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 8.941e-05/0.4609, allocations: 15.84 kB / 1.309 GB, free: 15.79 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008782/0.4618, allocations: 321 kB / 1.309 GB, free: 15.48 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0003365/0.4621, allocations: 251.6 kB / 1.309 GB, free: 15.24 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001151/0.4622, allocations: 12.17 kB / 1.309 GB, free: 15.22 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.4624, allocations: 103.8 kB / 1.309 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.4626, allocations: 95.75 kB / 1.309 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.4626, allocations: 20 kB / 1.309 GB, free: 15.01 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001019/0.4627, allocations: 35.97 kB / 1.31 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.557e-05/0.4627, allocations: 23.92 kB / 1.31 GB, free: 14.95 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.4629, allocations: 75.81 kB / 1.31 GB, free: 14.88 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.4632, allocations: 227.3 kB / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4632, allocations: 0 / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.224e-06/0.4632, allocations: 0 / 1.31 GB, free: 14.65 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.073e-05/0.4632, allocations: 0 / 1.31 GB, free: 14.65 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: 7
 * Number of variables: 7
Notification: Performance of Generate backend data structure: time 0.000673/0.4639, allocations: 419.1 kB / 1.31 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.4639, allocations: 8.922 kB / 1.31 GB, free: 14.19 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.863e-05/0.464, allocations: 12.89 kB / 1.31 GB, free: 14.18 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.4641, allocations: 130.4 kB / 1.31 GB, free: 14.02 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.4642, allocations: 8.312 kB / 1.31 GB, free: 14.02 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.811e-05/0.4642, allocations: 20.38 kB / 1.31 GB, free: 14 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.4644, allocations: 58.22 kB / 1.31 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.4644, allocations: 3.938 kB / 1.31 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.4644, allocations: 0 / 1.31 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.4644, allocations: 4 kB / 1.31 GB, free: 13.93 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 5.722e-05/0.4645, allocations: 19.98 kB / 1.31 GB, free: 13.91 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.4651, allocations: 395.5 kB / 1.311 GB, free: 13.48 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 7.883e-05/0.4652, allocations: 30.58 kB / 1.311 GB, free: 13.44 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 3.92e-05/0.4652, allocations: 20.88 kB / 1.311 GB, free: 13.41 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.4652, allocations: 0 / 1.311 GB, free: 13.41 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000243/0.4655, allocations: 103.3 kB / 1.311 GB, free: 13.3 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.4655, allocations: 0 / 1.311 GB, free: 13.3 MB / 1.014 GB
Notification: Performance of matching and sorting (n=10): time 0.0003463/0.4658, allocations: 137.5 kB / 1.311 GB, free: 13.16 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.4659, allocations: 55.41 kB / 1.311 GB, free: 13.09 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001229/0.466, allocations: 140.7 kB / 1.311 GB, free: 12.95 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 4.568e-05/0.466, allocations: 33.7 kB / 1.311 GB, free: 12.91 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.652e-05/0.4661, allocations: 96.2 kB / 1.311 GB, free: 12.81 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.738e-05/0.4661, allocations: 23.84 kB / 1.311 GB, free: 12.79 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.4663, allocations: 65.67 kB / 1.312 GB, free: 12.72 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000163/0.4664, allocations: 326.8 kB / 1.312 GB, free: 12.39 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.4666, allocations: 83.95 kB / 1.312 GB, free: 12.31 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.4669, allocations: 138 kB / 1.312 GB, free: 12.15 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.4672, allocations: 235 kB / 1.312 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4672, allocations: 0 / 1.312 GB, free: 11.88 MB / 1.014 GB
Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006451/0.4678, allocations: 385.6 kB / 1.313 GB, free: 11.48 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 9.182e-05/0.4679, allocations: 101.1 kB / 1.313 GB, free: 11.37 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.4679, allocations: 0 / 1.313 GB, free: 11.37 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.4679, allocations: 7.984 kB / 1.313 GB, free: 11.36 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.104e-05/0.468, allocations: 11.94 kB / 1.313 GB, free: 11.35 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.468, allocations: 8.172 kB / 1.313 GB, free: 11.34 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005019/0.4685, allocations: 79.8 kB / 1.313 GB, free: 11.26 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.718e-05/0.4685, allocations: 23.98 kB / 1.313 GB, free: 11.24 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 7
 * Number of states: 0 ()
 * Number of discrete variables: 13 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,logicalSwitch.y,booPul3.y,$PRE.booPul3.y,booPul2.y,$PRE.booPul2.y,booPul1.y,$PRE.booPul1.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (13):
 * Single equations (assignments): 10
 * Array equations: 0
 * Algorithm blocks: 3
 * 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.0001347/0.4687, allocations: 134.7 kB / 1.313 GB, free: 11.1 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.678e-05/0.4687, allocations: 7.953 kB / 1.313 GB, free: 11.09 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.4687, allocations: 8.375 kB / 1.313 GB, free: 11.08 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.4687, allocations: 11.86 kB / 1.313 GB, free: 11.07 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.4687, allocations: 4.375 kB / 1.313 GB, free: 11.06 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4687, allocations: 0 / 1.313 GB, free: 11.06 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.4689, allocations: 164.6 kB / 1.313 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4689, allocations: 0 / 1.313 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.137e-06/0.4689, allocations: 3.938 kB / 1.313 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 6.042e-06/0.4689, allocations: 7.984 kB / 1.313 GB, free: 10.85 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-06/0.4689, allocations: 0 / 1.313 GB, free: 10.85 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4689, allocations: 4 kB / 1.313 GB, free: 10.84 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4689, allocations: 80 / 1.313 GB, free: 10.84 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002205/0.4692, allocations: 144.9 kB / 1.313 GB, free: 10.68 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.746e-05/0.4692, allocations: 15.88 kB / 1.313 GB, free: 10.67 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.4692, allocations: 4 kB / 1.313 GB, free: 10.66 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.195e-05/0.4692, allocations: 0 / 1.313 GB, free: 10.66 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.512e-05/0.4693, allocations: 11.98 kB / 1.313 GB, free: 10.65 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.602e-06/0.4693, allocations: 0 / 1.313 GB, free: 10.65 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.887e-05/0.4693, allocations: 103.3 kB / 1.313 GB, free: 10.55 MB / 1.014 GB
Notification: Performance of sort global known variables: time 6e-08/0.4693, allocations: 0 / 1.313 GB, free: 10.55 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002584/0.4696, allocations: 43.98 kB / 1.314 GB, free: 10.51 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: 10 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,booPul1.y,booPul2.y,booPul3.y,logicalSwitch.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (10):
 * Single equations (assignments): 7
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 3
 * 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.0001797/0.4698, allocations: 104 kB / 1.314 GB, free: 10.4 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0005259/0.4703, allocations: 329.9 kB / 1.314 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.4703, allocations: 384 / 1.314 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 6.417e-05/0.4704, allocations: 39.92 kB / 1.314 GB, free: 10 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.4706, allocations: 21.52 kB / 1.314 GB, free: 9.98 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004314/0.4711, allocations: 195 kB / 1.314 GB, free: 9.762 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/0.4714, allocations: 0.6962 MB / 1.315 GB, free: 9.039 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 2.989e-05/0.4714, allocations: 12.42 kB / 1.315 GB, free: 9.027 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.301e-05/0.4715, allocations: 19.44 kB / 1.315 GB, free: 9.008 MB / 1.014 GB
Notification: Performance of SimCode: time 7.21e-07/0.4715, allocations: 0 / 1.315 GB, free: 9.008 MB / 1.014 GB
Notification: Performance of Templates: time 0.00687/0.4783, allocations: 2.663 MB / 1.317 GB, free: 6.379 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.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: 9.536865673959255]