Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker.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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.SignalRanker") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 108.2 kB / 16.42 MB, free: 6.418 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.00104/0.00104, allocations: 191.7 kB / 17.35 MB, free: 5.715 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.541/1.541, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.336/1.336, allocations: 251.7 MB / 0.51 GB, free: 424 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.238e-05/2.239e-05, allocations: 2.281 kB / 0.7263 GB, free: 4.793 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.002433/0.002463, allocations: 1.552 MB / 0.7279 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.003577, allocations: 0.6369 MB / 0.7285 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.901e-05/0.003646, allocations: 0 / 0.7285 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.003757, allocations: 11.86 kB / 0.7285 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.293e-05/0.003826, allocations: 19.8 kB / 0.7285 GB, free: 2.551 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.00424, allocations: 91.75 kB / 0.7286 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001817/0.004433, allocations: 111.7 kB / 0.7287 GB, free: 2.352 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.004551, allocations: 20.23 kB / 0.7287 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.004672, allocations: 43.83 kB / 0.7288 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.478e-05/0.004764, allocations: 47.77 kB / 0.7288 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.004792, allocations: 8 kB / 0.7288 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001342/0.004931, allocations: 87.84 kB / 0.7289 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0001371/0.005074, allocations: 130.6 kB / 0.729 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 4.419e-05/0.005124, allocations: 86.72 kB / 0.7291 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.107e-05/0.00516, allocations: 8 kB / 0.7291 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.234e-05/0.005177, allocations: 0 / 0.7291 GB, free: 1.926 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 (10) * Number of variables: 12 (8) Notification: Performance of Bindings: time 0.0005855/0.005766, allocations: 486.9 kB / 0.7296 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 0.000117/0.005889, allocations: 72.81 kB / 0.7297 GB, free: 1.277 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0002583/0.006154, allocations: 248.3 kB / 0.7299 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of simplify1: time 3.192e-05/0.006192, allocations: 31.91 kB / 0.7299 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of Alias: time 9.494e-05/0.006292, allocations: 89.69 kB / 0.73 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of simplify2: time 2.391e-05/0.006321, allocations: 27.95 kB / 0.73 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of Events: time 0.0001447/0.00647, allocations: 79.8 kB / 0.7301 GB, free: 0.7461 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0001739/0.006652, allocations: 116.1 kB / 0.7302 GB, free: 0.6172 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0001348/0.006795, allocations: 108 kB / 0.7303 GB, free: 0.5039 MB / 0.5606 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (18/26) ******************************* (1) [DISS] (1) protected Integer pulse.count (2) [ALGB] (1) Real expSine.y (3) [DISS] (1) protected Real pulse.T_start (4) [ALGB] (1) Real $FUN_5 (5) [ALGB] (1) Real $FUN_4 (6) [ALGB] (1) Real sine.y (7) [DISC] (3) Integer[3] $FUN_3 (8) [ALGB] (3) Real[3] $FUN_2 (9) [ALGB] (1) Real $FUN_1 (10) [DISC] (1) Boolean $SEV_2 (11) [ALGB] (3) Real[3] sigRan.y (12) [DISC] (1) Boolean $SEV_1 (13) [ALGB] (1) Real pulse.y (14) [DISC] (1) Boolean $SEV_0 (15) [ALGB] (3) Real[3] sigRan.u (16) [DISC] (1) Boolean $TEV_1 (17) [ALGB] (1) protected Real pulse.T_width = (pulse.width * pulse.period) / 100.0 (18) [DISC] (1) Boolean $TEV_0 system eqns Equations (19/26) ******************************* (1) [SCAL] (1) $FUN_5 = sin(6.283185307179586 * expSine.freqHz * (time - expSine.startTime) + expSine.phase) ($RES_$AUX_11) (2) [SCAL] (1) $FUN_4 = exp(-(time - expSine.startTime) * expSine.damping) ($RES_$AUX_12) (3) [TUPL] (6) ($FUN_2, $FUN_3) = Modelica.Math.Vectors.sort(sigRan.u, false) ($RES_$AUX_13) (4) [SCAL] (1) $FUN_1 = sin(6.283185307179586 * sine.freqHz * (time - sine.startTime) + sine.phase) ($RES_$AUX_14) (5) [SCAL] (1) sine.y = sigRan.u[1] ($RES_SIM_9) (6) [SCAL] (1) pulse.y = sigRan.u[2] ($RES_SIM_8) (7) [SCAL] (1) expSine.y = sigRan.u[3] ($RES_SIM_7) (8) [SCAL] (1) sine.y = sine.offset + (if $TEV_1 then 0.0 else sine.amplitude * $FUN_1) ($RES_SIM_6) (9) [WHEN] (1)when $SEV_2 then (9) [----] pulse.count := $PRE.pulse.count + 1 (9) [----] end when; (10) [SCAL] (1) pulse.T_width = 0.01 * pulse.width * pulse.period ($RES_BND_10) (11) [WHEN] (1)when $SEV_2 then (11) [----] pulse.T_start := time (11) [----] end when; (12) [SCAL] (1) $TEV_0 = time < expSine.startTime ($RES_EVT_15) (13) [SCAL] (1) pulse.y = pulse.offset + (if $SEV_0 then 0.0 else if $SEV_1 then pulse.amplitude else 0.0) ($RES_SIM_3) (14) [SCAL] (1) $TEV_1 = time < sine.startTime ($RES_EVT_16) (15) [ARRY] (3) sigRan.y = $FUN_2 ($RES_SIM_2) (16) [SCAL] (1) $SEV_0 = (time < pulse.startTime or pulse.nperiod == 0) or pulse.nperiod > 0 and pulse.count >= pulse.nperiod ($RES_EVT_17) (17) [SCAL] (1) expSine.y = expSine.offset + (if $TEV_0 then 0.0 else $FUN_4 * expSine.amplitude * $FUN_5) ($RES_SIM_1) (18) [SCAL] (1) $SEV_1 = time < (pulse.T_start + pulse.T_width) ($RES_EVT_18) (19) [SCAL] (1) $SEV_2 = integer((time - pulse.startTime) / pulse.period) > $PRE.pulse.count ($RES_EVT_19) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 14 var 2 --> eqn 24 var 3 --> eqn 16 var 4 --> eqn 1 var 5 --> eqn 2 var 6 --> eqn 13 var 7 --> eqn 3 var 8 --> eqn 4 var 9 --> eqn 5 var 10 --> eqn 8 var 11 --> eqn 7 var 12 --> eqn 6 var 13 --> eqn 9 var 14 --> eqn 26 var 15 --> eqn 20 var 16 --> eqn 21 var 17 --> eqn 22 var 18 --> eqn 25 var 19 --> eqn 18 var 20 --> eqn 23 var 21 --> eqn 10 var 22 --> eqn 11 var 23 --> eqn 12 var 24 --> eqn 19 var 25 --> eqn 15 var 26 --> eqn 17 equation to variable ********************** eqn 1 --> var 4 eqn 2 --> var 5 eqn 3 --> var 7 eqn 4 --> var 8 eqn 5 --> var 9 eqn 6 --> var 12 eqn 7 --> var 11 eqn 8 --> var 10 eqn 9 --> var 13 eqn 10 --> var 21 eqn 11 --> var 22 eqn 12 --> var 23 eqn 13 --> var 6 eqn 14 --> var 1 eqn 15 --> var 25 eqn 16 --> var 3 eqn 17 --> var 26 eqn 18 --> var 19 eqn 19 --> var 24 eqn 20 --> var 15 eqn 21 --> var 16 eqn 22 --> var 17 eqn 23 --> var 20 eqn 24 --> var 2 eqn 25 --> var 18 eqn 26 --> var 14