Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.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.TestRealSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 115.5 kB / 17.14 MB, free: 5.758 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.001194/0.001194, allocations: 198.6 kB / 18.08 MB, free: 4.867 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.432/1.432, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.07271/0.07271, allocations: 12.58 MB / 283.9 MB, free: 15.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.254e-05/3.264e-05, allocations: 9.172 kB / 394.8 MB, free: 45.42 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler): time 0.002721/0.002768, allocations: 1.775 MB / 396.5 MB, free: 44.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008349/0.003616, allocations: 0.5361 MB / 397.1 MB, free: 43.82 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.832e-05/0.003706, allocations: 5.188 kB / 397.1 MB, free: 43.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000127/0.003839, allocations: 18.7 kB / 397.1 MB, free: 43.8 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.101e-05/0.003906, allocations: 18.78 kB / 397.1 MB, free: 43.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003063/0.004225, allocations: 59.95 kB / 397.2 MB, free: 43.76 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002655/0.004497, allocations: 155.5 kB / 397.3 MB, free: 43.69 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.00469, allocations: 75.11 kB / 397.4 MB, free: 43.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.0048, allocations: 53.97 kB / 397.4 MB, free: 43.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.2e-05/0.0049, allocations: 60.53 kB / 397.5 MB, free: 43.6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.616e-05/0.004932, allocations: 7.844 kB / 397.5 MB, free: 43.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.94e-05/0.004957, allocations: 6.25 kB / 397.5 MB, free: 43.6 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0001221/0.005084, allocations: 169.7 kB / 397.7 MB, free: 43.49 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 5.72e-05/0.005147, allocations: 115.3 kB / 397.8 MB, free: 43.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.763e-05/0.005189, allocations: 22.41 kB / 397.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-05/0.005213, allocations: 6.938 kB / 397.8 MB, free: 43.39 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: 29 (20) * Number of variables: 29 (18) Notification: Performance of Bindings: time 0.0006069/0.005824, allocations: 0.5864 MB / 398.4 MB, free: 42.88 MB / 318.1 MB Notification: Performance of FunctionAlias: time 9.912e-05/0.00593, allocations: 54.8 kB / 398.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0002544/0.006191, allocations: 266.9 kB / 398.7 MB, free: 42.66 MB / 318.1 MB Notification: Performance of simplify1: time 3.748e-05/0.006235, allocations: 23.41 kB / 398.7 MB, free: 42.64 MB / 318.1 MB Notification: Performance of Alias: time 0.0003295/0.006571, allocations: 252 kB / 399 MB, free: 42.45 MB / 318.1 MB Notification: Performance of simplify2: time 2.568e-05/0.006605, allocations: 19.39 kB / 399 MB, free: 42.44 MB / 318.1 MB Notification: Performance of Events: time 0.0001065/0.006717, allocations: 63.58 kB / 399.1 MB, free: 42.41 MB / 318.1 MB Notification: Performance of Detect States: time 0.0001478/0.006872, allocations: 100.6 kB / 399.2 MB, free: 42.33 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001419/0.007021, allocations: 126.6 kB / 399.3 MB, free: 42.26 MB / 318.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency multiplex2_1.u1[1] could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {{multiplex2_1.y[1]}, {multiplex2_1.y[2]}} = {{multiplex2_1.u1[1]}, {multiplex2_1.u2[1]}} ($RES_SIM_9) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (22/34) ************************** (1) [ALGB] (2) Real[2] assignClock1.u (2) [ALGB] (2) Real[2] gain.u (3) [ALGB] (2) Real[2] sample1.y (4) [ALGB] (1) Real sine2.y (5) [ALGB] (2) Real[2] sample1.u (6) [ALGB] (2) Real[2] multiplex2_1.y (7) [ALGB] (2) Real[2] subSample1.u (8) [ALGB] (2) Real[2] sample2.y (9) [ALGB] (1) Real $FUN_2 (10) [ALGB] (1) Real $FUN_1 (11) [ALGB] (1) Clock assignClock1.clock (12) [ALGB] (2) Real[2] subSample1.y (13) [ALGB] (1) Real[1] multiplex2_1.u1 (14) [ALGB] (1) Real sine1.y (15) [ALGB] (1) Real[1] multiplex2_1.u2 (16) [ALGB] (2) Real[2] sample2.u (17) [DISC] (1) Boolean $SEV_0 (18) [DISC] (2) Boolean[2] $SEV_1[$i1] (19) [DISC] (1) Boolean $TEV_1 (20) [DISS] (2) Real[2] assignClock1.y (21) [ALGB] (2) Real[2] gain.y (22) [DISC] (1) Boolean $TEV_0 System Equations (24/34) ************************** (1) [SCAL] (1) $FUN_2 = sin(6.283185307179586 * sine2.freqHz * (time - sine2.startTime) + sine2.phase) ($RES_$AUX_23) (2) [SCAL] (1) $FUN_1 = sin(6.283185307179586 * sine1.freqHz * (time - sine1.startTime) + sine1.phase) ($RES_$AUX_24) (3) [ARRY] (2) {{multiplex2_1.y[1]}, {multiplex2_1.y[2]}} = {{multiplex2_1.u1[1]}, {multiplex2_1.u2[1]}} ($RES_SIM_9) (4) [SCAL] (1) assignClock1.clock = Clock(periodicClock1.period) ($RES_SIM_8) (5) [WHEN] (2)when assignClock1.clock then (5) [----] assignClock1.y := assignClock1.u (5) [----] end when; (6) [SCAL] (1) sine2.y = sine2.offset + (if $TEV_0 then 0.0 else sine2.amplitude * $FUN_2) ($RES_SIM_10) (7) [FOR-] (2) ($RES_SIM_5) (7) [----] for $i1 in 1:2 loop (7) [----] [SCAL] (1) gain[$i1].y = gain[$i1].k * gain[$i1].u ($RES_SIM_6) (7) [----] end for; (8) [SCAL] (1) sine1.y = sine1.offset + (if $TEV_1 then 0.0 else sine1.amplitude * $FUN_1) ($RES_SIM_11) (9) [ARRY] (2) sample2.y = subSample1.u ($RES_SIM_12) (10) [FOR-] (2) ($RES_SIM_3) (10) [----] for $i1 in 1:2 loop (10) [----] [SCAL] (1) sample1[$i1].y = $SEV_1[$i1] ($RES_SIM_4) (10) [----] end for; (11) [ARRY] (2) sample1.y = assignClock1.u ($RES_SIM_13) (12) [ARRY] (2) sample2.y = $SEV_0 ($RES_SIM_2) (13) [SCAL] (1) multiplex2_1.y[2] = sample1[2].u ($RES_SIM_14) (14) [SCAL] (1) sine2.y = multiplex2_1.u2[1] ($RES_SIM_21) (15) [SCAL] (1) multiplex2_1.y[2] = sample2.u[2] ($RES_SIM_15) (16) [FOR-] (2) ($RES_SIM_0) (16) [----] for $i1 in 1:2 loop (16) [----] [SCAL] (1) subSample1[$i1].y = subSample(subSample1[$i1].u, 3) ($RES_SIM_1) (16) [----] end for; (17) [SCAL] (1) $TEV_0 = time < sine2.startTime ($RES_EVT_25) (18) [SCAL] (1) sine1.y = multiplex2_1.u1[1] ($RES_SIM_22) (19) [SCAL] (1) multiplex2_1.y[1] = sample1[1].u ($RES_SIM_16) (20) [SCAL] (1) $TEV_1 = time < sine1.startTime ($RES_EVT_26) (21) [SCAL] (1) multiplex2_1.y[1] = sample2.u[1] ($RES_SIM_17) (22) [SCAL] (1) $SEV_0 = sample(1, sample2.u, assignClock1.clock) ($RES_EVT_27) (23) [ARRY] (2) assignClock1.y = gain.u ($RES_SIM_18) (24) [FOR-] (2) ($RES_EVT_28) (24) [----] for $i1 in 1:2 loop (24) [----] [SCAL] (1) $SEV_1[$i1] = sample(2, sample1[$i1].u, Clock()) ($RES_EVT_29) (24) [----] end for;