Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort.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.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.Sort") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 101.6 kB / 16.37 MB, free: 6.363 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.001439/0.00144, allocations: 191.5 kB / 17.3 MB, free: 5.914 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.51/1.51, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.8/1.8, allocations: 292.3 MB / 0.5496 GB, free: 17.57 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.021e-05/3.06e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.926 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002087/0.002134, allocations: 0.8344 MB / 0.6737 GB, free: 5.09 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0014/0.003548, allocations: 1.007 MB / 0.6747 GB, free: 4.066 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.33e-05/0.003614, allocations: 8 kB / 0.6747 GB, free: 4.059 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001134/0.003734, allocations: 15.8 kB / 0.6747 GB, free: 4.043 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.897e-05/0.003794, allocations: 15.8 kB / 0.6747 GB, free: 4.027 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004105/0.00421, allocations: 87.83 kB / 0.6748 GB, free: 3.941 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001759/0.004396, allocations: 135.6 kB / 0.6749 GB, free: 3.809 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001777/0.004583, allocations: 57.31 kB / 0.675 GB, free: 3.75 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.383e-05/0.004664, allocations: 51.84 kB / 0.675 GB, free: 3.699 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.955e-05/0.004749, allocations: 55.81 kB / 0.6751 GB, free: 3.645 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.004779, allocations: 11.94 kB / 0.6751 GB, free: 3.633 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.004929, allocations: 95.84 kB / 0.6752 GB, free: 3.539 MB / 0.545 GB Notification: Performance of combineBinaries: time 0.000144/0.00508, allocations: 158.2 kB / 0.6753 GB, free: 3.383 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 4.911e-05/0.005136, allocations: 102.5 kB / 0.6754 GB, free: 3.281 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.484e-05/0.005165, allocations: 8 kB / 0.6754 GB, free: 3.273 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.809e-05/0.005198, allocations: 11.92 kB / 0.6754 GB, free: 3.262 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: 25 (17) * Number of variables: 25 (9) Notification: Performance of Bindings: time 0.0005943/0.005798, allocations: 0.5424 MB / 0.676 GB, free: 2.617 MB / 0.545 GB Notification: Performance of FunctionAlias: time 8.891e-05/0.005892, allocations: 43.8 kB / 0.676 GB, free: 2.574 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0003087/0.006208, allocations: 312.2 kB / 0.6763 GB, free: 2.242 MB / 0.545 GB Notification: Performance of simplify1: time 3.249e-05/0.006247, allocations: 27.97 kB / 0.6763 GB, free: 2.215 MB / 0.545 GB Notification: Performance of Alias: time 0.0001182/0.00637, allocations: 109.6 kB / 0.6764 GB, free: 2.07 MB / 0.545 GB Notification: Performance of simplify2: time 2.804e-05/0.006404, allocations: 27.97 kB / 0.6765 GB, free: 2.043 MB / 0.545 GB Notification: Performance of Events: time 0.0001659/0.006575, allocations: 127.7 kB / 0.6766 GB, free: 1.918 MB / 0.545 GB Notification: Performance of Detect States: time 0.0001281/0.006712, allocations: 112.1 kB / 0.6767 GB, free: 1.793 MB / 0.545 GB Notification: Performance of Partitioning: time 0.0001586/0.006878, allocations: 136.1 kB / 0.6768 GB, free: 1.652 MB / 0.545 GB Error: Internal error NBSorting.tarjan failed to sort system: system vars Variables (23/55) ******************************* (1) [ALGB] (5) Real[5] sorAsc.y (2) [ALGB] (1) Real ramp4.y (3) [ALGB] (5) Real[5] sorAsc.u (4) [ALGB] (1) Real ramp2.y (5) [DISC] (5) Integer[5] $FUN_4 (6) [ALGB] (5) Real[5] $FUN_3 (7) [DISC] (5) Integer[5] $FUN_2 (8) [ALGB] (5) Real[5] $FUN_1 (9) [DISC] (1) Boolean $TEV_9 (10) [DISC] (1) Boolean $TEV_8 (11) [DISC] (1) Boolean $TEV_7 (12) [DISC] (1) Boolean $TEV_6 (13) [ALGB] (1) Real ramp5.y (14) [DISC] (1) Boolean $TEV_5 (15) [DISC] (1) Boolean $TEV_4 (16) [ALGB] (5) Real[5] sorDes.y (17) [DISC] (1) Boolean $TEV_3 (18) [ALGB] (1) Real ramp3.y (19) [DISC] (1) Boolean $TEV_2 (20) [DISC] (1) Boolean $TEV_1 (21) [DISC] (1) Boolean $TEV_0 (22) [ALGB] (1) Real ramp1.y (23) [ALGB] (5) Real[5] sorDes.u system eqns Equations (29/55) ******************************* (1) [TUPL] (10) ($FUN_3, $FUN_4) = Modelica.Math.Vectors.sort(sorDes.u, sorDes.ascending) ($RES_$AUX_17) (2) [TUPL] (10) ($FUN_1, $FUN_2) = Modelica.Math.Vectors.sort(sorAsc.u, sorAsc.ascending) ($RES_$AUX_18) (3) [SCAL] (1) ramp4.y = sorAsc.u[4] ($RES_SIM_9) (4) [SCAL] (1) ramp5.y = sorDes.u[5] ($RES_SIM_8) (5) [SCAL] (1) ramp5.y = sorAsc.u[5] ($RES_SIM_7) (6) [ARRY] (5) sorAsc.y = $FUN_1 ($RES_SIM_6) (7) [SCAL] (1) ramp1.y = ramp1.offset + (if $TEV_8 then 0.0 else if $TEV_9 then (ramp1.height * (time - ramp1.startTime)) / ramp1.duration else ramp1.height) ($RES_SIM_5) (8) [SCAL] (1) ramp4.y = sorDes.u[4] ($RES_SIM_10) (9) [SCAL] (1) $TEV_1 = time < (ramp5.startTime + ramp5.duration) ($RES_EVT_20) (10) [SCAL] (1) ramp2.y = ramp2.offset + (if $TEV_6 then 0.0 else if $TEV_7 then (ramp2.height * (time - ramp2.startTime)) / ramp2.duration else ramp2.height) ($RES_SIM_4) (11) [SCAL] (1) ramp3.y = sorAsc.u[3] ($RES_SIM_11) (12) [SCAL] (1) $TEV_2 = time < ramp4.startTime ($RES_EVT_21) (13) [SCAL] (1) ramp3.y = ramp3.offset + (if $TEV_4 then 0.0 else if $TEV_5 then (ramp3.height * (time - ramp3.startTime)) / ramp3.duration else ramp3.height) ($RES_SIM_3) (14) [SCAL] (1) ramp3.y = sorDes.u[3] ($RES_SIM_12) (15) [SCAL] (1) $TEV_3 = time < (ramp4.startTime + ramp4.duration) ($RES_EVT_22) (16) [SCAL] (1) ramp2.y = sorAsc.u[2] ($RES_SIM_13) (17) [SCAL] (1) ramp4.y = ramp4.offset + (if $TEV_2 then 0.0 else if $TEV_3 then (ramp4.height * (time - ramp4.startTime)) / ramp4.duration else ramp4.height) ($RES_SIM_2) (18) [SCAL] (1) $TEV_4 = time < ramp3.startTime ($RES_EVT_23) (19) [SCAL] (1) ramp2.y = sorDes.u[2] ($RES_SIM_14) (20) [SCAL] (1) ramp5.y = ramp5.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (ramp5.height * (time - ramp5.startTime)) / ramp5.duration else ramp5.height) ($RES_SIM_1) (21) [SCAL] (1) $TEV_5 = time < (ramp3.startTime + ramp3.duration) ($RES_EVT_24) (22) [SCAL] (1) ramp1.y = sorAsc.u[1] ($RES_SIM_15) (23) [ARRY] (5) sorDes.y = $FUN_3 ($RES_SIM_0) (24) [SCAL] (1) $TEV_6 = time < ramp2.startTime ($RES_EVT_25) (25) [SCAL] (1) $TEV_0 = time < ramp5.startTime ($RES_EVT_19) (26) [SCAL] (1) ramp1.y = sorDes.u[1] ($RES_SIM_16) (27) [SCAL] (1) $TEV_7 = time < (ramp2.startTime + ramp2.duration) ($RES_EVT_26) (28) [SCAL] (1) $TEV_8 = time < ramp1.startTime ($RES_EVT_27) (29) [SCAL] (1) $TEV_9 = time < (ramp1.startTime + ramp1.duration) ($RES_EVT_28) =================== Scalar Matching =================== variable to equation ********************** var 1 --> eqn 24 var 2 --> eqn 25 var 3 --> eqn 26 var 4 --> eqn 27 var 5 --> eqn 28 var 6 --> eqn 39 var 7 --> eqn 44 var 8 --> eqn 38 var 9 --> eqn 33 var 10 --> eqn 21 var 11 --> eqn 23 var 12 --> eqn 32 var 13 --> eqn 4 var 14 --> eqn 3 var 15 --> eqn 5 var 16 --> eqn 1 var 17 --> eqn 2 var 18 --> eqn 10 var 19 --> eqn 9 var 20 --> eqn 8 var 21 --> eqn 7 var 22 --> eqn 6 var 23 --> eqn 20 var 24 --> eqn 19 var 25 --> eqn 18 var 26 --> eqn 17 var 27 --> eqn 16 var 28 --> eqn 15 var 29 --> eqn 14 var 30 --> eqn 13 var 31 --> eqn 12 var 32 --> eqn 11 var 33 --> eqn 55 var 34 --> eqn 54 var 35 --> eqn 53 var 36 --> eqn 50 var 37 --> eqn 42 var 38 --> eqn 43 var 39 --> eqn 40 var 40 --> eqn 45 var 41 --> eqn 46 var 42 --> eqn 47 var 43 --> eqn 48 var 44 --> eqn 49 var 45 --> eqn 37 var 46 --> eqn 35 var 47 --> eqn 34 var 48 --> eqn 31 var 49 --> eqn 51 var 50 --> eqn 29 var 51 --> eqn 52 var 52 --> eqn 41 var 53 --> eqn 36 var 54 --> eqn 30 var 55 --> eqn 22 equation to variable ********************** eqn 1 --> var 16 eqn 2 --> var 17 eqn 3 --> var 14 eqn 4 --> var 13 eqn 5 --> var 15 eqn 6 --> var 22 eqn 7 --> var 21 eqn 8 --> var 20 eqn 9 --> var 19 eqn 10 --> var 18 eqn 11 --> var 32 eqn 12 --> var 31 eqn 13 --> var 30 eqn 14 --> var 29 eqn 15 --> var 28 eqn 16 --> var 27 eqn 17 --> var 26 eqn 18 --> var 25 eqn 19 --> var 24 eqn 20 --> var 23 eqn 21 --> var 10 eqn 22 --> var 55 eqn 23 --> var 11 eqn 24 --> var 1 eqn 25 --> var 2 eqn 26 --> var 3 eqn 27 --> var 4 eqn 28 --> var 5 eqn 29 --> var 50 eqn 30 --> var 54 eqn 31 --> var 48 eqn 32 --> var 12 eqn 33 --> var 9 eqn 34 --> var 47 eqn 35 --> var 46 eqn 36 --> var 53 eqn 37 --> var 45 eqn 38 --> var 8 eqn 39 --> var 6 eqn 40 --> var 39 eqn 41 --> var 52 eqn 42 --> var 37 eqn 43 --> var 38 eqn 44 --> var 7 eqn 45 --> var 40 eqn 46 --> var 41 eqn 47 --> var 42 eqn 48 --> var 43 eqn 49 --> var 44 eqn 50 --> var 36 eqn 51 --> var 49 eqn 52 --> var 51 eqn 53 --> var 35 eqn 54 --> var 34 eqn 55 --> var 33