Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.ComplexBlocks.Examples.ShowTransferFunction.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) 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(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.ComplexBlocks.Examples.ShowTransferFunction") translateModel(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 110.3 kB / 16.42 MB, free: 6.508 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.001053/0.001053, allocations: 191.1 kB / 17.36 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.282/1.282, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.277e-05/2.276e-05, allocations: 6.219 kB / 327.1 MB, free: 3.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002186/0.002217, allocations: 1.597 MB / 328.7 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.003252, allocations: 0.6831 MB / 329.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.003312, allocations: 4 kB / 329.4 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002235/0.003541, allocations: 47.73 kB / 329.5 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.003725, allocations: 39.72 kB / 329.5 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009999/0.004733, allocations: 0.5952 MB / 330.1 MB, free: 400 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001971/0.00494, allocations: 135.6 kB / 330.2 MB, free: 264 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.00505, allocations: 27.98 kB / 330.3 MB, free: 236 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.005182, allocations: 63.7 kB / 330.3 MB, free: 172 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001251/0.005316, allocations: 71.69 kB / 330.4 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.005344, allocations: 8 kB / 330.4 MB, free: 92 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001826/0.005533, allocations: 143.8 kB / 330.6 MB, free: 15.95 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0001344/0.005677, allocations: 205.3 kB / 330.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 6.378e-05/0.005747, allocations: 145.8 kB / 330.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.005774, allocations: 11.94 kB / 330.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.799e-05/0.005797, allocations: 3.984 kB / 330.9 MB, free: 15.59 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 (18) * Number of variables: 41 (25) Notification: Performance of Bindings: time 0.0006898/0.006492, allocations: 0.8242 MB / 331.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001324/0.00663, allocations: 111 kB / 331.8 MB, free: 14.55 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007741/0.007412, allocations: 0.8231 MB / 332.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of simplify1: time 5.453e-05/0.007477, allocations: 47.92 kB / 332.7 MB, free: 13.65 MB / 286.1 MB Notification: Performance of Alias: time 0.0005403/0.008025, allocations: 430.8 kB / 333.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simplify2: time 4.597e-05/0.008081, allocations: 47.92 kB / 333.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of Events: time 8.04e-05/0.008168, allocations: 62.17 kB / 333.2 MB, free: 13.05 MB / 286.1 MB Notification: Performance of Detect States: time 0.0001231/0.0083, allocations: 141.2 kB / 333.4 MB, free: 12.9 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001886/0.008495, allocations: 193.7 kB / 333.6 MB, free: 12.7 MB / 286.1 MB Error: Internal error NBSlice.fillDependencyArray failed because number of flattened indices 3 for dependency transferFunction.aw.im could not be divided by the body size 6 without rest. Error: Internal error NBAdjacency.Matrix.createPseudo failed for: [ARRY] (6) transferFunction.aw = {Complex.'constructor'.fromReal(transferFunction.a[i] * cos(((-1) + i) * atan2(logFrequencySweep.y, 0.0)) * exp(0.5 * ((-1) + i) * log(logFrequencySweep.y * logFrequencySweep.y)), transferFunction.a[i] * sin(((-1) + i) * atan2(logFrequencySweep.y, 0.0)) * exp(0.5 * ((-1) + i) * log(logFrequencySweep.y * logFrequencySweep.y))) for i in 1:3} ($RES_SIM_5) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (33/49) ************************** (1) [ALGB] (1) Real $FUN_4 (2) [ALGB] (1) Real $FUN_3 (3) [ALGB] (1) Real $FUN_2 (4) [ALGB] (1) Real $FUN_1 (5) [ALGB] (1) protected Real transferFunction.aSum.re (6) [ALGB] (1) output Real transferFunction.y.im (7) [ALGB] (1) protected Real transferFunction.bSum.re (8) [ALGB] (1) input Real complexToPolar.u.re (9) [ALGB] (9) protected Real[3, 3] transferFunction.aw.re (10) [ALGB] (1) protected Real transferFunction.uInternal.im = transferFunction.u.im (11) [ALGB] (1) protected Real transferFunction.aSum.im (12) [ALGB] (1) output Real transferFunction.y.re (13) [ALGB] (1) protected Real transferFunction.bSum.im (14) [ALGB] (1) input Real complexToPolar.u.im (15) [ALGB] (1) Real lg_w = log10(logFrequencySweep.y) (16) [ALGB] (9) protected Real[3, 3] transferFunction.aw.im (17) [ALGB] (1) protected Real transferFunction.uInternal.re = transferFunction.u.re (18) [ALGB] (1) output Real const.y.im (19) [ALGB] (1) protected Real[1, 1] transferFunction.bw.re (20) [ALGB] (1) input Real transferFunction.u.im (21) [ALGB] (1) Real complexToPolar.len (22) [ALGB] (1) Real dB = 20.0 * log10(complexToPolar.len) (23) [DISC] (1) Boolean $TEV_1 (24) [ALGB] (1) output Real const.y.re (25) [DISC] (1) Boolean $TEV_0 (26) [ALGB] (1) protected Real[1, 1] transferFunction.bw.im (27) [ALGB] (1) Real phi = phi (28) [ALGB] (1) input Real transferFunction.u.re (29) [ALGB] (1) Real $FUN_8 (30) [ALGB] (1) Real $FUN_7 (31) [ALGB] (1) Real $FUN_6 (32) [ALGB] (1) Real logFrequencySweep.y (33) [ALGB] (1) Real $FUN_5 System Equations (30/37) ************************** (1) [SCAL] (1) $FUN_8 = atan2(complexToPolar.u.im, complexToPolar.u.re) ($RES_$AUX_20) (2) [SCAL] (1) $FUN_7 = atan2(-complexToPolar.u.im, complexToPolar.u.re) ($RES_$AUX_21) (3) [SCAL] (1) $FUN_6 = sum(transferFunction.aw.im) ($RES_$AUX_22) (4) [SCAL] (1) $FUN_5 = sum(transferFunction.aw.re) ($RES_$AUX_23) (5) [SCAL] (1) $FUN_4 = sum(transferFunction.bw.im) ($RES_$AUX_24) (6) [SCAL] (1) lg_w = log10(logFrequencySweep.y) ($RES_$AUX_18) (7) [SCAL] (1) transferFunction.y.im = complexToPolar.u.im ($RES_SIM_9) (8) [SCAL] (1) $FUN_3 = sum(transferFunction.bw.re) ($RES_$AUX_25) (9) [SCAL] (1) 0.05 * dB = log10(complexToPolar.len) ($RES_$AUX_19) (10) [SCAL] (1) logFrequencySweep.y = if $TEV_0 then logFrequencySweep.wMin else if $TEV_1 then 10.0 ^ ($FUN_1 + ($FUN_2 - $FUN_1) * min(1.0, (time - logFrequencySweep.startTime) / max(logFrequencySweep.duration, 1e-15))) else logFrequencySweep.wMax ($RES_SIM_8) (11) [SCAL] (1) $FUN_2 = log10(logFrequencySweep.wMax) ($RES_$AUX_26) (12) [RECD] (2) const.y = const.k ($RES_SIM_7) (13) [SCAL] (1) $FUN_1 = log10(logFrequencySweep.wMin) ($RES_$AUX_27) (14) [ARRY] (6) transferFunction.aw = {Complex.'constructor'.fromReal(transferFunction.a[i] * cos(((-1) + i) * atan2(logFrequencySweep.y, 0.0)) * exp(0.5 * ((-1) + i) * log(logFrequencySweep.y * logFrequencySweep.y)), transferFunction.a[i] * sin(((-1) + i) * atan2(logFrequencySweep.y, 0.0)) * exp(0.5 * ((-1) + i) * log(logFrequencySweep.y * logFrequencySweep.y))) for i in 1:3} ($RES_SIM_5) (15) [SCAL] (1) transferFunction.y.re = complexToPolar.u.re ($RES_SIM_10) (16) [SCAL] (1) const.y.im = transferFunction.u.im ($RES_SIM_12) (17) [SCAL] (1) const.y.re = transferFunction.u.re ($RES_SIM_13) (18) [SCAL] (1) complexToPolar.len = (complexToPolar.u.re ^ 2.0 + complexToPolar.u.im ^ 2.0) ^ 0.5 ($RES_SIM_1) (19) [SCAL] (1) phi = if complexToPolar.useConjugateInput then $FUN_7 else $FUN_8 ($RES_SIM_0) (20) [RECD] (2) transferFunction.uInternal = transferFunction.u ($RES_BND_17) (21) [SCAL] (1) transferFunction.bSum.re = $FUN_3 ($RES_SIM_30) (22) [SCAL] (1) transferFunction.bSum.im = $FUN_4 ($RES_SIM_31) (23) [SCAL] (1) transferFunction.aSum.re = $FUN_5 ($RES_SIM_32) (24) [SCAL] (1) transferFunction.aSum.im = $FUN_6 ($RES_SIM_33) (25) [SCAL] (1) $TEV_0 = time < logFrequencySweep.startTime ($RES_EVT_37) (26) [ARRY] (1) transferFunction.bw.re = {transferFunction.b[1]} ($RES_SIM_28) (27) [SCAL] (1) transferFunction.y.re = ((transferFunction.bSum.re * transferFunction.u.re - transferFunction.bSum.im * transferFunction.u.im) * transferFunction.aSum.re + (transferFunction.bSum.re * transferFunction.u.im + transferFunction.bSum.im * transferFunction.u.re) * transferFunction.aSum.im) / (transferFunction.aSum.re * transferFunction.aSum.re + transferFunction.aSum.im * transferFunction.aSum.im) ($RES_SIM_34) (28) [SCAL] (1) $TEV_1 = time < (logFrequencySweep.startTime + max(logFrequencySweep.duration, 1e-15)) ($RES_EVT_38) (29) [ARRY] (1) transferFunction.bw.im = {0.0} ($RES_SIM_29) (30) [SCAL] (1) transferFunction.y.im = ((transferFunction.bSum.re * transferFunction.u.im + transferFunction.bSum.im * transferFunction.u.re) * transferFunction.aSum.re - (transferFunction.bSum.re * transferFunction.u.re - transferFunction.bSum.im * transferFunction.u.im) * transferFunction.aSum.im) / (transferFunction.aSum.re * transferFunction.aSum.re + transferFunction.aSum.im * transferFunction.aSum.im) ($RES_SIM_35)