Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001723/0.001723, allocations: 110.2 kB / 18.93 MB, free: 2.945 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.002002/0.002002, allocations: 192.3 kB / 22.23 MB, free: 5.16 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.48/1.48, allocations: 225.6 MB / 251 MB, free: 13.01 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.324/3.324, allocations: 0.4893 GB / 0.7884 GB, free: 33.21 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.Logical.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|logicalSwitch.u1|logicalSwitch.u2|logicalSwitch.u3|logicalSwitch.y",fileNamePrefix="Buildings_latest_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_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 68.89 kB / 1.145 GB, free: 30.7 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.416/0.418, allocations: 174.9 MB / 1.316 GB, free: 9.695 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Switch): time 0.002124/0.4202, allocations: 0.6983 MB / 1.317 GB, free: 9 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001793/0.422, allocations: 1.28 MB / 1.318 GB, free: 7.707 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 5.584e-05/0.422, allocations: 0 / 1.318 GB, free: 7.707 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 3.054e-05/0.422, allocations: 7.875 kB / 1.318 GB, free: 7.699 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 8.585e-05/0.4221, allocations: 23.84 kB / 1.318 GB, free: 7.676 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0008973/0.423, allocations: 314.7 kB / 1.318 GB, free: 7.379 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0003569/0.4234, allocations: 255.6 kB / 1.319 GB, free: 7.129 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.4235, allocations: 12.17 kB / 1.319 GB, free: 7.113 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.4236, allocations: 99.81 kB / 1.319 GB, free: 7.016 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001953/0.4238, allocations: 95.73 kB / 1.319 GB, free: 6.922 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.948e-05/0.4239, allocations: 20 kB / 1.319 GB, free: 6.902 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.424, allocations: 43.97 kB / 1.319 GB, free: 6.859 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.424, allocations: 15.94 kB / 1.319 GB, free: 6.844 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001245/0.4241, allocations: 87.8 kB / 1.319 GB, free: 6.758 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003096/0.4244, allocations: 215.4 kB / 1.319 GB, free: 6.547 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.4244, allocations: 0 / 1.319 GB, free: 6.547 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.613e-06/0.4244, allocations: 0 / 1.319 GB, free: 6.547 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.161e-06/0.4244, allocations: 3.938 kB / 1.319 GB, free: 6.543 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.0006588/0.4251, allocations: 419.2 kB / 1.319 GB, free: 6.086 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.4251, allocations: 8.031 kB / 1.32 GB, free: 6.078 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.103e-05/0.4252, allocations: 16.89 kB / 1.32 GB, free: 6.062 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001261/0.4253, allocations: 118.4 kB / 1.32 GB, free: 5.922 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.4254, allocations: 16.38 kB / 1.32 GB, free: 5.906 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.4254, allocations: 12.38 kB / 1.32 GB, free: 5.895 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.4255, allocations: 62.2 kB / 1.32 GB, free: 5.828 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.4255, allocations: 11.88 kB / 1.32 GB, free: 5.816 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.4256, allocations: 0 / 1.32 GB, free: 5.816 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.4256, allocations: 4 kB / 1.32 GB, free: 5.812 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.166e-05/0.4256, allocations: 23.98 kB / 1.32 GB, free: 5.789 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005919/0.4262, allocations: 387.5 kB / 1.32 GB, free: 5.367 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 7.889e-05/0.4263, allocations: 34.56 kB / 1.32 GB, free: 5.324 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 3.718e-05/0.4263, allocations: 16.86 kB / 1.32 GB, free: 5.305 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 6.152e-06/0.4263, allocations: 0 / 1.32 GB, free: 5.305 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001558/0.4265, allocations: 95.38 kB / 1.32 GB, free: 5.199 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=10): time 1.383e-06/0.4265, allocations: 4 kB / 1.32 GB, free: 5.195 MB / 1.014 GB
Notification: Performance of matching and sorting (n=10): time 0.0003265/0.4268, allocations: 145.5 kB / 1.32 GB, free: 5.047 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.4269, allocations: 55.41 kB / 1.32 GB, free: 4.98 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.427, allocations: 133.8 kB / 1.321 GB, free: 4.84 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.427, allocations: 29.7 kB / 1.321 GB, free: 4.805 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/0.4271, allocations: 108.1 kB / 1.321 GB, free: 4.695 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.4271, allocations: 15.91 kB / 1.321 GB, free: 4.68 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.4273, allocations: 65.67 kB / 1.321 GB, free: 4.609 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001636/0.4274, allocations: 326.8 kB / 1.321 GB, free: 4.281 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002065/0.4277, allocations: 87.95 kB / 1.321 GB, free: 4.195 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.4279, allocations: 139.5 kB / 1.321 GB, free: 4.039 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003261/0.4282, allocations: 239 kB / 1.322 GB, free: 3.766 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4282, allocations: 0 / 1.322 GB, free: 3.766 MB / 1.014 GB
Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006791/0.4289, allocations: 377 kB / 1.322 GB, free: 3.375 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 8.739e-05/0.429, allocations: 101.1 kB / 1.322 GB, free: 3.258 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.429, allocations: 4 kB / 1.322 GB, free: 3.254 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.429, allocations: 192 / 1.322 GB, free: 3.254 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.708e-05/0.4291, allocations: 15.88 kB / 1.322 GB, free: 3.238 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.4291, allocations: 0 / 1.322 GB, free: 3.238 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005072/0.4296, allocations: 84.17 kB / 1.322 GB, free: 3.156 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.4296, allocations: 19.98 kB / 1.322 GB, free: 3.137 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.0001443/0.4298, allocations: 138.6 kB / 1.322 GB, free: 2.992 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.757e-05/0.4298, allocations: 11.89 kB / 1.322 GB, free: 2.98 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.4298, allocations: 12.31 kB / 1.322 GB, free: 2.965 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.4298, allocations: 0 / 1.322 GB, free: 2.965 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4298, allocations: 4 kB / 1.322 GB, free: 2.961 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.4298, allocations: 0 / 1.322 GB, free: 2.961 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/0.43, allocations: 168.6 kB / 1.322 GB, free: 2.754 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.43, allocations: 0 / 1.322 GB, free: 2.754 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.979e-06/0.43, allocations: 0 / 1.322 GB, free: 2.754 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.43, allocations: 8 kB / 1.322 GB, free: 2.746 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.43, allocations: 4 kB / 1.322 GB, free: 2.742 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.43, allocations: 0 / 1.322 GB, free: 2.742 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.43, allocations: 0 / 1.322 GB, free: 2.742 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.4302, allocations: 140.9 kB / 1.323 GB, free: 2.586 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.602e-05/0.4303, allocations: 11.89 kB / 1.323 GB, free: 2.574 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.4303, allocations: 4 kB / 1.323 GB, free: 2.57 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.794e-05/0.4303, allocations: 7.984 kB / 1.323 GB, free: 2.562 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.4303, allocations: 11.98 kB / 1.323 GB, free: 2.551 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.4304, allocations: 8 kB / 1.323 GB, free: 2.543 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 6.537e-05/0.4304, allocations: 97.52 kB / 1.323 GB, free: 2.449 MB / 1.014 GB
Notification: Performance of sort global known variables: time 9e-08/0.4304, allocations: 0 / 1.323 GB, free: 2.449 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002693/0.4307, allocations: 44 kB / 1.323 GB, free: 2.406 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.0001683/0.4309, allocations: 103.7 kB / 1.323 GB, free: 2.297 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0004946/0.4314, allocations: 326.3 kB / 1.323 GB, free: 1.941 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4314, allocations: 4.125 kB / 1.323 GB, free: 1.938 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 6.554e-05/0.4314, allocations: 35.92 kB / 1.323 GB, free: 1.902 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.4317, allocations: 26.38 kB / 1.323 GB, free: 1.879 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004114/0.4321, allocations: 195 kB / 1.323 GB, free: 1.66 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003828/0.4325, allocations: 0.7001 MB / 1.324 GB, free: 0.9336 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 3.435e-05/0.4325, allocations: 8.438 kB / 1.324 GB, free: 0.9258 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.405e-05/0.4325, allocations: 11.44 kB / 1.324 GB, free: 0.9141 MB / 1.014 GB
Notification: Performance of SimCode: time 3.41e-07/0.4325, allocations: 3.938 kB / 1.324 GB, free: 0.9102 MB / 1.014 GB
Notification: Performance of Templates: time 0.006102/0.4386, allocations: 2.668 MB / 1.327 GB, free: 14.28 MB / 1.029 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_Switch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.600430955179036]