Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 110.5 kB / 16.42 MB, free: 6.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 189.5 kB / 17.36 MB, free: 5.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.203/1.203, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.4/2.4, allocations: 472.6 MB / 0.7459 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.859e-05/1.86e-05, allocations: 2.281 kB / 1.07 GB, free: 9.68 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.001498/0.001529, allocations: 0.7439 MB / 1.071 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001274/0.002815, allocations: 1.08 MB / 1.072 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.002873, allocations: 0 / 1.072 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.107e-05/0.002911, allocations: 7.875 kB / 1.072 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.003018, allocations: 7.938 kB / 1.072 GB, free: 7.828 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.003321, allocations: 55.81 kB / 1.072 GB, free: 7.773 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.003439, allocations: 79.77 kB / 1.072 GB, free: 7.695 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.437e-05/0.003541, allocations: 20.17 kB / 1.072 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 6.613e-05/0.003613, allocations: 31.84 kB / 1.072 GB, free: 7.641 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.191e-05/0.003669, allocations: 35.84 kB / 1.072 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.945e-05/0.003694, allocations: 4 kB / 1.072 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.799e-05/0.003756, allocations: 16 kB / 1.072 GB, free: 7.586 MB / 0.8419 GB Notification: Performance of combineBinaries: time 8.376e-05/0.003845, allocations: 102.9 kB / 1.072 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 2.979e-05/0.00388, allocations: 63.03 kB / 1.072 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.077e-05/0.003906, allocations: 11.94 kB / 1.072 GB, free: 7.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.594e-05/0.003927, allocations: 4 kB / 1.072 GB, free: 7.406 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 (9) * Number of variables: 9 (9) Notification: Performance of Bindings: time 0.0004058/0.004336, allocations: 391.6 kB / 1.073 GB, free: 6.922 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 6.187e-05/0.004404, allocations: 31.81 kB / 1.073 GB, free: 6.891 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.0003084/0.004718, allocations: 272.1 kB / 1.073 GB, free: 6.598 MB / 0.8419 GB Notification: Performance of simplify1: time 3.118e-05/0.004758, allocations: 27.97 kB / 1.073 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of Alias: time 0.0003629/0.005126, allocations: 257.3 kB / 1.073 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of simplify2: time 3.58e-05/0.00517, allocations: 27.97 kB / 1.073 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of Detect States: time 0.0001494/0.005324, allocations: 110.8 kB / 1.073 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of Events: time 0.000121/0.005455, allocations: 75.8 kB / 1.073 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of Partitioning: time 8.768e-05/0.005549, allocations: 72.36 kB / 1.073 GB, free: 5.941 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0002509/0.005806, allocations: 224.1 kB / 1.074 GB, free: 5.699 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 0.000198/0.006012, allocations: 248.6 kB / 1.074 GB, free: 5.43 MB / 0.8419 GB Notification: Performance of Inline: time 0.0003104/0.006328, allocations: 340.7 kB / 1.074 GB, free: 5.062 MB / 0.8419 GB Notification: Performance of Partitioning: time 2.396e-05/0.006359, allocations: 28.05 kB / 1.074 GB, free: 5.027 MB / 0.8419 GB Notification: Performance of Cleanup: time 1.888e-05/0.006384, allocations: 23.97 kB / 1.074 GB, free: 5.004 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0003859/0.006774, allocations: 351.2 kB / 1.075 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of Tearing: time 8.596e-06/0.00679, allocations: 0 / 1.075 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of Initialization: time 4.41e-07/0.006795, allocations: 0 / 1.075 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of Tearing: time 2.454e-06/0.006801, allocations: 0 / 1.075 GB, free: 4.656 MB / 0.8419 GB Notification: Performance of Categorize: time 1.476e-05/0.006819, allocations: 4 kB / 1.075 GB, free: 4.652 MB / 0.8419 GB Notification: Performance of Solve: time 9.017e-05/0.006913, allocations: 59.88 kB / 1.075 GB, free: 4.594 MB / 0.8419 GB Notification: Performance of Jacobian: time 2.766e-06/0.006922, allocations: 0 / 1.075 GB, free: 4.594 MB / 0.8419 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: ......... 3 * 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: .................... 2 (2) {triggeredSampler1.y, triggeredSampler.y} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 8 (8) {samTri.y, samTri1.y, $SEV_1, $SEV_0, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 9 (scalar:9, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:0, when:2, if:0, tuple:0) * Number of for-loop strong components: ......... 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: ........... 17 (scalar:17, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 3.683e-05/0.006963, allocations: 40.78 kB / 1.075 GB, free: 4.559 MB / 0.8419 GB Notification: Performance of SimCode: time 0.0005875/0.007557, allocations: 0.9226 MB / 1.076 GB, free: 3.609 MB / 0.8419 GB Notification: Performance of Templates: time 0.002954/0.01052, allocations: 1.045 MB / 1.077 GB, free: 2.566 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:ramp.duration,ramp.height,ramp.offset,ramp.startTime,samTri.period,samTri.shift,samTri.t0,samTri.y,samTri1.period,samTri1.shift,samTri1.t0,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,triggeredSampler1.u,triggeredSampler1.y,triggeredSampler1.y_start