Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.001508/0.001508, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.001651/0.001651, allocations: 186.4 kB / 22.22 MB, free: 5.102 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.437/1.437, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.131/3.131, allocations: 0.4893 GB / 0.7884 GB, free: 33.11 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-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.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch")
translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|switch1.u1|switch1.u2|switch1.u3|switch1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 73.83 kB / 1.145 GB, free: 30.67 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3567, allocations: 174.9 MB / 1.316 GB, free: 9.656 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Switch): time 0.002335/0.3591, allocations: 0.7921 MB / 1.317 GB, free: 8.863 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001664/0.3607, allocations: 1.17 MB / 1.318 GB, free: 7.68 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 7.546e-05/0.3608, allocations: 0 / 1.318 GB, free: 7.68 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.645e-05/0.3609, allocations: 7.875 kB / 1.318 GB, free: 7.672 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.361, allocations: 15.86 kB / 1.318 GB, free: 7.656 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0006278/0.3616, allocations: 135.1 kB / 1.318 GB, free: 7.527 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002414/0.3618, allocations: 131.8 kB / 1.318 GB, free: 7.398 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.592e-05/0.3619, allocations: 11.98 kB / 1.318 GB, free: 7.387 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001347/0.3621, allocations: 47.91 kB / 1.318 GB, free: 7.34 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.3622, allocations: 55.81 kB / 1.318 GB, free: 7.285 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.3622, allocations: 8 kB / 1.318 GB, free: 7.277 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 8.467e-05/0.3623, allocations: 31.92 kB / 1.318 GB, free: 7.246 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.585e-05/0.3623, allocations: 11.92 kB / 1.318 GB, free: 7.234 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.529e-05/0.3624, allocations: 47.84 kB / 1.318 GB, free: 7.188 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.3626, allocations: 127.5 kB / 1.319 GB, free: 7.062 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3626, allocations: 0 / 1.319 GB, free: 7.062 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.242e-06/0.3626, allocations: 0 / 1.319 GB, free: 7.062 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.512e-06/0.3626, allocations: 0 / 1.319 GB, free: 7.062 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.0006853/0.3633, allocations: 347.8 kB / 1.319 GB, free: 6.684 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3634, allocations: 12.03 kB / 1.319 GB, free: 6.672 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.546e-05/0.3634, allocations: 8.891 kB / 1.319 GB, free: 6.664 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.3635, allocations: 114.5 kB / 1.319 GB, free: 6.527 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.3635, allocations: 8.375 kB / 1.319 GB, free: 6.52 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.3636, allocations: 12.36 kB / 1.319 GB, free: 6.508 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.3638, allocations: 82.14 kB / 1.319 GB, free: 6.422 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.986e-06/0.3638, allocations: 192 / 1.319 GB, free: 6.422 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3639, allocations: 3.938 kB / 1.319 GB, free: 6.418 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3639, allocations: 0 / 1.319 GB, free: 6.418 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.3641, allocations: 71.92 kB / 1.319 GB, free: 6.348 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.3646, allocations: 303.7 kB / 1.32 GB, free: 6.008 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.3648, allocations: 62.47 kB / 1.32 GB, free: 5.938 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.365, allocations: 44.91 kB / 1.32 GB, free: 5.891 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.365, allocations: 0 / 1.32 GB, free: 5.891 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002445/0.3652, allocations: 87.36 kB / 1.32 GB, free: 5.793 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.3652, allocations: 3.938 kB / 1.32 GB, free: 5.789 MB / 1.014 GB
Notification: Performance of matching and sorting (n=6): time 0.0005857/0.3658, allocations: 173.5 kB / 1.32 GB, free: 5.613 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.3659, allocations: 55.41 kB / 1.32 GB, free: 5.547 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.366, allocations: 121.3 kB / 1.32 GB, free: 5.418 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.366, allocations: 25.7 kB / 1.32 GB, free: 5.387 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.776e-05/0.3661, allocations: 96.12 kB / 1.32 GB, free: 5.289 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.767e-05/0.3661, allocations: 15.84 kB / 1.32 GB, free: 5.273 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.349e-05/0.3662, allocations: 37.7 kB / 1.32 GB, free: 5.23 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001481/0.3663, allocations: 326.8 kB / 1.321 GB, free: 4.902 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.3666, allocations: 59.94 kB / 1.321 GB, free: 4.844 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.3668, allocations: 78.53 kB / 1.321 GB, free: 4.758 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003399/0.3671, allocations: 148.1 kB / 1.321 GB, free: 4.598 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.3671, allocations: 0 / 1.321 GB, free: 4.598 MB / 1.014 GB
Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005272/0.3676, allocations: 219.3 kB / 1.321 GB, free: 4.371 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 5.516e-05/0.3677, allocations: 37.7 kB / 1.321 GB, free: 4.328 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.3677, allocations: 4.312 kB / 1.321 GB, free: 4.324 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.3677, allocations: 0 / 1.321 GB, free: 4.324 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.3678, allocations: 19.97 kB / 1.321 GB, free: 4.305 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.3678, allocations: 4 kB / 1.321 GB, free: 4.301 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.3681, allocations: 47.88 kB / 1.321 GB, free: 4.254 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.3681, allocations: 4 kB / 1.321 GB, free: 4.25 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,booPul.y,$PRE.booPul.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (7):
 * Single equations (assignments): 6
 * Array equations: 0
 * Algorithm blocks: 1
 * 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.0001114/0.3682, allocations: 121.7 kB / 1.321 GB, free: 4.121 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 2.631e-05/0.3682, allocations: 11.94 kB / 1.321 GB, free: 4.109 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.3683, allocations: 12.38 kB / 1.321 GB, free: 4.094 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3683, allocations: 0 / 1.321 GB, free: 4.094 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3683, allocations: 0 / 1.321 GB, free: 4.094 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3683, allocations: 0 / 1.321 GB, free: 4.094 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001479/0.3684, allocations: 152.7 kB / 1.321 GB, free: 3.902 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3684, allocations: 4 kB / 1.321 GB, free: 3.898 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.3685, allocations: 19.97 kB / 1.321 GB, free: 3.879 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3685, allocations: 0 / 1.321 GB, free: 3.879 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.3685, allocations: 4 kB / 1.321 GB, free: 3.875 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3685, allocations: 0 / 1.321 GB, free: 3.875 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3685, allocations: 0 / 1.321 GB, free: 3.875 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003756/0.3689, allocations: 160.9 kB / 1.322 GB, free: 3.699 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 9.709e-06/0.3689, allocations: 0 / 1.322 GB, free: 3.699 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/0.3689, allocations: 7.938 kB / 1.322 GB, free: 3.691 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.795e-05/0.369, allocations: 11.97 kB / 1.322 GB, free: 3.68 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.3691, allocations: 8 kB / 1.322 GB, free: 3.672 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-06/0.3691, allocations: 3.984 kB / 1.322 GB, free: 3.668 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.417e-05/0.3691, allocations: 91.28 kB / 1.322 GB, free: 3.578 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8e-08/0.3691, allocations: 4 kB / 1.322 GB, free: 3.574 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002242/0.3694, allocations: 27.98 kB / 1.322 GB, free: 3.547 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: 3 ($whenCondition1,$whenCondition2,booPul.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (6):
 * Single equations (assignments): 5
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 1
 * 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.0001679/0.3695, allocations: 95.78 kB / 1.322 GB, free: 3.445 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0004955/0.37, allocations: 175.3 kB / 1.322 GB, free: 3.262 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.37, allocations: 4.062 kB / 1.322 GB, free: 3.258 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.3702, allocations: 47.95 kB / 1.322 GB, free: 3.211 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.3704, allocations: 28.25 kB / 1.322 GB, free: 3.184 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004089/0.3708, allocations: 170 kB / 1.322 GB, free: 2.992 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.3712, allocations: 0.6923 MB / 1.323 GB, free: 2.273 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 4.223e-05/0.3712, allocations: 11.73 kB / 1.323 GB, free: 2.262 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.236e-05/0.3712, allocations: 11.44 kB / 1.323 GB, free: 2.25 MB / 1.014 GB
Notification: Performance of SimCode: time 3e-07/0.3712, allocations: 0 / 1.323 GB, free: 2.25 MB / 1.014 GB
Notification: Performance of Templates: time 0.00485/0.3761, allocations: 1.607 MB / 1.324 GB, free: 0.6641 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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.067635795101523]