Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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 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.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 110.5 kB / 16.42 MB, free: 6.035 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.001216/0.001216, allocations: 186.1 kB / 17.36 MB, free: 5.621 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.199/1.199, allocations: 222.9 MB / 241 MB, free: 15.17 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 1.983/1.983, allocations: 390.2 MB / 0.6655 GB, free: 0.7148 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.112e-05/2.122e-05, allocations: 2.281 kB / 0.9514 GB, free: 7.758 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001419/0.001454, allocations: 0.6927 MB / 0.9521 GB, free: 7.066 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.002698, allocations: 1.07 MB / 0.9532 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.9e-05/0.002747, allocations: 0 / 0.9532 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.515e-05/0.00278, allocations: 3.938 kB / 0.9532 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.569e-05/0.00284, allocations: 7.875 kB / 0.9532 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.003097, allocations: 47.88 kB / 0.9532 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001116/0.003218, allocations: 79.77 kB / 0.9533 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 8.679e-05/0.003313, allocations: 15.98 kB / 0.9533 GB, free: 5.828 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.644e-05/0.003375, allocations: 27.92 kB / 0.9533 GB, free: 5.801 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.994e-05/0.00343, allocations: 31.89 kB / 0.9534 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.003451, allocations: 8 kB / 0.9534 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 5.498e-05/0.003511, allocations: 19.98 kB / 0.9534 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of combineBinaries: time 7.083e-05/0.003587, allocations: 83.09 kB / 0.9535 GB, free: 5.66 MB / 0.7325 GB Notification: Performance of replaceArrayConstructors: time 2.895e-05/0.003623, allocations: 55.22 kB / 0.9535 GB, free: 5.605 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 1.796e-05/0.003645, allocations: 4 kB / 0.9535 GB, free: 5.602 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.065e-05/0.00366, allocations: 0 / 0.9535 GB, free: 5.602 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: 11 (11) * Number of variables: 11 (11) Notification: Performance of Bindings: time 0.0003809/0.004046, allocations: 407.7 kB / 0.9539 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of FunctionAlias: time 4.544e-05/0.004097, allocations: 19.94 kB / 0.9539 GB, free: 5.082 MB / 0.7325 GB Notification: Performance of Early Inline: time 0.0002719/0.004374, allocations: 276 kB / 0.9542 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of simplify1: time 2.225e-05/0.004405, allocations: 19.97 kB / 0.9542 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of Alias: time 0.0003093/0.004719, allocations: 225 kB / 0.9544 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of simplify2: time 1.869e-05/0.004747, allocations: 15.98 kB / 0.9544 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of Detect States: time 0.0001524/0.004904, allocations: 131.9 kB / 0.9546 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of Events: time 0.0001444/0.005056, allocations: 87.78 kB / 0.9547 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of Partitioning: time 0.0001107/0.005175, allocations: 104.2 kB / 0.9548 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of Causalize: time 0.0003948/0.005576, allocations: 380 kB / 0.9551 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of After Index Reduction Inline: time 0.00022/0.005804, allocations: 288.3 kB / 0.9554 GB, free: 3.434 MB / 0.7325 GB Notification: Performance of Inline: time 0.0003794/0.00619, allocations: 441.1 kB / 0.9558 GB, free: 2.969 MB / 0.7325 GB Notification: Performance of Partitioning: time 2.996e-05/0.006228, allocations: 28.11 kB / 0.9558 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of Cleanup: time 2.004e-05/0.006256, allocations: 27.91 kB / 0.9559 GB, free: 2.906 MB / 0.7325 GB Notification: Performance of Causalize: time 0.0004977/0.006758, allocations: 484.5 kB / 0.9563 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of Tearing: time 9.067e-06/0.006775, allocations: 0 / 0.9563 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of Initialization: time 3.9e-07/0.00678, allocations: 0 / 0.9563 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of Tearing: time 1.714e-06/0.006787, allocations: 4 kB / 0.9563 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of Categorize: time 7.745e-06/0.006801, allocations: 7.938 kB / 0.9563 GB, free: 2.414 MB / 0.7325 GB Notification: Performance of Solve: time 0.0001022/0.006907, allocations: 73.53 kB / 0.9564 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of Jacobian: time 2.805e-06/0.006916, allocations: 0 / 0.9564 GB, free: 2.34 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: .................... 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: ................. 10 (10) {firOrdHol.sampleTrigger, $SEV_0, $TEV_7, $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: ........... 13 (scalar:13, 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: ........... 24 (scalar:24, 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.505e-05/0.006954, allocations: 19.67 kB / 0.9564 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of SimCode: time 0.0005695/0.007528, allocations: 0.9209 MB / 0.9573 GB, free: 1.379 MB / 0.7325 GB Notification: Performance of Templates: time 0.002968/0.01051, allocations: 1.099 MB / 0.9584 GB, free: 288 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.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