Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001682/0.001682, allocations: 115.6 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001888/0.001888, allocations: 210.3 kB / 19.42 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.115/1.115, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1683/0.1683, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.293e-05/1.294e-05, allocations: 2.281 kB / 481.9 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001912/0.001933, allocations: 1.541 MB / 483.5 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008002/0.002744, allocations: 0.5532 MB / 484 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.626e-05/0.002802, allocations: 7.938 kB / 484 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.002833, allocations: 7.875 kB / 484 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.599e-05/0.002904, allocations: 11.86 kB / 484 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.003105, allocations: 51.88 kB / 484.1 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001304/0.003244, allocations: 99.75 kB / 484.2 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.002e-05/0.00333, allocations: 11.98 kB / 484.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001225/0.003459, allocations: 51.78 kB / 484.2 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.148e-05/0.003528, allocations: 39.83 kB / 484.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.003552, allocations: 8 kB / 484.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.881e-05/0.003595, allocations: 12 kB / 484.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of combineBinaries: time 9.368e-05/0.003694, allocations: 130.6 kB / 484.4 MB, free: 1.621 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 3.044e-05/0.00373, allocations: 70.88 kB / 484.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.357e-05/0.00376, allocations: 19.94 kB / 484.5 MB, free: 1.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.366e-05/0.003778, allocations: 7.938 kB / 484.5 MB, free: 1.523 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.0004209/0.004202, allocations: 467.2 kB / 485 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of FunctionAlias: time 2.196e-05/0.00423, allocations: 19.92 kB / 485 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of Early Inline: time 0.0002243/0.004459, allocations: 276.1 kB / 485.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of simplify1: time 1.77e-05/0.004483, allocations: 15.97 kB / 485.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of Alias: time 0.0002869/0.004776, allocations: 228.7 kB / 485.5 MB, free: 372 kB / 350.1 MB Notification: Performance of simplify2: time 1.458e-05/0.0048, allocations: 11.98 kB / 485.5 MB, free: 360 kB / 350.1 MB Notification: Performance of Events: time 0.0001014/0.004906, allocations: 76.81 kB / 485.6 MB, free: 284 kB / 350.1 MB Notification: Performance of Detect States: time 0.0001608/0.005073, allocations: 168.5 kB / 485.8 MB, free: 104 kB / 350.1 MB Notification: Performance of Partitioning: time 0.00012/0.005201, allocations: 103 kB / 485.9 MB, free: 16 MB / 366.1 MB Notification: Performance of Causalize: time 0.0003985/0.005606, allocations: 393.2 kB / 486.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of After Index Reduction Inline: time 0.0002166/0.005833, allocations: 292.2 kB / 486.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of Inline: time 0.000439/0.006279, allocations: 0.5129 MB / 487 MB, free: 14.75 MB / 366.1 MB Notification: Performance of Partitioning: time 3.698e-05/0.006324, allocations: 36.09 kB / 487.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of Cleanup: time 2.298e-05/0.006352, allocations: 27.91 kB / 487.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of Causalize: time 0.0005752/0.006933, allocations: 0.5525 MB / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Tearing: time 6.622e-06/0.006948, allocations: 0 / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Initialization: time 3e-07/0.006954, allocations: 0 / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Tearing: time 2.795e-06/0.00696, allocations: 3.984 kB / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Categorize: time 7.914e-06/0.006972, allocations: 4 kB / 487.7 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Solve: time 0.0001025/0.007079, allocations: 69.58 kB / 487.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Jacobian: time 2.385e-06/0.007087, allocations: 0 / 487.7 MB, free: 14.04 MB / 366.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: ........... 13 (scalar:13, 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: ........... 28 (scalar:28, 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 4.9e-05/0.00714, allocations: 23.72 kB / 487.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of SimCode: time 0.0005524/0.007697, allocations: 0.9546 MB / 488.7 MB, free: 13.04 MB / 366.1 MB Notification: Performance of Templates: time 0.002681/0.01039, allocations: 1.033 MB / 489.7 MB, free: 12 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,time,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.startTime,zeroOrderHold.ySample