Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zerOrdHol.u|zerOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 109.1 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.001176/0.001176, 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.197/1.197, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.033/2.033, allocations: 390.2 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.885e-05/1.884e-05, allocations: 2.281 kB / 0.9514 GB, free: 7.715 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001398/0.001428, allocations: 0.6756 MB / 0.9521 GB, free: 7.039 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001267/0.002707, allocations: 1.066 MB / 0.9531 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.13e-05/0.00276, allocations: 3.938 kB / 0.9531 GB, free: 5.953 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.435e-05/0.002803, allocations: 7.938 kB / 0.9532 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.683e-05/0.002865, allocations: 3.938 kB / 0.9532 GB, free: 5.941 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.003142, allocations: 35.89 kB / 0.9532 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.36e-05/0.003245, allocations: 63.78 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.84e-05/0.003339, allocations: 11.98 kB / 0.9533 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 6.748e-05/0.003412, allocations: 27.91 kB / 0.9533 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.466e-05/0.003462, allocations: 19.92 kB / 0.9533 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.27e-05/0.00348, allocations: 4 kB / 0.9533 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.484e-05/0.003539, allocations: 15.98 kB / 0.9533 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of combineBinaries: time 6.602e-05/0.00361, allocations: 67.31 kB / 0.9534 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of replaceArrayConstructors: time 2.251e-05/0.003638, allocations: 47.31 kB / 0.9534 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.793e-05/0.00366, allocations: 4 kB / 0.9534 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.737e-05/0.003682, allocations: 11.86 kB / 0.9535 GB, free: 5.637 MB / 0.7325 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.0003542/0.00404, allocations: 316.2 kB / 0.9538 GB, free: 5.227 MB / 0.7325 GB Notification: Performance of FunctionAlias: time 4.775e-05/0.004094, allocations: 15.94 kB / 0.9538 GB, free: 5.211 MB / 0.7325 GB Notification: Performance of Early Inline: time 0.0002209/0.004321, allocations: 200.2 kB / 0.954 GB, free: 4.988 MB / 0.7325 GB Notification: Performance of simplify1: time 2.114e-05/0.004351, allocations: 15.98 kB / 0.954 GB, free: 4.973 MB / 0.7325 GB Notification: Performance of Alias: time 0.0003012/0.004657, allocations: 201 kB / 0.9542 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of simplify2: time 1.694e-05/0.004683, allocations: 7.984 kB / 0.9542 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of Detect States: time 0.0001956/0.004883, allocations: 80.17 kB / 0.9543 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of Events: time 0.0001263/0.005017, allocations: 55.89 kB / 0.9543 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of Partitioning: time 8.263e-05/0.005107, allocations: 64.23 kB / 0.9544 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of Causalize: time 0.0002624/0.005375, allocations: 231.9 kB / 0.9546 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of After Index Reduction Inline: time 0.0001587/0.00555, allocations: 196.4 kB / 0.9548 GB, free: 4.027 MB / 0.7325 GB Notification: Performance of Inline: time 0.0003326/0.005888, allocations: 320 kB / 0.9551 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of Partitioning: time 1.765e-05/0.005914, allocations: 16.12 kB / 0.9551 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of Cleanup: time 1.658e-05/0.005935, allocations: 11.98 kB / 0.9551 GB, free: 3.645 MB / 0.7325 GB Notification: Performance of Causalize: time 0.0003081/0.006248, allocations: 287.7 kB / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of Tearing: time 8.435e-06/0.006264, allocations: 0 / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of Initialization: time 3.61e-07/0.00627, allocations: 0 / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of Tearing: time 4.649e-06/0.006278, allocations: 0 / 0.9554 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of Categorize: time 9.107e-06/0.00629, allocations: 7.938 kB / 0.9554 GB, free: 3.352 MB / 0.7325 GB Notification: Performance of Solve: time 7.39e-05/0.006369, allocations: 39.95 kB / 0.9554 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of Jacobian: time 3.387e-06/0.006379, allocations: 0 / 0.9554 GB, free: 3.312 MB / 0.7325 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.205e-05/0.006415, allocations: 14.97 kB / 0.9554 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of SimCode: time 0.000563/0.006982, allocations: 0.8813 MB / 0.9563 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of Templates: time 0.002521/0.009513, allocations: 0.8167 MB / 0.9571 GB, free: 1.586 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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