Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 109.5 kB / 17.7 MB, free: 5.383 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.001186/0.001186, allocations: 188.7 kB / 18.64 MB, free: 4.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.259/1.259, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.397e-05/2.398e-05, allocations: 6.219 kB / 302 MB, free: 5.195 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.002796/0.002835, allocations: 1.85 MB / 303.9 MB, free: 3.348 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.003927, allocations: 0.6948 MB / 304.6 MB, free: 2.648 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.018e-05/0.00403, allocations: 4.969 kB / 304.6 MB, free: 2.645 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.004155, allocations: 19.73 kB / 304.6 MB, free: 2.625 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.004305, allocations: 24.83 kB / 304.6 MB, free: 2.602 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004869/0.004799, allocations: 153 kB / 304.8 MB, free: 2.453 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.005011, allocations: 163.6 kB / 304.9 MB, free: 2.293 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.005154, allocations: 57.53 kB / 305 MB, free: 2.238 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.234e-05/0.005252, allocations: 59.7 kB / 305 MB, free: 2.18 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.643e-05/0.005347, allocations: 55.7 kB / 305.1 MB, free: 2.125 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 2.857e-05/0.005382, allocations: 12 kB / 305.1 MB, free: 2.113 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.581e-05/0.005473, allocations: 55.89 kB / 305.2 MB, free: 2.059 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.000152/0.005633, allocations: 217.3 kB / 305.4 MB, free: 1.844 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 7.295e-05/0.005713, allocations: 149.8 kB / 305.5 MB, free: 1.695 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 3.755e-05/0.005758, allocations: 23.88 kB / 305.5 MB, free: 1.672 MB / 238.1 MB Notification: Performance of FrontEnd: time 2.912e-05/0.005793, allocations: 4 kB / 305.5 MB, free: 1.668 MB / 238.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.0006205/0.00642, allocations: 0.6861 MB / 306.2 MB, free: 0.8789 MB / 238.1 MB Notification: Performance of FunctionAlias: time 0.0001037/0.00653, allocations: 71.83 kB / 306.3 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of Early Inline: time 0.000268/0.006804, allocations: 316.1 kB / 306.6 MB, free: 484 kB / 238.1 MB Notification: Performance of simplify1: time 2.978e-05/0.006841, allocations: 19.97 kB / 306.6 MB, free: 464 kB / 238.1 MB Notification: Performance of Alias: time 0.0005848/0.007433, allocations: 0.5242 MB / 307.2 MB, free: 15.83 MB / 254.1 MB Notification: Performance of simplify2: time 2.034e-05/0.007464, allocations: 23.89 kB / 307.2 MB, free: 15.81 MB / 254.1 MB Notification: Performance of Events: time 8.983e-05/0.00756, allocations: 55.91 kB / 307.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of Detect States: time 0.0001407/0.007708, allocations: 104.1 kB / 307.3 MB, free: 15.64 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001289/0.007845, allocations: 120.3 kB / 307.5 MB, free: 15.5 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_6 (6) [ALGB] (1) Real $FUN_5 (7) [DISC] (3) Integer[3] $FUN_4 (8) [ALGB] (1) Real sample1.limiter.y (9) [DISC] (1) Integer $FUN_2 (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_6 = floor(0.5 + $FUN_5) ($RES_$AUX_22) (2) [SCAL] (1) $FUN_5 = abs(sample1.limiter.y / sample1.quantization.resolution) ($RES_$AUX_23) (3) [TUPL] (4) (sample1.noise.noise, $FUN_4) = Modelica.Clocked.RealSignals.Sampler.Utilities.Internal.random({$FUN_2 for $i1 in 1:3}) ($RES_$AUX_24) (4) [SCAL] (1) $FUN_2 = previous(sample1.noise.seedState[$i1]) ($RES_$AUX_25) (5) [SCAL] (1) sample1.noise.u = $SEV_4 ($RES_SIM_8) (6) [SCAL] (1) sample1.noise.y = sample1.noise.noiseMin + sample1.noise.u + (sample1.noise.noiseMax - sample1.noise.noiseMin) * sample1.noise.noise ($RES_SIM_6) (7) [ARRY] (3) sample1.noise.seedState = $FUN_4 ($RES_$AUX_28) (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_6 * 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) periodicClock.c = Clock(periodicClock.factor, 1000) ($RES_SIM_1) (12) [SCAL] (1) $SEV_0 = sample1.limiter.y >= 0.0 ($RES_EVT_30) (13) [SCAL] (1) $SEV_1 = sample1.noise.y > sample1.limiter.uMax ($RES_EVT_31) (14) [SCAL] (1) $SEV_2 = sample1.noise.y < sample1.limiter.uMin ($RES_EVT_32) (15) [SCAL] (1) $SEV_4 = sample(1, sine.y, Clock()) ($RES_EVT_34) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 10 var 2 --> eqn 11 var 3 --> eqn 12 var 4 --> eqn 8 var 5 --> eqn 3 var 6 --> eqn 9 var 7 --> eqn 1 var 8 --> eqn 2 var 9 --> eqn 6 var 10 --> eqn 5 var 11 --> eqn 4 var 12 --> eqn 13 var 13 --> eqn 7 var 14 --> eqn 20 var 15 --> eqn 19 var 16 --> eqn 18 var 17 --> eqn 17 var 18 --> eqn 14 var 19 --> eqn 16 var 20 --> eqn 15 equation to variable ********************** eqn 1 --> var 7 eqn 2 --> var 8 eqn 3 --> var 5 eqn 4 --> var 11 eqn 5 --> var 10 eqn 6 --> var 9 eqn 7 --> var 13 eqn 8 --> var 4 eqn 9 --> var 6 eqn 10 --> var 1 eqn 11 --> var 2 eqn 12 --> var 3 eqn 13 --> var 12 eqn 14 --> var 18 eqn 15 --> var 20 eqn 16 --> var 19 eqn 17 --> var 17 eqn 18 --> var 16 eqn 19 --> var 15 eqn 20 --> var 14