Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 109.4 kB / 17.14 MB, free: 5.934 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.001281/0.001281, allocations: 193.4 kB / 18.07 MB, free: 5.016 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.489/1.489, allocations: 205.1 MB / 223.9 MB, free: 12.2 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.06797/0.06797, allocations: 12.58 MB / 283.9 MB, free: 15.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.266e-05/2.267e-05, allocations: 3.406 kB / 394.7 MB, free: 45.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.003657/0.003688, allocations: 2.67 MB / 397.4 MB, free: 43.57 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.005082, allocations: 0.9536 MB / 398.4 MB, free: 42.89 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.005284, allocations: 11.44 kB / 398.4 MB, free: 42.89 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.00548, allocations: 56.88 kB / 398.4 MB, free: 42.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.005692, allocations: 61.08 kB / 398.5 MB, free: 42.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005934/0.006312, allocations: 241.4 kB / 398.7 MB, free: 42.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.00676, allocations: 435.5 kB / 399.2 MB, free: 42.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002993/0.007068, allocations: 200 kB / 399.4 MB, free: 42.35 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.007221, allocations: 133.5 kB / 399.5 MB, free: 42.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001619/0.00739, allocations: 149.5 kB / 399.6 MB, free: 42.19 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.007447, allocations: 29.91 kB / 399.7 MB, free: 42.19 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.007576, allocations: 73.67 kB / 399.7 MB, free: 42.18 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003017/0.007884, allocations: 0.5365 MB / 400.3 MB, free: 41.79 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001438/0.008035, allocations: 352.5 kB / 400.6 MB, free: 41.54 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.008096, allocations: 48.16 kB / 400.7 MB, free: 41.51 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.402e-05/0.008156, allocations: 25 kB / 400.7 MB, free: 41.5 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.001254/0.009416, allocations: 1.546 MB / 402.2 MB, free: 40.33 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0002034/0.009627, allocations: 114.3 kB / 402.3 MB, free: 40.25 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0009051/0.01054, allocations: 0.7224 MB / 403.1 MB, free: 39.73 MB / 318.1 MB Notification: Performance of simplify1: time 7.009e-05/0.01063, allocations: 51.95 kB / 403.1 MB, free: 39.69 MB / 318.1 MB Notification: Performance of Alias: time 0.002049/0.01268, allocations: 1.454 MB / 404.6 MB, free: 38.61 MB / 318.1 MB Notification: Performance of simplify2: time 3.774e-05/0.01273, allocations: 31.67 kB / 404.6 MB, free: 38.59 MB / 318.1 MB Notification: Performance of Events: time 0.0001851/0.01292, allocations: 129.1 kB / 404.7 MB, free: 38.5 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002895/0.01322, allocations: 201 kB / 404.9 MB, free: 38.33 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002588/0.01349, allocations: 236.6 kB / 405.2 MB, free: 38.15 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 assignClock1.u (3) [ALGB] (1) Real sample1.noise.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 (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) $SEV_1 = hold1.limiter.y >= 0.0 ($RES_EVT_81) (8) [SCAL] (1) hold1.compDelay.y = shiftSample(hold1.compDelay.ubuf, 2, 10) ($RES_SIM_8) (9) [SCAL] (1) $SEV_2 = PI.y > hold1.limiter.uMax ($RES_EVT_82) (10) [SCAL] (1) $SEV_3 = PI.y < hold1.limiter.uMin ($RES_EVT_83) (11) [SCAL] (1) PI.Ts = interval(feedback.y) ($RES_BND_68) (12) [SCAL] (1) sample1.noise.u = $SEV_0 ($RES_SIM_6) (13) [SCAL] (1) hold1.compDelay.ubuf = $FUN_4 * hold1.quantization.resolution * (if $SEV_1 then 1.0 else -1.0) ($RES_SIM_10) (14) [SCAL] (1) $SEV_5 = sample2.limiter.y >= 0.0 ($RES_EVT_85) (15) [SCAL] (1) assignClock1.u = sample1.noise.noiseMin + sample1.noise.u + (sample1.noise.noiseMax - sample1.noise.noiseMin) * sample1.noise.noise ($RES_SIM_4) (16) [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_11) (17) [SCAL] (1) $SEV_6 = sample2.limiter.u > sample2.limiter.uMax ($RES_EVT_86) (18) [WHEN] (1)when Clock() then (18) [----] PI.x := previous(PI.x) + feedback.y * (PI.Ts / PI.T) (18) [----] end when; (19) [SCAL] (1) $SEV_7 = sample2.limiter.u < sample2.limiter.uMin ($RES_EVT_87) (20) [WHEN] (1)when Clock() then (20) [----] PI.y := PI.k * (PI.x + feedback.y) (20) [----] end when; (21) [SCAL] (1) feedback.u1 = $FUN_2 * sample2.quantization.resolution * (if $SEV_5 then 1.0 else -1.0) ($RES_SIM_13) (22) [WHEN] (1)when periodicClock.y then (22) [----] assignClock1.y := assignClock1.u (22) [----] end when; (23) [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_14) (24) [SCAL] (1) $SEV_9 = sample(2, ramp.y, Clock()) ($RES_EVT_89) (25) [SCAL] (1) periodicClock.y = Clock(periodicClock.period) ($RES_SIM_0) (26) [SCAL] (1) sample2.limiter.u = $SEV_9 ($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 33 var 2 --> eqn 9 var 3 --> eqn 10 var 4 --> eqn 20 var 5 --> eqn 17 var 6 --> eqn 26 var 7 --> eqn 7 var 8 --> eqn 8 var 9 --> eqn 6 var 10 --> eqn 5 var 11 --> eqn 25 var 12 --> eqn 23 var 13 --> eqn 4 var 14 --> eqn 29 var 15 --> eqn 34 var 16 --> eqn 32 var 17 --> eqn 1 var 18 --> eqn 24 var 19 --> eqn 2 var 20 --> eqn 22 var 21 --> eqn 13 var 22 --> eqn 3 var 23 --> eqn 19 var 24 --> eqn 30 var 25 --> eqn 21 var 26 --> eqn 15 var 27 --> eqn 14 var 28 --> eqn 18 var 29 --> eqn 28 var 30 --> eqn 12 var 31 --> eqn 16 var 32 --> eqn 11 var 33 --> eqn 31 var 34 --> eqn 27 equation to variable ********************** eqn 1 --> var 17 eqn 2 --> var 19 eqn 3 --> var 22 eqn 4 --> var 13 eqn 5 --> var 10 eqn 6 --> var 9 eqn 7 --> var 7 eqn 8 --> var 8 eqn 9 --> var 2 eqn 10 --> var 3 eqn 11 --> var 32 eqn 12 --> var 30 eqn 13 --> var 21 eqn 14 --> var 27 eqn 15 --> var 26 eqn 16 --> var 31 eqn 17 --> var 5 eqn 18 --> var 28 eqn 19 --> var 23 eqn 20 --> var 4 eqn 21 --> var 25 eqn 22 --> var 20 eqn 23 --> var 12 eqn 24 --> var 18 eqn 25 --> var 11 eqn 26 --> var 6 eqn 27 --> var 34 eqn 28 --> var 29 eqn 29 --> var 14 eqn 30 --> var 24 eqn 31 --> var 33 eqn 32 --> var 16 eqn 33 --> var 1 eqn 34 --> var 15