Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Controls.Continuous.Examples.SignalRanker") translateModel(Buildings.Controls.Continuous.Examples.SignalRanker,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001348/0.001348, allocations: 108.4 kB / 16.38 MB, free: 6.387 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.001236/0.001237, allocations: 195.6 kB / 17.32 MB, free: 5.766 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.423/1.423, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.719/1.719, allocations: 292.3 MB / 0.5496 GB, free: 17.6 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.153e-05/2.154e-05, allocations: 2.281 kB / 0.6728 GB, free: 5.848 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.SignalRanker): time 0.00239/0.002426, allocations: 1.554 MB / 0.6744 GB, free: 4.277 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009097/0.003348, allocations: 0.6281 MB / 0.675 GB, free: 3.641 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.415e-05/0.003402, allocations: 0 / 0.675 GB, free: 3.641 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 8.756e-05/0.003497, allocations: 15.86 kB / 0.675 GB, free: 3.625 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.575e-05/0.003558, allocations: 23.8 kB / 0.675 GB, free: 3.602 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.003897, allocations: 83.77 kB / 0.6751 GB, free: 3.52 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000146/0.004053, allocations: 107.7 kB / 0.6752 GB, free: 3.414 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.004159, allocations: 24.23 kB / 0.6752 GB, free: 3.391 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.179e-05/0.004259, allocations: 43.84 kB / 0.6753 GB, free: 3.348 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.051e-05/0.004337, allocations: 47.81 kB / 0.6753 GB, free: 3.301 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.778e-05/0.004361, allocations: 8 kB / 0.6753 GB, free: 3.293 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.004482, allocations: 87.84 kB / 0.6754 GB, free: 3.207 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.0001088/0.004599, allocations: 138.5 kB / 0.6755 GB, free: 3.07 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 3.664e-05/0.004642, allocations: 70.88 kB / 0.6756 GB, free: 3 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.832e-05/0.004676, allocations: 15.94 kB / 0.6756 GB, free: 2.984 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.105e-05/0.004692, allocations: 0 / 0.6756 GB, free: 2.984 MB / 0.545 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.0004832/0.00518, allocations: 498.8 kB / 0.6761 GB, free: 2.395 MB / 0.545 GB Notification: Performance of FunctionAlias: time 0.0001032/0.005291, allocations: 56.92 kB / 0.6761 GB, free: 2.34 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0002158/0.005513, allocations: 260.2 kB / 0.6764 GB, free: 2.059 MB / 0.545 GB Notification: Performance of simplify1: time 2.457e-05/0.005544, allocations: 23.95 kB / 0.6764 GB, free: 2.035 MB / 0.545 GB Notification: Performance of Alias: time 9.743e-05/0.005647, allocations: 105.6 kB / 0.6765 GB, free: 1.895 MB / 0.545 GB Notification: Performance of simplify2: time 1.624e-05/0.005669, allocations: 19.92 kB / 0.6765 GB, free: 1.875 MB / 0.545 GB Notification: Performance of Events: time 0.0001166/0.00579, allocations: 71.83 kB / 0.6766 GB, free: 1.805 MB / 0.545 GB Notification: Performance of Detect States: time 0.0001548/0.005952, allocations: 124.1 kB / 0.6767 GB, free: 1.668 MB / 0.545 GB Notification: Performance of Partitioning: time 0.0001195/0.006079, allocations: 99.34 kB / 0.6768 GB, free: 1.566 MB / 0.545 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