Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009944/0.0009944, allocations: 114.5 kB / 18.42 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 216.6 kB / 19.37 MB, free: 3.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.596e-05/2.598e-05, allocations: 2.281 kB / 308.3 MB, free: 15.97 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003078/0.00312, allocations: 1.862 MB / 310.2 MB, free: 14.12 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001217/0.004351, allocations: 0.7544 MB / 310.9 MB, free: 13.36 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.004462, allocations: 0 / 310.9 MB, free: 13.36 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.004605, allocations: 27.73 kB / 311 MB, free: 13.33 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001437/0.004758, allocations: 28.5 kB / 311 MB, free: 13.3 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005266/0.005303, allocations: 173.5 kB / 311.2 MB, free: 13.14 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002042/0.005514, allocations: 167.5 kB / 311.3 MB, free: 12.98 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.005676, allocations: 61.52 kB / 311.4 MB, free: 12.91 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.005811, allocations: 63.7 kB / 311.4 MB, free: 12.85 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.343e-05/0.005915, allocations: 59.7 kB / 311.5 MB, free: 12.79 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.005949, allocations: 12 kB / 311.5 MB, free: 12.78 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.207e-05/0.006047, allocations: 55.91 kB / 311.6 MB, free: 12.73 MB / 254.1 MB Notification: Performance of combineBinaries: time 0.0001636/0.006218, allocations: 225.3 kB / 311.8 MB, free: 12.5 MB / 254.1 MB Notification: Performance of replaceArrayConstructors: time 8.207e-05/0.006306, allocations: 149.7 kB / 311.9 MB, free: 12.36 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 3.069e-05/0.006342, allocations: 19.94 kB / 312 MB, free: 12.34 MB / 254.1 MB Notification: Performance of FrontEnd: time 2.64e-05/0.006374, allocations: 11.88 kB / 312 MB, free: 12.32 MB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 (21) * Number of variables: 24 (22) Notification: Performance of Bindings: time 0.0006517/0.00703, allocations: 0.69 MB / 312.7 MB, free: 11.53 MB / 254.1 MB Notification: Performance of FunctionAlias: time 0.0001106/0.007149, allocations: 51.89 kB / 312.7 MB, free: 11.48 MB / 254.1 MB Notification: Performance of Early Inline: time 0.0004093/0.007566, allocations: 364 kB / 313.1 MB, free: 11.1 MB / 254.1 MB Notification: Performance of simplify1: time 2.767e-05/0.007602, allocations: 19.97 kB / 313.1 MB, free: 11.08 MB / 254.1 MB Notification: Performance of Alias: time 0.0007276/0.008336, allocations: 0.5203 MB / 313.6 MB, free: 10.46 MB / 254.1 MB Notification: Performance of simplify2: time 2.287e-05/0.00837, allocations: 19.91 kB / 313.6 MB, free: 10.45 MB / 254.1 MB Notification: Performance of Events: time 0.0001174/0.008493, allocations: 67.88 kB / 313.7 MB, free: 10.38 MB / 254.1 MB Notification: Performance of Detect States: time 0.0001992/0.0087, allocations: 100.1 kB / 313.8 MB, free: 10.27 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001605/0.008869, allocations: 116.3 kB / 313.9 MB, free: 10.13 MB / 254.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (16/20) ******************************* (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) protected Real sample1.noise.noise (4) [ALGB] (1) Real sample1.noise.y (5) [ALGB] (1) Real $FUN_5 (6) [ALGB] (1) Real $FUN_4 (7) [ALGB] (1) Real sample1.limiter.y (8) [DISC] (3) Integer[3] $FUN_3 (9) [DISC] (1) Integer $FUN_1 (10) [DISC] (1) Boolean $SEV_4 (11) [DISC] (1) Boolean $SEV_2 (12) [DISC] (1) Boolean $SEV_1 (13) [DISC] (1) Boolean $SEV_0 (14) [ALGB] (1) Real assignClock.u (15) [ALGB] (1) protected Clock periodicClock.c (16) [DISS] (1) Real assignClock.y system eqns Equations (15/20) ******************************* (1) [SCAL] (1) $FUN_5 = floor(0.5 + $FUN_4) ($RES_$AUX_22) (2) [SCAL] (1) $FUN_4 = abs(sample1.limiter.y / sample1.quantization.resolution) ($RES_$AUX_23) (3) [TUPL] (4) (sample1.noise.noise, $FUN_3) = Modelica.Clocked.RealSignals.Sampler.Utilities.Internal.random({$FUN_1 for $i1 in 1:3}) ($RES_$AUX_24) (4) [SCAL] (1) $FUN_1 = previous(sample1.noise.seedState[$i1]) ($RES_$AUX_25) (5) [SCAL] (1) sample1.noise.u = $SEV_4 ($RES_SIM_8) (6) [ARRY] (3) sample1.noise.seedState = $FUN_3 ($RES_$AUX_27) (7) [SCAL] (1) sample1.noise.y = sample1.noise.noiseMin + sample1.noise.u + (sample1.noise.noiseMax - sample1.noise.noiseMin) * sample1.noise.noise ($RES_SIM_6) (8) [SCAL] (1) sample1.limiter.y = if $SEV_1 then sample1.limiter.uMax else if $SEV_2 then sample1.limiter.uMin else sample1.noise.y ($RES_SIM_4) (9) [SCAL] (1) assignClock.u = $FUN_5 * sample1.quantization.resolution * (if $SEV_0 then 1.0 else -1.0) ($RES_SIM_3) (10) [WHEN] (1)when periodicClock.c then (10) [----] assignClock.y := assignClock.u (10) [----] end when; (11) [SCAL] (1) $SEV_1 = sample1.noise.y > sample1.limiter.uMax ($RES_EVT_30) (12) [SCAL] (1) periodicClock.c = Clock(periodicClock.factor, 1000) ($RES_SIM_1) (13) [SCAL] (1) $SEV_2 = sample1.noise.y < sample1.limiter.uMin ($RES_EVT_31) (14) [SCAL] (1) $SEV_4 = sample(1, sine.y, Clock()) ($RES_EVT_33) (15) [SCAL] (1) $SEV_0 = sample1.limiter.y >= 0.0 ($RES_EVT_29) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 9 var 2 --> eqn 10 var 3 --> eqn 11 var 4 --> eqn 8 var 5 --> eqn 3 var 6 --> eqn 12 var 7 --> eqn 1 var 8 --> eqn 2 var 9 --> eqn 13 var 10 --> eqn 6 var 11 --> eqn 5 var 12 --> eqn 4 var 13 --> eqn 7 var 14 --> eqn 19 var 15 --> eqn 18 var 16 --> eqn 16 var 17 --> eqn 20 var 18 --> eqn 14 var 19 --> eqn 17 var 20 --> eqn 15 equation to variable ********************** eqn 1 --> var 7 eqn 2 --> var 8 eqn 3 --> var 5 eqn 4 --> var 12 eqn 5 --> var 11 eqn 6 --> var 10 eqn 7 --> var 13 eqn 8 --> var 4 eqn 9 --> var 1 eqn 10 --> var 2 eqn 11 --> var 3 eqn 12 --> var 6 eqn 13 --> var 9 eqn 14 --> var 18 eqn 15 --> var 20 eqn 16 --> var 16 eqn 17 --> var 19 eqn 18 --> var 15 eqn 19 --> var 14 eqn 20 --> var 17