Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001926/0.001926, allocations: 107.6 kB / 21.2 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002881/0.002881, allocations: 205.2 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2795/0.2795, allocations: 46.96 MB / 361.6 MB, free: 4.02 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5106,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5106,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|sampler.firstTrigger|sampler.y|stateSpace.firstTrigger|stateSpace.x.1.|stateSpace.x.2.|stateSpace.y.1.|transferFunction.firstTrigger|transferFunction.x.1.|transferFunction.x1|transferFunction.xext.1.|transferFunction.xext.2.|transferFunction.y|triggeredMax.y|triggeredSampler.y|unitDelay.firstTrigger|unitDelay.u|unitDelay.y|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.653e-05/2.653e-05, allocations: 2.281 kB / 0.4973 GB, free: 7.258 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003261/0.003287, allocations: 1.889 MB / 0.4991 GB, free: 5.359 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.004722, allocations: 0.6857 MB / 0.4998 GB, free: 4.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.004823, allocations: 7.938 kB / 0.4998 GB, free: 4.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002441/0.005067, allocations: 39.64 kB / 0.4998 GB, free: 4.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.005202, allocations: 67.53 kB / 0.4999 GB, free: 4.555 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.005657, allocations: 119.7 kB / 0.5 GB, free: 4.438 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003871/0.006045, allocations: 343 kB / 0.5003 GB, free: 4.102 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.006246, allocations: 32.58 kB / 0.5004 GB, free: 4.066 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002656/0.006512, allocations: 143.5 kB / 0.5005 GB, free: 3.926 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002457/0.006758, allocations: 151.4 kB / 0.5006 GB, free: 3.777 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.006806, allocations: 20 kB / 0.5007 GB, free: 3.758 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.147e-05/0.006877, allocations: 28 kB / 0.5007 GB, free: 3.73 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.0004389/0.007316, allocations: 479.3 kB / 0.5012 GB, free: 3.258 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002009/0.007517, allocations: 284.3 kB / 0.5014 GB, free: 2.977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.323e-05/0.00757, allocations: 16 kB / 0.5014 GB, free: 2.961 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.216e-05/0.007612, allocations: 15.88 kB / 0.5015 GB, free: 2.945 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 (42) * Number of variables: 44 (42) Notification: Performance of [SIM] Bindings: time 0.001473/0.009086, allocations: 1.237 MB / 0.5027 GB, free: 1.582 MB / 366.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0001349/0.009221, allocations: 117.2 kB / 0.5028 GB, free: 1.453 MB / 366.1 MB Notification: Performance of [SIM] Early Inline: time 0.0008187/0.01004, allocations: 0.7443 MB / 0.5035 GB, free: 0.6836 MB / 366.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0002738/0.01031, allocations: 180.5 kB / 0.5037 GB, free: 472 kB / 366.1 MB Notification: Performance of [SIM] Alias: time 0.001025/0.01134, allocations: 0.6339 MB / 0.5043 GB, free: 15.76 MB / 382.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0002513/0.01159, allocations: 188.6 kB / 0.5045 GB, free: 15.53 MB / 382.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0001367/0.01173, allocations: 114.8 kB / 0.5046 GB, free: 15.39 MB / 382.1 MB Notification: Performance of [SIM] Detect States: time 0.0006014/0.01233, allocations: 374.3 kB / 0.5049 GB, free: 14.97 MB / 382.1 MB Notification: Performance of [SIM] Events: time 0.0001992/0.01253, allocations: 107.5 kB / 0.505 GB, free: 14.86 MB / 382.1 MB Notification: Performance of [SIM] Partitioning: time 0.0004188/0.01295, allocations: 327.4 kB / 0.5054 GB, free: 14.54 MB / 382.1 MB Notification: Performance of [SIM] Causalize: time 0.0009282/0.01387, allocations: 0.5849 MB / 0.5059 GB, free: 13.95 MB / 382.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0006254/0.0145, allocations: 0.6243 MB / 0.5065 GB, free: 13.32 MB / 382.1 MB Notification: Performance of [INI] Simplify: time 0.0008838/0.01538, allocations: 0.5228 MB / 0.507 GB, free: 12.72 MB / 382.1 MB Notification: Performance of [INI] Inline: time 0.0009709/0.01635, allocations: 0.9756 MB / 0.508 GB, free: 11.74 MB / 382.1 MB Notification: Performance of [INI] Partitioning: time 5.746e-05/0.01641, allocations: 32 kB / 0.508 GB, free: 11.7 MB / 382.1 MB Notification: Performance of [INI] Cleanup: time 0.0001411/0.01655, allocations: 159.8 kB / 0.5082 GB, free: 11.55 MB / 382.1 MB Notification: Performance of [INI] Causalize: time 0.002308/0.01886, allocations: 1.62 MB / 0.5098 GB, free: 9.914 MB / 382.1 MB Notification: Performance of [INI] Tearing: time 4.548e-05/0.01891, allocations: 44 kB / 0.5098 GB, free: 9.871 MB / 382.1 MB Notification: Performance of [SIM] Initialization: time 5.21e-07/0.01891, allocations: 0 / 0.5098 GB, free: 9.871 MB / 382.1 MB Notification: Performance of [SIM] Remove Dummies: time 9.678e-06/0.01892, allocations: 0.75 kB / 0.5098 GB, free: 9.867 MB / 382.1 MB Notification: Performance of [SIM] Tearing: time 1.32e-05/0.01893, allocations: 24 kB / 0.5098 GB, free: 9.844 MB / 382.1 MB Notification: Performance of [SIM] Categorize: time 1.105e-05/0.01894, allocations: 4 kB / 0.5098 GB, free: 9.84 MB / 382.1 MB Notification: Performance of [SIM] Solve: time 0.0005085/0.01945, allocations: 321.7 kB / 0.5101 GB, free: 9.531 MB / 382.1 MB Notification: Performance of [SIM] Jacobian: time 1.008e-05/0.01946, allocations: 0 / 0.5101 GB, free: 9.531 MB / 382.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: .................... 24 (22) {triggeredMax.y, booleanPulse.pulseStart, triggeredSampler.y, stateSpace.firstTrigger, stateSpace.y, stateSpace.x, transferFunction.firstTrigger, transferFunction.y, transferFunction.x, transferFunction.xext, transferFunction.x1, unitDelay.firstTrigger, unitDelay.y, firstOrderHold.firstTrigger, firstOrderHold.c, firstOrderHold.pre_uSample, firstOrderHold.uSample, firstOrderHold.tSample, zeroOrderHold.firstTrigger, zeroOrderHold.ySample, sampler.firstTrigger, sampler.y} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 18 (18) {sampler.sampleTrigger, zeroOrderHold.sampleTrigger, firstOrderHold.sampleTrigger, unitDelay.sampleTrigger, transferFunction.sampleTrigger, stateSpace.sampleTrigger, triggeredSampler.trigger, $SEV_0, $TEV_9, $TEV_8, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Warning: Cannot classify strong component: BLOCK: Sliced Component (status = Solve.EXPLICIT, size = 2) ------------------------------------------------------------- ### Variable: transferFunction.xext ### Equation: [WHEN] (2) ($RES_SIM_20) [----] when transferFunction.sampleTrigger then [----] transferFunction.xext := {transferFunction.x1, $PRE.transferFunction.x[1]} [----] end when; Warning: Cannot classify strong component: BLOCK: Sliced Component (status = Solve.EXPLICIT, size = 2) ------------------------------------------------------------- ### Variable: stateSpace.x ### Equation: [WHEN] (2) ($RES_SIM_15) [----] when stateSpace.sampleTrigger then [----] stateSpace.x := stateSpace.A * $PRE.stateSpace.x + stateSpace.B * stateSpace.u [----] end when; Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 23 (scalar:23, array:0, record:0) * Number of multi strong components: ............ 20 (algorithm:0, when:20, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 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: ........... 73 (scalar:65, array:8, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 0.0001922/0.01965, allocations: 69.91 kB / 0.5102 GB, free: 9.469 MB / 382.1 MB Notification: Performance of SimCode: time 0.001602/0.02125, allocations: 0.8449 MB / 0.511 GB, free: 8.59 MB / 382.1 MB Notification: Performance of Templates: time 0.00745/0.0287, allocations: 2.988 MB / 0.5139 GB, free: 5.637 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Discrete/Discrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Discrete.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.741253416985273]