Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 111 kB / 17.14 MB, free: 6.039 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.001296/0.001296, allocations: 200.2 kB / 18.08 MB, free: 5.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08203/0.08203, allocations: 12.59 MB / 283.9 MB, free: 15.4 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.842e-05/2.843e-05, allocations: 2.281 kB / 394.8 MB, free: 45.46 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.004072/0.004114, allocations: 2.2 MB / 397 MB, free: 43.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.006211, allocations: 1.215 MB / 398.2 MB, free: 43.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.006409, allocations: 9.688 kB / 398.2 MB, free: 43.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.006866, allocations: 96.33 kB / 398.3 MB, free: 43.07 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0002871/0.007163, allocations: 102.5 kB / 398.4 MB, free: 43.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008326/0.008005, allocations: 322.8 kB / 398.7 MB, free: 42.85 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004557/0.00847, allocations: 367.3 kB / 399 MB, free: 42.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.008695, allocations: 101 kB / 399.1 MB, free: 42.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.008893, allocations: 152.3 kB / 399.3 MB, free: 42.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.009118, allocations: 137.5 kB / 399.4 MB, free: 42.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.00917, allocations: 18.41 kB / 399.4 MB, free: 42.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.009356, allocations: 71.67 kB / 399.5 MB, free: 42.48 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.000331/0.009695, allocations: 449.6 kB / 400 MB, free: 42.16 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001716/0.009875, allocations: 296.7 kB / 400.2 MB, free: 41.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.216e-05/0.009943, allocations: 39.44 kB / 400.3 MB, free: 41.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.376e-05/0.01002, allocations: 18.72 kB / 400.3 MB, free: 41.91 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 (50) * Number of variables: 62 (50) Notification: Performance of Bindings: time 0.001288/0.01131, allocations: 1.188 MB / 401.5 MB, free: 41.01 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001482/0.01147, allocations: 82.92 kB / 401.6 MB, free: 40.96 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0005101/0.01199, allocations: 0.5164 MB / 402.1 MB, free: 40.58 MB / 318.1 MB Notification: Performance of simplify1: time 5.289e-05/0.01205, allocations: 41.06 kB / 402.1 MB, free: 40.55 MB / 318.1 MB Notification: Performance of Alias: time 0.001085/0.01314, allocations: 0.9136 MB / 403 MB, free: 39.79 MB / 318.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:2011:9-2012:55:writable] Error: Internal error NFCeval.evalBuiltinCall: unimplemented case for previous Notification: Performance of simplify2: time 3.482e-05/0.01319, allocations: 21.97 kB / 403.1 MB, free: 39.78 MB / 318.1 MB Notification: Performance of Events: time 0.0001448/0.01334, allocations: 97.58 kB / 403.2 MB, free: 39.71 MB / 318.1 MB Notification: Performance of Detect States: time 0.0003211/0.01367, allocations: 249.4 kB / 403.4 MB, free: 39.52 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002777/0.01395, allocations: 271 kB / 403.7 MB, free: 39.28 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $SEV_5 could not be divided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) sample1.y = $SEV_5 ($RES_SIM_29) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (23/31) ************************** (1) [DISC] (1) Integer sample3.y (2) [DISC] (3) Integer[3] sample1.y (3) [DISS] (1) protected Integer upSample1.dummy (4) [DISC] (1) Integer shiftSample1.y (5) [DISC] (1) protected Integer[1] fractionalDelay.u_buffer (start = {0 for $i1 in 1:1}) (6) [DISC] (1) Integer backSample1.y (7) [DISC] (1) Integer fractionalDelay.y (8) [DISS] (1) protected Integer upSample1.u_super (9) [DISS] (3) Integer[3] assignClock2.y (10) [DISS] (1) Integer upSample1.y (11) [DISC] (1) Boolean $FUN_5 (12) [DISS] (1) Integer hold1.u (start = hold1.y_start) (13) [DISC] (3) Integer[3] assignClock2.u (14) [DISC] (1) Integer sample2.y (15) [DISC] (1) Boolean $SEV_6 (16) [DISC] (1) Boolean $SEV_5 (17) [ALGB] (1) Clock assignClock1.clock (18) [DISC] (1) Integer subSample1.y (19) [DISS] (1) protected Boolean upSample1.b (start = false) (20) [DISC] (3) Integer[3] integerConstant3.y (21) [DISC] (1) Boolean $SEV_0 (22) [DISC] (1) Integer superSample1.y (23) [DISS] (1) protected Boolean upSample1.b_super (start = false) System Equations (23/31) ************************** (1) [ARRY] (3) integerConstant3.y = assignClock2.u ($RES_SIM_46) (2) [SCAL] (1) $SEV_0 = sample(1, sample3.u, Clock()) ($RES_EVT_63) (3) [SCAL] (1) $SEV_5 = sample(2, sample1.u, assignClock1.clock) ($RES_EVT_68) (4) [WHEN] (1)when Clock() then (4) [----] upSample1.y := if upSample1.b_super <> previous(upSample1.b_super) then upSample1.u_super else 0 (4) [----] end when; (5) [SCAL] (1) $SEV_6 = sample(3, integerConstant1.k, assignClock1.clock) ($RES_EVT_69) (6) [WHEN] (1)when Clock() then (6) [----] upSample1.b_super := superSample(upSample1.b, 0) (6) [----] end when; (7) [WHEN] (1)when Clock() then (7) [----] upSample1.u_super := superSample(hold1.u, 2) (7) [----] end when; (8) [WHEN] (1)when Clock() then (8) [----] upSample1.b := not previous(upSample1.b) (8) [----] end when; (9) [WHEN] (1)when Clock() then (9) [----] upSample1.dummy := hold1.u (9) [----] end when; (10) [ARRY] (1) fractionalDelay.u_buffer = if $FUN_5 then fill(hold1.u, 1) else {hold1.u} ($RES_SIM_4) (11) [SCAL] (1) sample3.y = $SEV_0 ($RES_SIM_12) (12) [SCAL] (1) fractionalDelay.y = shiftSample(fractionalDelay.u_buffer[1], 2, 3) ($RES_SIM_3) (13) [SCAL] (1) backSample1.y = backSample(shiftSample1.y, 2, 3) ($RES_SIM_20) (14) [SCAL] (1) shiftSample1.y = shiftSample(sample2.y, 2, 3) ($RES_SIM_21) (15) [SCAL] (1) superSample1.y = superSample(subSample1.y, 2) ($RES_SIM_22) (16) [SCAL] (1) subSample1.y = subSample(hold1.u, 2) ($RES_SIM_23) (17) [WHEN] (3)when assignClock1.clock then (17) [----] assignClock2.y := assignClock2.u (17) [----] end when; (18) [SCAL] (1) sample2.y = $SEV_6 ($RES_SIM_30) (19) [FOR-] (3) ($RES_SIM_25) (19) [----] for $i1 in 1:3 loop (19) [----] [SCAL] (1) integerConstant3[$i1].y = integerConstant3[$i1].k ($RES_SIM_26) (19) [----] end for; (20) [SCAL] (1) $FUN_5 = previous(false) ($RES_$AUX_57) (21) [SCAL] (1) assignClock1.clock = Clock(periodicRealClock.period) ($RES_SIM_33) (22) [WHEN] (1)when assignClock1.clock then (22) [----] hold1.u := sample3.y (22) [----] end when; (23) [ARRY] (3) sample1.y = $SEV_5 ($RES_SIM_29)