Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 110.8 kB / 16.42 MB, free: 6.461 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.001307/0.001307, allocations: 190 kB / 17.36 MB, free: 5.699 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.253/1.253, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.315/2.315, allocations: 461.9 MB / 0.7354 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.196e-05/2.208e-05, allocations: 2.281 kB / 1.055 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.001584/0.001618, allocations: 0.6997 MB / 1.055 GB, free: 7.098 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.002928, allocations: 1.069 MB / 1.056 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.864e-05/0.002987, allocations: 0 / 1.056 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.883e-05/0.003023, allocations: 3.938 kB / 1.056 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.003113, allocations: 15.92 kB / 1.056 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002843/0.003403, allocations: 43.83 kB / 1.056 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.003525, allocations: 71.88 kB / 1.056 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.435e-05/0.003626, allocations: 15.94 kB / 1.056 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.213e-05/0.003704, allocations: 23.92 kB / 1.057 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.498e-05/0.003766, allocations: 39.77 kB / 1.057 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.003786, allocations: 8 kB / 1.057 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.637e-05/0.003858, allocations: 23.98 kB / 1.057 GB, free: 5.773 MB / 0.8262 GB Notification: Performance of combineBinaries: time 7.292e-05/0.003937, allocations: 87.16 kB / 1.057 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 2.545e-05/0.003968, allocations: 51.2 kB / 1.057 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.143e-05/0.003993, allocations: 8 kB / 1.057 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.557e-05/0.004013, allocations: 7.938 kB / 1.057 GB, free: 5.621 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 (11) * Number of variables: 11 (11) Notification: Performance of Bindings: time 0.0004388/0.004456, allocations: 387.8 kB / 1.057 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of FunctionAlias: time 6.601e-05/0.004529, allocations: 23.88 kB / 1.057 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of Early Inline: time 0.0003083/0.004843, allocations: 280.1 kB / 1.057 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of simplify1: time 2.597e-05/0.004877, allocations: 15.97 kB / 1.057 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of Alias: time 0.0003658/0.005248, allocations: 229 kB / 1.058 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of simplify2: time 3.581e-05/0.005293, allocations: 19.95 kB / 1.058 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of Events: time 0.0001648/0.005464, allocations: 91.81 kB / 1.058 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of Detect States: time 0.0001914/0.005664, allocations: 138.2 kB / 1.058 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of Partitioning: time 0.0001265/0.005799, allocations: 104.1 kB / 1.058 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of Causalize: time 0.0004062/0.006212, allocations: 350.6 kB / 1.058 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of After Index Reduction Inline: time 0.0002326/0.006452, allocations: 280.4 kB / 1.059 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of Inline: time 0.0004111/0.00687, allocations: 435 kB / 1.059 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of Partitioning: time 3.145e-05/0.00691, allocations: 32.06 kB / 1.059 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of Cleanup: time 3.28e-05/0.006948, allocations: 31.84 kB / 1.059 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of Causalize: time 0.0005229/0.007476, allocations: 447.2 kB / 1.059 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of Tearing: time 1.141e-05/0.007496, allocations: 3.984 kB / 1.059 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of Initialization: time 3.91e-07/0.007501, allocations: 0 / 1.059 GB, free: 2.52 MB / 0.8262 GB Notification: Performance of Tearing: time 5.411e-06/0.00751, allocations: 7.938 kB / 1.059 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of Categorize: time 1.168e-05/0.007526, allocations: 0 / 1.059 GB, free: 2.512 MB / 0.8262 GB Notification: Performance of Solve: time 0.0001064/0.007637, allocations: 64.45 kB / 1.06 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of Jacobian: time 4.398e-06/0.007647, allocations: 4 kB / 1.06 GB, free: 2.445 MB / 0.8262 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: ......... 2 * 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: .................... 5 (5) {firOrdHol.pre_uSample, firOrdHol.firstTrigger, firOrdHol.uSample, firOrdHol.tSample, firOrdHol.c} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 9 (9) {firOrdHol.sampleTrigger, $SEV_0, $TEV_6, $TEV_5, $TEV_4, $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: ........... 12 (scalar:12, array:0, record:0) * Number of multi strong components: ............ 5 (algorithm:0, when:5, 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: ........... 23 (scalar:23, 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 5.013e-05/0.007702, allocations: 22.69 kB / 1.06 GB, free: 2.43 MB / 0.8262 GB Notification: Performance of SimCode: time 0.0006361/0.008344, allocations: 0.9348 MB / 1.06 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of Templates: time 0.003294/0.01165, allocations: 1.075 MB / 1.062 GB, free: 400 kB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,firOrdHol.u,firOrdHol.y Variables in the result:cos1.y,firOrdHol.samplePeriod,firOrdHol.t0,firOrdHol.u,firOrdHol.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time