Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001501/0.001501, allocations: 104.3 kB / 19.77 MB, free: 2.051 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 215.2 kB / 23.07 MB, free: 4.844 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.385/1.385, allocations: 230.6 MB / 256.9 MB, free: 7.723 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.063/3.063, allocations: 0.5108 GB / 0.8167 GB, free: 17.74 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") translateModel(Buildings.Controls.OBC.CDL.Integers.Validation.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|integerSwitch.u1|integerSwitch.u2|integerSwitch.u3|integerSwitch.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.058e-05, allocations: 2.281 kB / 1.187 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.Switch): time 0.001818/0.001838, allocations: 0.8091 MB / 1.188 GB, free: 12.92 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.00163/0.003469, allocations: 1.304 MB / 1.189 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.003536, allocations: 5.562 kB / 1.189 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 4.917e-05/0.003585, allocations: 14.59 kB / 1.189 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 9.193e-05/0.003677, allocations: 22.12 kB / 1.189 GB, free: 11.95 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008245/0.004502, allocations: 325.4 kB / 1.19 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0004142/0.004916, allocations: 305.4 kB / 1.19 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001265/0.005042, allocations: 29.25 kB / 1.19 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.005203, allocations: 125.6 kB / 1.19 GB, free: 11.59 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001746/0.005377, allocations: 91.5 kB / 1.19 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.122e-05/0.005438, allocations: 26.47 kB / 1.19 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.00555, allocations: 38.92 kB / 1.19 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of combineBinaries: time 0.0002692/0.00582, allocations: 336.2 kB / 1.19 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of replaceArrayConstructors: time 5.647e-05/0.005876, allocations: 142.2 kB / 1.191 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 5.229e-05/0.005928, allocations: 18.59 kB / 1.191 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.145e-05/0.00595, allocations: 7.719 kB / 1.191 GB, free: 11.25 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 (19) * Number of variables: 19 (19) Notification: Performance of [SIM] Bindings: time 0.000915/0.006865, allocations: 0.9065 MB / 1.192 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of [SIM] FunctionAlias: time 5.815e-05/0.006923, allocations: 54.69 kB / 1.192 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of [SIM] Early Inline: time 0.0008641/0.007787, allocations: 0.8477 MB / 1.192 GB, free: 10.09 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 1: time 0.0004129/0.0082, allocations: 333.7 kB / 1.193 GB, free: 9.93 MB / 0.9044 GB Notification: Performance of [SIM] Alias: time 0.001024/0.009224, allocations: 0.7466 MB / 1.193 GB, free: 9.402 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 2: time 0.0003682/0.009592, allocations: 324.5 kB / 1.194 GB, free: 9.246 MB / 0.9044 GB Notification: Performance of [SIM] Remove Stream: time 0.0002788/0.009871, allocations: 279.2 kB / 1.194 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of [SIM] Detect States: time 0.0004427/0.01031, allocations: 370.3 kB / 1.194 GB, free: 8.84 MB / 0.9044 GB Notification: Performance of [SIM] Events: time 9.489e-05/0.01041, allocations: 66.58 kB / 1.194 GB, free: 8.797 MB / 0.9044 GB Notification: Performance of [SIM] Partitioning: time 0.000143/0.01055, allocations: 101.1 kB / 1.195 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of [SIM] Causalize: time 0.0003015/0.01085, allocations: 185.6 kB / 1.195 GB, free: 8.695 MB / 0.9044 GB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0005606/0.01141, allocations: 0.5849 MB / 1.195 GB, free: 8.422 MB / 0.9044 GB Notification: Performance of [INI] Simplify: time 0.000694/0.01211, allocations: 0.542 MB / 1.196 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of [INI] Inline: time 0.0006924/0.0128, allocations: 0.7703 MB / 1.197 GB, free: 7.73 MB / 0.9044 GB Notification: Performance of [INI] Partitioning: time 2.309e-05/0.01282, allocations: 19.03 kB / 1.197 GB, free: 7.711 MB / 0.9044 GB Notification: Performance of [INI] Cleanup: time 0.0001336/0.01296, allocations: 129 kB / 1.197 GB, free: 7.641 MB / 0.9044 GB Notification: Performance of [INI] Causalize: time 0.0005535/0.01351, allocations: 369.4 kB / 1.197 GB, free: 7.566 MB / 0.9044 GB Notification: Performance of [INI] Tearing: time 1.401e-05/0.01352, allocations: 16.28 kB / 1.197 GB, free: 7.555 MB / 0.9044 GB Notification: Performance of [SIM] Initialization: time 5.11e-07/0.01352, allocations: 0 / 1.197 GB, free: 7.555 MB / 0.9044 GB Notification: Performance of [SIM] DAE-Mode: time 1.895e-05/0.01354, allocations: 23.38 kB / 1.197 GB, free: 7.527 MB / 0.9044 GB Notification: Performance of [SIM] Remove Dummies: time 4.569e-06/0.01355, allocations: 1.094 kB / 1.197 GB, free: 7.527 MB / 0.9044 GB Notification: Performance of [SIM] Tearing: time 3.697e-06/0.01355, allocations: 6.25 kB / 1.197 GB, free: 7.523 MB / 0.9044 GB Notification: Performance of [SIM] Categorize: time 7.434e-06/0.01356, allocations: 2.797 kB / 1.197 GB, free: 7.523 MB / 0.9044 GB Notification: Performance of [SIM] Solve: time 0.0001302/0.01369, allocations: 86.83 kB / 1.197 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of [SIM] Jacobian: time 7.304e-06/0.0137, allocations: 1 kB / 1.197 GB, free: 7.488 MB / 0.9044 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 3 (3) {booPul3.y, booPul2.y, booPul1.y} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 11 (11) {integerSwitch.y, booToInt.y, proInt.y, booToInt1.y, proInt1.y, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 11 (scalar:11, array:0, record:0) * Number of multi strong components: ............ 3 (algorithm:0, when:3, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 18 (scalar:18, array:0, record:0) * Number of multi strong components: ............ 3 (algorithm:3, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 9.618e-05/0.01379, allocations: 28.52 kB / 1.197 GB, free: 7.469 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0007167/0.01451, allocations: 0.4986 MB / 1.198 GB, free: 7.227 MB / 0.9044 GB Notification: Performance of Templates: time 0.005847/0.02036, allocations: 2.79 MB / 1.2 GB, free: 6.871 MB / 0.9044 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Validation_Switch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,integerSwitch.u1,integerSwitch.u2,integerSwitch.u3,integerSwitch.y Variables in the result:booPul1.period,booPul1.shift,booPul1.t0,booPul1.t1,booPul1.width,booPul2.period,booPul2.shift,booPul2.t0,booPul2.t1,booPul2.width,booPul2.y,booPul3.period,booPul3.shift,booPul3.t0,booPul3.t1,booPul3.width,booToInt.integerFalse,booToInt.integerTrue,booToInt1.integerFalse,booToInt1.integerTrue,conInt.k,conInt.y,conInt1.k,conInt1.y,integerSwitch.u1,integerSwitch.u2,integerSwitch.u3,integerSwitch.y,proInt.u1,proInt.y,proInt1.u1,proInt1.y,time [Calling sys.exit(0), Time elapsed: 7.974057577026542]