Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds.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.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 113.5 kB / 17.14 MB, free: 5.914 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.00117/0.00117, allocations: 197.3 kB / 18.08 MB, free: 4.992 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.443/1.443, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.076/0.076, allocations: 12.59 MB / 283.9 MB, free: 15.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.399e-05/2.409e-05, allocations: 5.094 kB / 394.8 MB, free: 45.38 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestBooleanSamplerAndHolds): time 0.003084/0.003122, allocations: 1.828 MB / 396.6 MB, free: 44.12 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.004462, allocations: 0.6984 MB / 397.3 MB, free: 43.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.004631, allocations: 9.125 kB / 397.3 MB, free: 43.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.004948, allocations: 33.8 kB / 397.3 MB, free: 43.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.346e-05/0.00502, allocations: 27.8 kB / 397.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/0.005566, allocations: 129.5 kB / 397.5 MB, free: 43.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.005944, allocations: 238.9 kB / 397.7 MB, free: 43.41 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001968/0.006148, allocations: 91.14 kB / 397.8 MB, free: 43.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.00627, allocations: 81.2 kB / 397.9 MB, free: 43.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.006422, allocations: 94.19 kB / 398 MB, free: 43.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.61e-05/0.006464, allocations: 13.47 kB / 398 MB, free: 43.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.896e-05/0.006497, allocations: 15.16 kB / 398 MB, free: 43.26 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0002118/0.006714, allocations: 315.4 kB / 398.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001059/0.006827, allocations: 224.9 kB / 398.5 MB, free: 42.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.006881, allocations: 32.47 kB / 398.6 MB, free: 42.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.755e-05/0.006934, allocations: 16.88 kB / 398.6 MB, free: 42.84 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: 57 (45) * Number of variables: 57 (45) Notification: Performance of Bindings: time 0.0008206/0.00776, allocations: 0.7801 MB / 399.4 MB, free: 42.21 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.000106/0.007873, allocations: 55.83 kB / 399.4 MB, free: 42.18 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0004436/0.008323, allocations: 438.1 kB / 399.8 MB, free: 41.9 MB / 318.1 MB Notification: Performance of simplify1: time 5.362e-05/0.008383, allocations: 24 kB / 399.9 MB, free: 41.89 MB / 318.1 MB Notification: Performance of Alias: time 0.001037/0.009428, allocations: 0.7766 MB / 400.6 MB, free: 41.29 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.163e-05/0.009469, allocations: 13.66 kB / 400.7 MB, free: 41.29 MB / 318.1 MB Notification: Performance of Events: time 0.000141/0.009616, allocations: 82.73 kB / 400.7 MB, free: 41.23 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002672/0.00989, allocations: 205.7 kB / 400.9 MB, free: 41.09 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002426/0.01014, allocations: 215.2 kB / 401.1 MB, free: 40.91 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency $SEV_2 could not be divided by the body size 3 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (3) sample1.y = $SEV_2 ($RES_SIM_25) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (23/31) ************************** (1) [DISC] (1) Boolean sample3.y (2) [DISC] (1) Boolean superSample1.u (3) [DISC] (3) Boolean[3] sample1.y (4) [DISS] (1) protected Boolean upSample1.dummy (5) [DISC] (1) Boolean ClockedSignalToSquare.u (6) [DISC] (1) protected Boolean[1] fractionalDelay.u_buffer (start = {false for $i1 in 1:1}) (7) [DISC] (1) Boolean backSample1.y (8) [DISC] (1) Boolean shiftSample1.u (9) [DISC] (1) Boolean fractionalDelay.y (10) [DISS] (1) protected Boolean upSample1.u_super (11) [DISS] (3) Boolean[3] assignClock2.y (12) [DISS] (1) Boolean upSample1.y (13) [DISC] (1) Boolean $FUN_5 (14) [DISS] (1) Boolean subSample1.u (15) [DISC] (3) Boolean[3] assignClock2.u (16) [ALGB] (1) Clock assignClock1.clock (17) [DISS] (1) protected Boolean upSample1.b (start = false) (18) [DISC] (1) Boolean $SEV_3 (19) [DISC] (1) Boolean $SEV_2 (20) [DISC] (1) Boolean $SEV_0 (21) [DISC] (1) Boolean superSample1.y (22) [DISS] (1) protected Boolean upSample1.b_super (start = false) (23) [DISC] (3) Boolean[3] booleanConstant1.y System Equations (23/31) ************************** (1) [ARRY] (3) assignClock2.u = booleanConstant1.y ($RES_SIM_43) (2) [SCAL] (1) $SEV_0 = sample(1, booleanConstant.y, Clock()) ($RES_EVT_54) (3) [SCAL] (1) $SEV_2 = sample(3, sample1.u, assignClock1.clock) ($RES_EVT_56) (4) [SCAL] (1) $SEV_3 = sample(4, booleanConstant2.k, assignClock1.clock) ($RES_EVT_57) (5) [WHEN] (1)when Clock() then (5) [----] upSample1.b := not previous(upSample1.b) (5) [----] end when; (6) [WHEN] (1)when Clock() then (6) [----] upSample1.y := if upSample1.b_super <> previous(upSample1.b_super) then upSample1.u_super else false (6) [----] end when; (7) [WHEN] (1)when Clock() then (7) [----] upSample1.b_super := superSample(upSample1.b, 0) (7) [----] end when; (8) [WHEN] (1)when Clock() then (8) [----] upSample1.u_super := superSample(subSample1.u, 2) (8) [----] end when; (9) [WHEN] (1)when Clock() then (9) [----] upSample1.dummy := subSample1.u (9) [----] end when; (10) [SCAL] (1) sample3.y = $SEV_0 ($RES_SIM_11) (11) [ARRY] (1) fractionalDelay.u_buffer = if $FUN_5 then fill(subSample1.u, 1) else {subSample1.u} ($RES_SIM_3) (12) [SCAL] (1) fractionalDelay.y = shiftSample(fractionalDelay.u_buffer[1], 2, 3) ($RES_SIM_2) (13) [SCAL] (1) backSample1.y = backSample(ClockedSignalToSquare.u, 2, 3) ($RES_SIM_1) (14) [SCAL] (1) ClockedSignalToSquare.u = shiftSample(shiftSample1.u, 2, 3) ($RES_SIM_21) (15) [SCAL] (1) superSample1.y = superSample(superSample1.u, 2) ($RES_SIM_22) (16) [SCAL] (1) superSample1.u = subSample(subSample1.u, 2) ($RES_SIM_23) (17) [FOR-] (3) ($RES_SIM_17) (17) [----] for $i1 in 1:3 loop (17) [----] [SCAL] (1) booleanConstant1[$i1].y = booleanConstant1[$i1].k ($RES_SIM_18) (17) [----] end for; (18) [SCAL] (1) $FUN_5 = previous(false) ($RES_$AUX_48) (19) [WHEN] (3)when assignClock1.clock then (19) [----] assignClock2.y := assignClock2.u (19) [----] end when; (20) [ARRY] (3) sample1.y = $SEV_2 ($RES_SIM_25) (21) [SCAL] (1) shiftSample1.u = $SEV_3 ($RES_SIM_26) (22) [SCAL] (1) assignClock1.clock = Clock(periodicRealClock.period) ($RES_SIM_28) (23) [WHEN] (1)when assignClock1.clock then (23) [----] subSample1.u := sample3.y (23) [----] end when;