Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 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.OBC.CDL.Continuous.Validation.Sort,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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.001442/0.001442, allocations: 106.6 kB / 16.42 MB, free: 6.504 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.001471/0.001471, allocations: 187.8 kB / 17.35 MB, free: 5.75 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.491/1.491, allocations: 205.1 MB / 223.2 MB, free: 12.24 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.389/1.389, allocations: 251.7 MB / 0.51 GB, free: 420 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.292e-05/2.294e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Sort): time 0.002597/0.002631, allocations: 1.568 MB / 0.728 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007215/0.003364, allocations: 333.1 kB / 0.7283 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.071e-05/0.003435, allocations: 4 kB / 0.7283 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001205/0.003561, allocations: 11.86 kB / 0.7283 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.573e-05/0.003622, allocations: 19.8 kB / 0.7283 GB, free: 2.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003976/0.004027, allocations: 95.75 kB / 0.7284 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001669/0.004203, allocations: 139.6 kB / 0.7285 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.004392, allocations: 53.39 kB / 0.7286 GB, free: 2.453 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.07e-05/0.004479, allocations: 43.84 kB / 0.7286 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.516e-05/0.00456, allocations: 63.75 kB / 0.7287 GB, free: 2.348 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.239e-05/0.004587, allocations: 11.98 kB / 0.7287 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.004731, allocations: 91.84 kB / 0.7288 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0001412/0.00488, allocations: 158.2 kB / 0.729 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 5.92e-05/0.004945, allocations: 94.53 kB / 0.729 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.498e-05/0.004975, allocations: 11.94 kB / 0.7291 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.768e-05/0.004999, allocations: 4 kB / 0.7291 GB, free: 1.98 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: 25 (17) * Number of variables: 25 (9) Notification: Performance of Bindings: time 0.0006204/0.005624, allocations: 0.5424 MB / 0.7296 GB, free: 1.336 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 8.609e-05/0.005715, allocations: 51.81 kB / 0.7296 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.000339/0.006063, allocations: 316.2 kB / 0.7299 GB, free: 0.9492 MB / 0.5606 GB Notification: Performance of simplify1: time 3.091e-05/0.006105, allocations: 19.97 kB / 0.73 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of Alias: time 0.0001118/0.006222, allocations: 109.7 kB / 0.7301 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of simplify2: time 2.397e-05/0.006253, allocations: 27.97 kB / 0.7301 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of Events: time 0.0001665/0.006425, allocations: 131.6 kB / 0.7302 GB, free: 0.6289 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0001316/0.006563, allocations: 116.1 kB / 0.7303 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of Partitioning: time 0.0001605/0.00673, allocations: 139.1 kB / 0.7305 GB, free: 368 kB / 0.5606 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