Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.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.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 115.9 kB / 17.14 MB, free: 5.895 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.00121/0.001211, allocations: 198.9 kB / 18.08 MB, free: 4.977 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.474/1.474, allocations: 205.1 MB / 223.9 MB, free: 12.18 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.07425/0.07425, allocations: 12.59 MB / 283.9 MB, free: 15.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.486e-05, allocations: 5.094 kB / 394.8 MB, free: 45.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold): time 0.003993/0.004028, allocations: 2.692 MB / 397.5 MB, free: 43.55 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.005721, allocations: 0.9496 MB / 398.4 MB, free: 42.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002304/0.005964, allocations: 10.38 kB / 398.4 MB, free: 42.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.006218, allocations: 64.98 kB / 398.5 MB, free: 42.83 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.00648, allocations: 60.72 kB / 398.5 MB, free: 42.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007048/0.007207, allocations: 234.5 kB / 398.8 MB, free: 42.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005386/0.007753, allocations: 430.5 kB / 399.2 MB, free: 42.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000371/0.008131, allocations: 205.1 kB / 399.4 MB, free: 42.34 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001651/0.008304, allocations: 133.7 kB / 399.5 MB, free: 42.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.008496, allocations: 143.9 kB / 399.7 MB, free: 42.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.849e-05/0.00856, allocations: 31.78 kB / 399.7 MB, free: 42.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.008708, allocations: 77.8 kB / 399.8 MB, free: 42.17 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003499/0.009064, allocations: 0.5353 MB / 400.3 MB, free: 41.78 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001612/0.009233, allocations: 349.2 kB / 400.6 MB, free: 41.53 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.562e-05/0.009304, allocations: 52.78 kB / 400.7 MB, free: 41.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.984e-05/0.009369, allocations: 29.44 kB / 400.7 MB, free: 41.48 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: 70 (67) * Number of variables: 70 (68) Notification: Performance of Bindings: time 0.001357/0.01073, allocations: 1.541 MB / 402.3 MB, free: 40.32 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.000151/0.01089, allocations: 114.7 kB / 402.4 MB, free: 40.24 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0005782/0.01148, allocations: 0.723 MB / 403.1 MB, free: 39.71 MB / 318.1 MB Notification: Performance of simplify1: time 5.282e-05/0.01154, allocations: 54.55 kB / 403.2 MB, free: 39.67 MB / 318.1 MB Notification: Performance of Alias: time 0.001425/0.01297, allocations: 1.451 MB / 404.6 MB, free: 38.6 MB / 318.1 MB Notification: Performance of simplify2: time 3.278e-05/0.01301, allocations: 23.06 kB / 404.6 MB, free: 38.58 MB / 318.1 MB Notification: Performance of Events: time 0.0001607/0.01318, allocations: 145.9 kB / 404.8 MB, free: 38.48 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002247/0.01341, allocations: 198.3 kB / 405 MB, free: 38.31 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002226/0.01364, allocations: 231.7 kB / 405.2 MB, free: 38.14 MB / 318.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (30/34) ******************************* (1) [DISC] (3) protected Integer[3] sample1.noise.seedState (fixed = {true for $i1 in 1:3}, start = sample1.noise.firstSeed) (2) [ALGB] (1) Real sample1.noise.u (3) [ALGB] (1) Real assignClock1.u (4) [ALGB] (1) Real feedback.u1 (5) [ALGB] (1) protected Real sample1.noise.noise (6) [DISC] (3) Integer[3] $FUN_8 (7) [DISS] (1) Real PI.y (8) [DISS] (1) Real PI.x (fixed = true, start = 0.0) (9) [DISC] (1) Integer $FUN_6 (10) [DISC] (1) Boolean $SEV_9 (11) [ALGB] (1) Real $FUN_4 (12) [ALGB] (1) Real feedback.y (13) [ALGB] (1) Real $FUN_3 (14) [DISC] (1) Boolean $SEV_7 (15) [ALGB] (1) Real $FUN_2 (16) [DISC] (1) Boolean $SEV_6 (17) [ALGB] (1) Real hold1.compDelay.y (18) [ALGB] (1) Real $FUN_1 (19) [DISC] (1) Boolean $SEV_5 (20) [ALGB] (1) Clock periodicClock.y (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) [ALGB] (1) Real sample2.limiter.y (26) [DISC] (1) Boolean $SEV_1 (27) [ALGB] (1) protected Real PI.Ts = interval(feedback.y) (28) [DISC] (1) Boolean $SEV_0 (29) [ALGB] (1) Real sample2.limiter.u (30) [DISS] (1) Real assignClock1.y system eqns Equations (29/34) ******************************* (1) [SCAL] (1) $FUN_3 = abs(hold1.limiter.y / hold1.quantization.resolution) ($RES_$AUX_73) (2) [SCAL] (1) $FUN_2 = floor(0.5 + $FUN_1) ($RES_$AUX_74) (3) [SCAL] (1) $FUN_1 = abs(sample2.limiter.y / sample2.quantization.resolution) ($RES_$AUX_75) (4) [TUPL] (4) (sample1.noise.noise, $FUN_8) = Modelica_Synchronous.RealSignals.Sampler.Utilities.Internal.random({$FUN_6 for $i1 in 1:3}) ($RES_$AUX_69) (5) [ARRY] (3) sample1.noise.seedState = $FUN_8 ($RES_$AUX_77) (6) [SCAL] (1) $SEV_0 = sample(1, speed.w, Clock()) ($RES_EVT_80) (7) [SCAL] (1) hold1.compDelay.ubuf = $FUN_4 * hold1.quantization.resolution * (if $SEV_1 then 1.0 else -1.0) ($RES_SIM_9) (8) [SCAL] (1) $SEV_1 = hold1.limiter.y >= 0.0 ($RES_EVT_81) (9) [SCAL] (1) $SEV_2 = PI.y > hold1.limiter.uMax ($RES_EVT_82) (10) [SCAL] (1) hold1.compDelay.y = shiftSample(hold1.compDelay.ubuf, 2, 10) ($RES_SIM_7) (11) [SCAL] (1) $SEV_3 = PI.y < hold1.limiter.uMin ($RES_EVT_83) (12) [SCAL] (1) PI.Ts = interval(feedback.y) ($RES_BND_68) (13) [SCAL] (1) sample1.noise.u = $SEV_0 ($RES_SIM_5) (14) [SCAL] (1) hold1.limiter.y = if $SEV_2 then hold1.limiter.uMax else if $SEV_3 then hold1.limiter.uMin else PI.y ($RES_SIM_10) (15) [SCAL] (1) $SEV_5 = sample2.limiter.y >= 0.0 ($RES_EVT_85) (16) [SCAL] (1) $SEV_6 = sample2.limiter.u > sample2.limiter.uMax ($RES_EVT_86) (17) [SCAL] (1) assignClock1.u = sample1.noise.noiseMin + sample1.noise.u + (sample1.noise.noiseMax - sample1.noise.noiseMin) * sample1.noise.noise ($RES_SIM_3) (18) [SCAL] (1) feedback.u1 = $FUN_2 * sample2.quantization.resolution * (if $SEV_5 then 1.0 else -1.0) ($RES_SIM_12) (19) [SCAL] (1) $SEV_7 = sample2.limiter.u < sample2.limiter.uMin ($RES_EVT_87) (20) [WHEN] (1)when Clock() then (20) [----] PI.x := previous(PI.x) + feedback.y * (PI.Ts / PI.T) (20) [----] end when; (21) [SCAL] (1) sample2.limiter.y = if $SEV_6 then sample2.limiter.uMax else if $SEV_7 then sample2.limiter.uMin else sample2.limiter.u ($RES_SIM_13) (22) [WHEN] (1)when Clock() then (22) [----] PI.y := PI.k * (PI.x + feedback.y) (22) [----] end when; (23) [SCAL] (1) $SEV_9 = sample(2, ramp.y, Clock()) ($RES_EVT_89) (24) [WHEN] (1)when periodicClock.y then (24) [----] assignClock1.y := assignClock1.u (24) [----] end when; (25) [SCAL] (1) sample2.limiter.u = $SEV_9 ($RES_SIM_15) (26) [SCAL] (1) periodicClock.y = Clock(periodicClock.period) ($RES_SIM_16) (27) [SCAL] (1) feedback.y = feedback.u1 - assignClock1.y ($RES_SIM_19) (28) [SCAL] (1) $FUN_6 = previous(sample1.noise.seedState[$i1]) ($RES_$AUX_70) (29) [SCAL] (1) $FUN_4 = floor(0.5 + $FUN_3) ($RES_$AUX_72) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 8 var 2 --> eqn 9 var 3 --> eqn 10 var 4 --> eqn 18 var 5 --> eqn 22 var 6 --> eqn 23 var 7 --> eqn 7 var 8 --> eqn 6 var 9 --> eqn 5 var 10 --> eqn 4 var 11 --> eqn 27 var 12 --> eqn 25 var 13 --> eqn 33 var 14 --> eqn 28 var 15 --> eqn 34 var 16 --> eqn 32 var 17 --> eqn 1 var 18 --> eqn 24 var 19 --> eqn 2 var 20 --> eqn 21 var 21 --> eqn 15 var 22 --> eqn 3 var 23 --> eqn 20 var 24 --> eqn 31 var 25 --> eqn 19 var 26 --> eqn 16 var 27 --> eqn 14 var 28 --> eqn 12 var 29 --> eqn 26 var 30 --> eqn 13 var 31 --> eqn 17 var 32 --> eqn 11 var 33 --> eqn 30 var 34 --> eqn 29 equation to variable ********************** eqn 1 --> var 17 eqn 2 --> var 19 eqn 3 --> var 22 eqn 4 --> var 10 eqn 5 --> var 9 eqn 6 --> var 8 eqn 7 --> var 7 eqn 8 --> var 1 eqn 9 --> var 2 eqn 10 --> var 3 eqn 11 --> var 32 eqn 12 --> var 28 eqn 13 --> var 30 eqn 14 --> var 27 eqn 15 --> var 21 eqn 16 --> var 26 eqn 17 --> var 31 eqn 18 --> var 4 eqn 19 --> var 25 eqn 20 --> var 23 eqn 21 --> var 20 eqn 22 --> var 5 eqn 23 --> var 6 eqn 24 --> var 18 eqn 25 --> var 12 eqn 26 --> var 29 eqn 27 --> var 11 eqn 28 --> var 14 eqn 29 --> var 34 eqn 30 --> var 33 eqn 31 --> var 24 eqn 32 --> var 16 eqn 33 --> var 13 eqn 34 --> var 15