Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.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.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 109.1 kB / 16.42 MB, free: 6.473 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.001023/0.001023, allocations: 187.2 kB / 17.36 MB, free: 5.707 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.259/1.259, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.405/2.405, allocations: 461.9 MB / 0.7354 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.83e-05/2.833e-05, allocations: 2.281 kB / 1.055 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold): time 0.001681/0.001722, allocations: 0.6864 MB / 1.055 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001226/0.002958, allocations: 1.069 MB / 1.056 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.593e-05/0.003006, allocations: 4 kB / 1.056 GB, free: 6.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.715e-05/0.003038, allocations: 3.938 kB / 1.056 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.333e-05/0.003096, allocations: 3.938 kB / 1.056 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.003363, allocations: 47.83 kB / 1.056 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.845e-05/0.003471, allocations: 47.91 kB / 1.056 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.003576, allocations: 15.97 kB / 1.056 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.593e-05/0.003639, allocations: 23.86 kB / 1.056 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.728e-05/0.003695, allocations: 27.92 kB / 1.056 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.003715, allocations: 4 kB / 1.057 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.677e-05/0.003786, allocations: 15.98 kB / 1.057 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of combineBinaries: time 7.382e-05/0.003866, allocations: 79.23 kB / 1.057 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 1.996e-05/0.003891, allocations: 39.38 kB / 1.057 GB, free: 5.715 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.713e-05/0.003912, allocations: 3.938 kB / 1.057 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.134e-05/0.003927, allocations: 4 kB / 1.057 GB, free: 5.707 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: 8 (8) * Number of variables: 8 (8) Notification: Performance of Bindings: time 0.0003907/0.004322, allocations: 324.2 kB / 1.057 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of FunctionAlias: time 5.123e-05/0.004378, allocations: 15.88 kB / 1.057 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of Early Inline: time 0.0002329/0.004618, allocations: 208.1 kB / 1.057 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of simplify1: time 2.189e-05/0.004648, allocations: 15.98 kB / 1.057 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of Alias: time 0.000302/0.004957, allocations: 189.2 kB / 1.057 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of simplify2: time 1.68e-05/0.004982, allocations: 11.98 kB / 1.057 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of Events: time 0.0001243/0.005112, allocations: 63.88 kB / 1.057 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of Detect States: time 0.0002094/0.005329, allocations: 96.05 kB / 1.058 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of Partitioning: time 8.281e-05/0.005421, allocations: 68.23 kB / 1.058 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of Causalize: time 0.0002513/0.005678, allocations: 211.9 kB / 1.058 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of After Index Reduction Inline: time 0.0001641/0.00585, allocations: 196.4 kB / 1.058 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of Inline: time 0.0003123/0.006168, allocations: 309.8 kB / 1.058 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of Partitioning: time 2.205e-05/0.006199, allocations: 24.11 kB / 1.058 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of Cleanup: time 1.869e-05/0.006222, allocations: 15.98 kB / 1.058 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of Causalize: time 0.0003104/0.006537, allocations: 267.8 kB / 1.059 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of Tearing: time 7.875e-06/0.006554, allocations: 0 / 1.059 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of Initialization: time 3e-07/0.00656, allocations: 0 / 1.059 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of Tearing: time 4.779e-06/0.006569, allocations: 7.984 kB / 1.059 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of Categorize: time 7.474e-06/0.00658, allocations: 0 / 1.059 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of Solve: time 7.674e-05/0.006661, allocations: 43.89 kB / 1.059 GB, free: 3.379 MB / 0.8262 GB Notification: Performance of Jacobian: time 3.426e-06/0.00667, allocations: 0 / 1.059 GB, free: 3.379 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: .................... 2 (2) {zerOrdHol.ySample, zerOrdHol.firstTrigger} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 6 (6) {zerOrdHol.sampleTrigger, $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: ........... 13 (scalar:13, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, 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.665e-05/0.006713, allocations: 25.09 kB / 1.059 GB, free: 3.363 MB / 0.8262 GB Notification: Performance of SimCode: time 0.0006026/0.00732, allocations: 0.8611 MB / 1.059 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of Templates: time 0.002664/0.009995, allocations: 0.8159 MB / 1.06 GB, free: 1.66 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,zerOrdHol.u,zerOrdHol.y Variables in the result:cos1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,time,zerOrdHol.samplePeriod,zerOrdHol.t0,zerOrdHol.u,zerOrdHol.y