Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 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.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.00126/0.00126, allocations: 111.5 kB / 17.14 MB, free: 5.957 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.001219/0.001219, allocations: 197.4 kB / 18.08 MB, free: 5.031 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.463/1.463, 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.06829/0.06829, allocations: 12.58 MB / 283.9 MB, free: 15.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.394e-05/4.396e-05, allocations: 2.281 kB / 394.8 MB, free: 45.42 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003153/0.003206, allocations: 1.845 MB / 396.6 MB, free: 44.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.004469, allocations: 0.7319 MB / 397.3 MB, free: 43.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.004601, allocations: 7.5 kB / 397.4 MB, free: 43.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.004766, allocations: 22.16 kB / 397.4 MB, free: 43.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.004925, allocations: 21.67 kB / 397.4 MB, free: 43.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005561/0.0055, allocations: 153.7 kB / 397.5 MB, free: 43.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.005784, allocations: 162.5 kB / 397.7 MB, free: 43.44 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001915/0.005982, allocations: 75.8 kB / 397.8 MB, free: 43.4 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001229/0.006111, allocations: 57.45 kB / 397.8 MB, free: 43.37 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001201/0.006239, allocations: 57.84 kB / 397.9 MB, free: 43.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.502e-05/0.00628, allocations: 12.16 kB / 397.9 MB, free: 43.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001214/0.006408, allocations: 58.5 kB / 398 MB, free: 43.32 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0001956/0.006609, allocations: 221.6 kB / 398.2 MB, free: 43.16 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 7.811e-05/0.006693, allocations: 141.2 kB / 398.3 MB, free: 43.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.773e-05/0.006736, allocations: 19.03 kB / 398.3 MB, free: 43.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.221e-05/0.006774, allocations: 11.47 kB / 398.3 MB, free: 43.04 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: 24 (21) * Number of variables: 24 (22) Notification: Performance of Bindings: time 0.0008479/0.007627, allocations: 0.6919 MB / 399 MB, free: 42.45 MB / 318.1 MB Notification: Performance of FunctionAlias: time 0.0001406/0.007774, allocations: 69.14 kB / 399.1 MB, free: 42.41 MB / 318.1 MB Notification: Performance of Early Inline: time 0.000344/0.008125, allocations: 312 kB / 399.4 MB, free: 42.2 MB / 318.1 MB Notification: Performance of simplify1: time 4.578e-05/0.008179, allocations: 24.88 kB / 399.4 MB, free: 42.18 MB / 318.1 MB Notification: Performance of Alias: time 0.0006894/0.008874, allocations: 0.5178 MB / 400 MB, free: 41.79 MB / 318.1 MB Notification: Performance of simplify2: time 2.753e-05/0.008911, allocations: 17.98 kB / 400 MB, free: 41.78 MB / 318.1 MB Notification: Performance of Events: time 0.0001155/0.009032, allocations: 61.69 kB / 400 MB, free: 41.75 MB / 318.1 MB Notification: Performance of Detect States: time 0.0001839/0.009222, allocations: 100.3 kB / 400.1 MB, free: 41.66 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001585/0.00939, allocations: 123.3 kB / 400.2 MB, free: 41.57 MB / 318.1 MB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (16/20) ******************************* (1) [DISC] (3) protected Integer[3] sample.noise.seedState (fixed = {true for $i1 in 1:3}, start = sample.noise.firstSeed) (2) [ALGB] (1) Real $FUN_6 (3) [ALGB] (1) Real $FUN_5 (4) [DISC] (3) Integer[3] $FUN_4 (5) [ALGB] (1) Real sample.limiter.y (6) [DISC] (1) Integer $FUN_2 (7) [ALGB] (1) Real sample.noise.u (8) [ALGB] (1) protected Real sample.noise.noise (9) [DISC] (1) Boolean $SEV_4 (10) [DISC] (1) Boolean $SEV_2 (11) [ALGB] (1) Real sample.noise.y (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(sample.limiter.y / sample.quantization.resolution) ($RES_$AUX_23) (3) [TUPL] (4) (sample.noise.noise, $FUN_4) = Modelica_Synchronous.RealSignals.Sampler.Utilities.Internal.random({$FUN_2 for $i1 in 1:3}) ($RES_$AUX_24) (4) [SCAL] (1) $FUN_2 = previous(sample.noise.seedState[$i1]) ($RES_$AUX_25) (5) [SCAL] (1) sample.noise.u = $SEV_4 ($RES_SIM_8) (6) [SCAL] (1) sample.noise.y = sample.noise.noiseMin + sample.noise.u + (sample.noise.noiseMax - sample.noise.noiseMin) * sample.noise.noise ($RES_SIM_6) (7) [ARRY] (3) sample.noise.seedState = $FUN_4 ($RES_$AUX_28) (8) [SCAL] (1) sample.limiter.y = if $SEV_1 then sample.limiter.uMax else if $SEV_2 then sample.limiter.uMin else sample.noise.y ($RES_SIM_4) (9) [SCAL] (1) assignClock.u = $FUN_6 * sample.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 = sample.limiter.y >= 0.0 ($RES_EVT_30) (13) [SCAL] (1) $SEV_1 = sample.noise.y > sample.limiter.uMax ($RES_EVT_31) (14) [SCAL] (1) $SEV_2 = sample.noise.y < sample.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 7 var 2 --> eqn 11 var 3 --> eqn 12 var 4 --> eqn 1 var 5 --> eqn 2 var 6 --> eqn 10 var 7 --> eqn 6 var 8 --> eqn 5 var 9 --> eqn 13 var 10 --> eqn 4 var 11 --> eqn 8 var 12 --> eqn 3 var 13 --> eqn 20 var 14 --> eqn 19 var 15 --> eqn 9 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 4 eqn 2 --> var 5 eqn 3 --> var 12 eqn 4 --> var 10 eqn 5 --> var 8 eqn 6 --> var 7 eqn 7 --> var 1 eqn 8 --> var 11 eqn 9 --> var 15 eqn 10 --> var 6 eqn 11 --> var 2 eqn 12 --> var 3 eqn 13 --> var 9 eqn 14 --> var 18 eqn 15 --> var 20 eqn 16 --> var 19 eqn 17 --> var 17 eqn 18 --> var 16 eqn 19 --> var 14 eqn 20 --> var 13