Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 106.2 kB / 18.46 MB, free: 4.594 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.001182/0.001182, allocations: 188.3 kB / 19.39 MB, free: 3.672 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.359/1.359, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2171/0.2171, allocations: 44.19 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.423e-05/5.425e-05, allocations: 5.516 kB / 471.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002884/0.002946, allocations: 1.521 MB / 472.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009788/0.003938, allocations: 490.8 kB / 473.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.978e-05/0.004009, allocations: 4 kB / 473.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.229e-05/0.004047, allocations: 3.938 kB / 473.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.004156, allocations: 15.84 kB / 473.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.004377, allocations: 39.83 kB / 473.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000148/0.004543, allocations: 99.69 kB / 473.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.004689, allocations: 8 kB / 473.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001864/0.004886, allocations: 51.77 kB / 473.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.674e-05/0.004984, allocations: 39.84 kB / 473.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.005017, allocations: 8 kB / 473.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.005041, allocations: 8 kB / 473.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.0001465/0.005192, allocations: 122.6 kB / 473.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 5.587e-05/0.005255, allocations: 67.03 kB / 473.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.976e-05/0.005302, allocations: 15.94 kB / 473.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.832e-05/0.005326, allocations: 3.938 kB / 473.6 MB, free: 10.75 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 (14) * Number of variables: 14 (14) Notification: Performance of Bindings: time 0.000606/0.005937, allocations: 462 kB / 474.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of FunctionAlias: time 8.267e-05/0.006028, allocations: 19.98 kB / 474.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Early Inline: time 0.0002739/0.006309, allocations: 248.1 kB / 474.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of simplify1: time 3.429e-05/0.00635, allocations: 15.97 kB / 474.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of Alias: time 0.000492/0.006849, allocations: 228.5 kB / 474.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simplify2: time 1.869e-05/0.006877, allocations: 16.17 kB / 474.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of Events: time 0.0001362/0.007019, allocations: 76.92 kB / 474.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of Detect States: time 0.0002624/0.007289, allocations: 149.7 kB / 474.8 MB, free: 9.363 MB / 350.1 MB Notification: Performance of Partitioning: time 0.0001481/0.007445, allocations: 116 kB / 474.9 MB, free: 9.242 MB / 350.1 MB Notification: Performance of Causalize: time 0.0005037/0.007957, allocations: 401.7 kB / 475.3 MB, free: 8.848 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003029/0.008268, allocations: 292.2 kB / 475.6 MB, free: 8.535 MB / 350.1 MB Notification: Performance of Inline: time 0.0005077/0.008785, allocations: 451.1 kB / 476.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of Partitioning: time 4.112e-05/0.008837, allocations: 40.05 kB / 476.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of Cleanup: time 3.492e-05/0.008878, allocations: 31.89 kB / 476.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of Causalize: time 0.0007384/0.009622, allocations: 0.5538 MB / 476.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of Tearing: time 9.858e-06/0.00964, allocations: 4 kB / 476.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of Initialization: time 3.21e-07/0.009646, allocations: 0 / 476.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of Tearing: time 1.242e-06/0.009654, allocations: 0 / 476.7 MB, free: 7.418 MB / 350.1 MB Notification: Performance of Categorize: time 2.111e-05/0.00968, allocations: 3.938 kB / 476.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of Solve: time 0.0001386/0.009823, allocations: 77.77 kB / 476.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of Jacobian: time 4.799e-06/0.009834, allocations: 0 / 476.8 MB, free: 7.34 MB / 350.1 MB 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: ......... 1 * 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: .................... 7 (7) {firstOrderHold.firstTrigger, firstOrderHold.tSample, firstOrderHold.uSample, firstOrderHold.c, firstOrderHold.pre_uSample, zeroOrderHold.firstTrigger, zeroOrderHold.ySample} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 10 (10) {zeroOrderHold.sampleTrigger, firstOrderHold.sampleTrigger, $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: ........... 14 (scalar:14, array:0, record:0) * Number of multi strong components: ............ 7 (algorithm:0, when:7, 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: ........... 29 (scalar:29, 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 0.000122/0.009963, allocations: 28.16 kB / 476.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of SimCode: time 0.0009018/0.01087, allocations: 0.9375 MB / 477.7 MB, free: 6.352 MB / 350.1 MB Notification: Performance of Templates: time 0.003685/0.01457, allocations: 1.023 MB / 478.7 MB, free: 5.328 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.tSample,firstOrderHold.uSample,zeroOrderHold.firstTrigger,zeroOrderHold.ySample Variables in the result:firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.uSample,period,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.startTime,zeroOrderHold.ySample