Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC.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.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 116.1 kB / 17.14 MB, free: 5.781 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.00143/0.00143, allocations: 197.4 kB / 18.08 MB, free: 4.883 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.492/1.492, 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.07022/0.07022, allocations: 12.59 MB / 283.9 MB, free: 15.4 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.038e-05/2.041e-05, allocations: 5.234 kB / 394.7 MB, free: 45.45 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestSimulatedADC): time 0.00314/0.003171, allocations: 2.293 MB / 397 MB, free: 43.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.004611, allocations: 0.8752 MB / 397.9 MB, free: 43.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.004786, allocations: 7.938 kB / 397.9 MB, free: 43.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000209/0.005, allocations: 49.53 kB / 398 MB, free: 43.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001324/0.005147, allocations: 40.94 kB / 398 MB, free: 43.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006875/0.00584, allocations: 222.7 kB / 398.2 MB, free: 43.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.006319, allocations: 348.2 kB / 398.6 MB, free: 42.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003057/0.006635, allocations: 157.1 kB / 398.7 MB, free: 42.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.006801, allocations: 113.4 kB / 398.8 MB, free: 42.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001662/0.006976, allocations: 119.1 kB / 398.9 MB, free: 42.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.976e-05/0.007032, allocations: 24.78 kB / 399 MB, free: 42.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/0.007163, allocations: 63.92 kB / 399 MB, free: 42.63 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003006/0.007469, allocations: 437.4 kB / 399.5 MB, free: 42.32 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001558/0.007631, allocations: 293.5 kB / 399.7 MB, free: 42.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.763e-05/0.007694, allocations: 43.19 kB / 399.8 MB, free: 42.07 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.24e-05/0.007742, allocations: 15.62 kB / 399.8 MB, free: 42.07 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: 52 (49) * Number of variables: 52 (50) Notification: Performance of Bindings: time 0.001204/0.00895, allocations: 1.257 MB / 401.1 MB, free: 41.09 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001876/0.009146, allocations: 117.7 kB / 401.2 MB, free: 41.02 MB / 318.1 MB Notification: Performance of Early Inline: time 0.00061/0.009763, allocations: 0.5434 MB / 401.7 MB, free: 40.66 MB / 318.1 MB Notification: Performance of simplify1: time 6.973e-05/0.00984, allocations: 49.67 kB / 401.8 MB, free: 40.63 MB / 318.1 MB Notification: Performance of Alias: time 0.001297/0.01114, allocations: 1.093 MB / 402.9 MB, free: 39.88 MB / 318.1 MB Notification: Performance of simplify2: time 2.942e-05/0.01118, allocations: 26.84 kB / 402.9 MB, free: 39.86 MB / 318.1 MB Notification: Performance of Events: time 0.0001528/0.01134, allocations: 116 kB / 403 MB, free: 39.77 MB / 318.1 MB Notification: Performance of Detect States: time 0.00019/0.01154, allocations: 157.3 kB / 403.2 MB, free: 39.63 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002055/0.01175, allocations: 192.6 kB / 403.3 MB, free: 39.48 MB / 318.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (27/31) ******************************* (1) [DISC] (3) protected Integer[3] sample1.noise.seedState (fixed = {true for $i1 in 1:3}, start = sample1.noise.firstSeed) (2) [ALGB] (1) Real assignClock1.u (3) [ALGB] (1) Real sample1.noise.u (4) [ALGB] (1) protected Real sample1.noise.noise (5) [ALGB] (1) Real sample1.noise.y (6) [ALGB] (1) Real $FUN_8 (7) [DISS] (1) Real assignClock2.y (8) [ALGB] (1) Real $FUN_7 (9) [ALGB] (1) Real $FUN_6 (10) [ALGB] (1) Real $FUN_5 (11) [DISC] (1) Boolean $SEV_9 (12) [DISC] (3) Integer[3] $FUN_4 (13) [ALGB] (1) Real sample1.limiter.y (14) [ALGB] (1) Real assignClock2.u (15) [DISC] (1) Boolean $SEV_7 (16) [DISC] (1) Integer $FUN_2 (17) [DISC] (1) Boolean $SEV_6 (18) [ALGB] (1) Real hold1.compDelay.y (19) [DISC] (1) Boolean $SEV_5 (20) [ALGB] (1) Clock assignClock1.clock (21) [ALGB] (1) Real hold1.limiter.y (22) [DISC] (1) Boolean $SEV_3 (23) [DISC] (1) Boolean $SEV_2 (24) [ALGB] (1) protected Real hold1.compDelay.ubuf (start = 0.0) (25) [DISC] (1) Boolean $SEV_1 (26) [DISC] (1) Boolean $SEV_0 (27) [DISS] (1) Real assignClock1.y system eqns Equations (26/31) ******************************* (1) [SCAL] (1) $SEV_0 = sample(1, sample1.u, Clock()) ($RES_EVT_62) (2) [SCAL] (1) $SEV_1 = hold1.limiter.y >= 0.0 ($RES_EVT_63) (3) [SCAL] (1) $SEV_2 = assignClock1.y > hold1.limiter.uMax ($RES_EVT_64) (4) [SCAL] (1) $SEV_9 = sample(2, sample1.u, Clock()) ($RES_EVT_71) (5) [SCAL] (1) $SEV_3 = assignClock1.y < hold1.limiter.uMin ($RES_EVT_65) (6) [SCAL] (1) $SEV_5 = sample1.limiter.y >= 0.0 ($RES_EVT_67) (7) [SCAL] (1) $SEV_6 = sample1.noise.y > sample1.limiter.uMax ($RES_EVT_68) (8) [SCAL] (1) assignClock1.u = $FUN_6 * sample1.quantization.resolution * (if $SEV_5 then 1.0 else -1.0) ($RES_SIM_9) (9) [SCAL] (1) $SEV_7 = sample1.noise.y < sample1.limiter.uMin ($RES_EVT_69) (10) [WHEN] (1)when assignClock1.clock then (10) [----] assignClock1.y := assignClock1.u (10) [----] end when; (11) [SCAL] (1) hold1.limiter.y = if $SEV_2 then hold1.limiter.uMax else if $SEV_3 then hold1.limiter.uMin else assignClock1.y ($RES_SIM_6) (12) [SCAL] (1) hold1.compDelay.ubuf = $FUN_8 * hold1.quantization.resolution * (if $SEV_1 then 1.0 else -1.0) ($RES_SIM_5) (13) [SCAL] (1) sample1.limiter.y = if $SEV_6 then sample1.limiter.uMax else if $SEV_7 then sample1.limiter.uMin else sample1.noise.y ($RES_SIM_10) (14) [SCAL] (1) hold1.compDelay.y = shiftSample(hold1.compDelay.ubuf, 1, 2) ($RES_SIM_3) (15) [SCAL] (1) sample1.noise.y = sample1.noise.noiseMin + sample1.noise.u + (sample1.noise.noiseMax - sample1.noise.noiseMin) * sample1.noise.noise ($RES_SIM_12) (16) [SCAL] (1) assignClock2.u = $SEV_0 ($RES_SIM_1) (17) [SCAL] (1) sample1.noise.u = $SEV_9 ($RES_SIM_14) (18) [WHEN] (1)when assignClock1.clock then (18) [----] assignClock2.y := assignClock2.u (18) [----] end when; (19) [SCAL] (1) assignClock1.clock = Clock(periodicRealClock.period) ($RES_SIM_15) (20) [SCAL] (1) $FUN_8 = floor(0.5 + $FUN_7) ($RES_$AUX_52) (21) [SCAL] (1) $FUN_7 = abs(hold1.limiter.y / hold1.quantization.resolution) ($RES_$AUX_53) (22) [SCAL] (1) $FUN_6 = floor(0.5 + $FUN_5) ($RES_$AUX_54) (23) [ARRY] (3) sample1.noise.seedState = $FUN_4 ($RES_$AUX_60) (24) [SCAL] (1) $FUN_5 = abs(sample1.limiter.y / sample1.quantization.resolution) ($RES_$AUX_55) (25) [TUPL] (4) (sample1.noise.noise, $FUN_4) = Modelica_Synchronous.RealSignals.Sampler.Utilities.Internal.random({$FUN_2 for $i1 in 1:3}) ($RES_$AUX_56) (26) [SCAL] (1) $FUN_2 = previous(sample1.noise.seedState[$i1]) ($RES_$AUX_57) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 23 var 2 --> eqn 24 var 3 --> eqn 25 var 4 --> eqn 8 var 5 --> eqn 17 var 6 --> eqn 29 var 7 --> eqn 15 var 8 --> eqn 20 var 9 --> eqn 18 var 10 --> eqn 21 var 11 --> eqn 22 var 12 --> eqn 26 var 13 --> eqn 4 var 14 --> eqn 28 var 15 --> eqn 27 var 16 --> eqn 30 var 17 --> eqn 13 var 18 --> eqn 16 var 19 --> eqn 9 var 20 --> eqn 31 var 21 --> eqn 7 var 22 --> eqn 14 var 23 --> eqn 6 var 24 --> eqn 19 var 25 --> eqn 11 var 26 --> eqn 5 var 27 --> eqn 3 var 28 --> eqn 12 var 29 --> eqn 2 var 30 --> eqn 1 var 31 --> eqn 10 equation to variable ********************** eqn 1 --> var 30 eqn 2 --> var 29 eqn 3 --> var 27 eqn 4 --> var 13 eqn 5 --> var 26 eqn 6 --> var 23 eqn 7 --> var 21 eqn 8 --> var 4 eqn 9 --> var 19 eqn 10 --> var 31 eqn 11 --> var 25 eqn 12 --> var 28 eqn 13 --> var 17 eqn 14 --> var 22 eqn 15 --> var 7 eqn 16 --> var 18 eqn 17 --> var 5 eqn 18 --> var 9 eqn 19 --> var 24 eqn 20 --> var 8 eqn 21 --> var 10 eqn 22 --> var 11 eqn 23 --> var 1 eqn 24 --> var 2 eqn 25 --> var 3 eqn 26 --> var 12 eqn 27 --> var 15 eqn 28 --> var 14 eqn 29 --> var 6 eqn 30 --> var 16 eqn 31 --> var 20