Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 112.9 kB / 20.54 MB, free: 1.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 185.8 kB / 23.71 MB, free: 5.402 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.236/1.236, allocations: 225.6 MB / 252.3 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1857/0.1857, allocations: 44.92 MB / 352.4 MB, free: 12.23 MB / 286.1 MB " [Timeout remaining time 180] 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.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.0.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.0.0_ModelicaTest.Blocks.Discrete") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.302e-05/1.302e-05, allocations: 6.219 kB / 495.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002603/0.002616, allocations: 1.954 MB / 497.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.003635, allocations: 0.6661 MB / 498.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.434e-05/0.0037, allocations: 0 / 498.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000185/0.003885, allocations: 43.64 kB / 498.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.004001, allocations: 71.53 kB / 498.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003111/0.004312, allocations: 107.8 kB / 498.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.004609, allocations: 307.1 kB / 499.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.004731, allocations: 32.39 kB / 499.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.004891, allocations: 139.4 kB / 499.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.005072, allocations: 143.5 kB / 499.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.005108, allocations: 20 kB / 499.4 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.515e-05/0.005143, allocations: 20 kB / 499.4 MB, free: 14.42 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.0003376/0.005481, allocations: 423.7 kB / 499.8 MB, free: 14 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001463/0.005627, allocations: 244.5 kB / 0.4883 GB, free: 13.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.361e-05/0.005681, allocations: 35.88 kB / 0.4884 GB, free: 13.72 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.201e-05/0.005713, allocations: 15.88 kB / 0.4884 GB, free: 13.71 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 Bindings: time 0.0009629/0.006676, allocations: 0.9778 MB / 0.4893 GB, free: 12.61 MB / 366.1 MB Notification: Performance of FunctionAlias: time 0.0001107/0.006787, allocations: 78.7 kB / 0.4894 GB, free: 12.54 MB / 366.1 MB Notification: Performance of Early Inline: time 0.0004217/0.007208, allocations: 442.2 kB / 0.4898 GB, free: 12.08 MB / 366.1 MB Notification: Performance of Simplify 1: time 0.0001366/0.007345, allocations: 122.5 kB / 0.4899 GB, free: 11.93 MB / 366.1 MB Notification: Performance of Alias: time 0.0006411/0.007986, allocations: 468.8 kB / 0.4904 GB, free: 11.41 MB / 366.1 MB Notification: Performance of Simplify 2: time 0.0001312/0.008117, allocations: 126.5 kB / 0.4905 GB, free: 11.26 MB / 366.1 MB Notification: Performance of Remove Stream: time 0.0001017/0.008219, allocations: 102.5 kB / 0.4906 GB, free: 11.13 MB / 366.1 MB Notification: Performance of Detect States: time 0.0004188/0.008638, allocations: 360.9 kB / 0.491 GB, free: 10.74 MB / 366.1 MB Notification: Performance of Events: time 0.0001434/0.008781, allocations: 103.9 kB / 0.4911 GB, free: 10.64 MB / 366.1 MB Notification: Performance of Partitioning: time 0.000272/0.009053, allocations: 263 kB / 0.4913 GB, free: 10.37 MB / 366.1 MB Notification: Performance of Causalize: time 0.001023/0.01008, allocations: 0.8184 MB / 0.4921 GB, free: 9.547 MB / 366.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003672/0.01044, allocations: 411.5 kB / 0.4925 GB, free: 9.145 MB / 366.1 MB Notification: Performance of Simplify: time 0.0005584/0.011, allocations: 445.1 kB / 0.4929 GB, free: 8.656 MB / 366.1 MB Notification: Performance of Inline: time 0.0005569/0.01156, allocations: 0.5656 MB / 0.4935 GB, free: 8.086 MB / 366.1 MB Notification: Performance of Partitioning: time 5.111e-05/0.01161, allocations: 39.55 kB / 0.4935 GB, free: 8.043 MB / 366.1 MB Notification: Performance of Cleanup: time 0.0001412/0.01175, allocations: 167.8 kB / 0.4937 GB, free: 7.879 MB / 366.1 MB Notification: Performance of Causalize: time 0.002341/0.01409, allocations: 1.859 MB / 0.4955 GB, free: 6.02 MB / 366.1 MB Notification: Performance of Tearing: time 1.313e-05/0.0141, allocations: 7.938 kB / 0.4955 GB, free: 6.012 MB / 366.1 MB Notification: Performance of Initialization: time 2.81e-07/0.01411, allocations: 0 / 0.4955 GB, free: 6.012 MB / 366.1 MB Notification: Performance of Remove Dummies: time 4.298e-06/0.01411, allocations: 4.375 kB / 0.4955 GB, free: 6.008 MB / 366.1 MB Notification: Performance of Tearing: time 1.924e-06/0.01411, allocations: 0 / 0.4955 GB, free: 6.008 MB / 366.1 MB Notification: Performance of Categorize: time 5.851e-06/0.01412, allocations: 0 / 0.4955 GB, free: 6.008 MB / 366.1 MB Notification: Performance of Solve: time 0.0002339/0.01435, allocations: 150.4 kB / 0.4956 GB, free: 5.863 MB / 366.1 MB Notification: Performance of Jacobian: time 3.226e-06/0.01435, allocations: 0 / 0.4956 GB, free: 5.863 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: .................... 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) --------------------------------------------------- ### 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) --------------------------------------------------- ### 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: ........... 71 (scalar:67, array:4, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 2 (resizable: 2, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 9.546e-05/0.01445, allocations: 61.75 kB / 0.4957 GB, free: 5.809 MB / 366.1 MB Notification: Performance of SimCode: time 0.00104/0.01549, allocations: 1.395 MB / 0.4971 GB, free: 4.379 MB / 366.1 MB Notification: Performance of Templates: time 0.005667/0.02116, allocations: 2.684 MB / 0.4997 GB, free: 1.691 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Discrete_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Discrete/Discrete.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 4.075944121927023]