Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average.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/Annex60 1.0.0/package.mo", uses=false) Using package Annex60 with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/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(Annex60.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average") translateModel(Annex60.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Annex60_1.0.0_Annex60.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 107.4 kB / 16.42 MB, free: 6.484 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.0009811/0.0009813, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.285/1.285, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Annex60 1.0.0/package.mo): time 0.2553/0.2553, allocations: 54.96 MB / 325.5 MB, free: 4.848 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.507e-05/1.508e-05, allocations: 2.281 kB / 456.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Annex60.Utilities.Math.Examples.Average): time 0.002052/0.002075, allocations: 1.495 MB / 458.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002483/0.002335, allocations: 99.69 kB / 458.4 MB, free: 1.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.952e-05/0.002386, allocations: 8 kB / 458.4 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.693e-05/0.002488, allocations: 7.922 kB / 458.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 2.163e-05/0.002515, allocations: 7.922 kB / 458.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.002713, allocations: 27.91 kB / 458.5 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.471e-05/0.002816, allocations: 67.77 kB / 458.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.002924, allocations: 19.98 kB / 458.5 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.468e-05/0.002974, allocations: 27.91 kB / 458.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.604e-05/0.003036, allocations: 27.86 kB / 458.6 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.003055, allocations: 4 kB / 458.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.346e-05/0.003113, allocations: 11.98 kB / 458.6 MB, free: 0.875 MB / 334.1 MB Notification: Performance of combineBinaries: time 7.055e-05/0.003189, allocations: 83.06 kB / 458.7 MB, free: 0.793 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 2.311e-05/0.003217, allocations: 51.22 kB / 458.7 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.607e-05/0.003239, allocations: 11.94 kB / 458.8 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.135e-05/0.003254, allocations: 4 kB / 458.8 MB, free: 0.7266 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 (7) * Number of variables: 9 (7) Notification: Performance of Bindings: time 0.0003395/0.0036, allocations: 355.7 kB / 459.1 MB, free: 284 kB / 334.1 MB Notification: Performance of FunctionAlias: time 2.297e-05/0.003629, allocations: 11.92 kB / 459.1 MB, free: 272 kB / 334.1 MB Notification: Performance of Early Inline: time 0.0001952/0.003829, allocations: 168.3 kB / 459.3 MB, free: 76 kB / 334.1 MB Notification: Performance of simplify1: time 1.757e-05/0.003853, allocations: 19.91 kB / 459.3 MB, free: 56 kB / 334.1 MB Notification: Performance of Alias: time 0.000117/0.003977, allocations: 84.55 kB / 459.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of simplify2: time 1.399e-05/0.003997, allocations: 19.92 kB / 459.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of Events: time 0.0001121/0.004114, allocations: 43.91 kB / 459.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of Detect States: time 7.791e-05/0.004201, allocations: 64.19 kB / 459.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of Partitioning: time 8.46e-05/0.004292, allocations: 71.94 kB / 459.6 MB, free: 15.72 MB / 350.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 1 for dependency multiplex2_1.u1[1] could not be divided by the body size 2 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (2) {{multiplex2_1.y[1]}, {multiplex2_1.y[2]}} = {{multiplex2_1.u1[1]}, {multiplex2_1.u2[1]}} ($RES_SIM_0) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (11/13) ************************** (1) [ALGB] (1) Real[1] multiplex2_1.u1 (2) [ALGB] (1) Real[1] multiplex2_1.u2 (3) [ALGB] (1) Real average.y (4) [DISC] (1) Boolean $TEV_3 (5) [DISC] (1) Boolean $TEV_2 (6) [DISC] (1) Boolean $TEV_1 (7) [ALGB] (1) Real x1.y (8) [DISC] (1) Boolean $TEV_0 (9) [ALGB] (2) Real[2] average.u (10) [ALGB] (2) Real[2] multiplex2_1.y (11) [ALGB] (1) Real x2.y System Equations (11/13) ************************** (1) [ARRY] (2) multiplex2_1.y = average.u ($RES_SIM_4) (2) [SCAL] (1) $TEV_1 = time < (x2.startTime + x2.duration) ($RES_EVT_8) (3) [SCAL] (1) average.y = 0.5 * sum(average.u) ($RES_SIM_3) (4) [SCAL] (1) $TEV_0 = time < x2.startTime ($RES_EVT_7) (5) [SCAL] (1) x1.y = x1.offset + (if $TEV_2 then 0.0 else if $TEV_3 then (x1.height * (time - x1.startTime)) / x1.duration else x1.height) ($RES_SIM_2) (6) [SCAL] (1) x2.y = x2.offset + (if $TEV_0 then 0.0 else if $TEV_1 then (x2.height * (time - x2.startTime)) / x2.duration else x2.height) ($RES_SIM_1) (7) [ARRY] (2) {{multiplex2_1.y[1]}, {multiplex2_1.y[2]}} = {{multiplex2_1.u1[1]}, {multiplex2_1.u2[1]}} ($RES_SIM_0) (8) [SCAL] (1) $TEV_3 = time < (x1.startTime + x1.duration) ($RES_EVT_10) (9) [SCAL] (1) x1.y = multiplex2_1.u1[1] ($RES_SIM_6) (10) [SCAL] (1) x2.y = multiplex2_1.u2[1] ($RES_SIM_5) (11) [SCAL] (1) $TEV_2 = time < x1.startTime ($RES_EVT_9)