Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|logFrequencySweep.y|const.y.re|const.y.im|transferFunction.y.re|transferFunction.y.im",fileNamePrefix="Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction") translateModel(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|logFrequencySweep.y|const.y.re|const.y.im|transferFunction.y.re|transferFunction.y.im",fileNamePrefix="Modelica_trunk_Modelica.ComplexBlocks.Examples.ShowTransferFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 117.5 kB / 18.47 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001316/0.001316, allocations: 213 kB / 19.42 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 247.6 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.753e-05/2.754e-05, allocations: 6.219 kB / 359.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002659/0.002694, allocations: 1.688 MB / 361 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001238/0.003944, allocations: 0.7515 MB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.004015, allocations: 11.94 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002394/0.00426, allocations: 55.72 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.004429, allocations: 35.72 kB / 361.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009441/0.005396, allocations: 0.4941 MB / 362.3 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002358/0.005643, allocations: 147.6 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001218/0.005773, allocations: 33.08 kB / 362.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.005886, allocations: 63.66 kB / 362.6 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.006083, allocations: 79.67 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.673e-05/0.006119, allocations: 11.98 kB / 362.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002139/0.006338, allocations: 123.9 kB / 362.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000173/0.00652, allocations: 221.1 kB / 363 MB, free: 9.199 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 9.403e-05/0.006622, allocations: 157.6 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.587e-05/0.006653, allocations: 11.94 kB / 363.2 MB, free: 9.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.54e-05/0.006683, allocations: 11.92 kB / 363.2 MB, free: 9.02 MB / 302.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.0008668/0.007554, allocations: 0.8588 MB / 364 MB, free: 8.055 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000119/0.007682, allocations: 86.31 kB / 364.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of Early Inline: time 0.000675/0.008364, allocations: 0.6649 MB / 364.8 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simplify1: time 4.413e-05/0.008417, allocations: 39.95 kB / 364.8 MB, free: 7.242 MB / 302.1 MB Notification: Performance of Alias: time 0.0005813/0.009005, allocations: 426.2 kB / 365.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of simplify2: time 4.292e-05/0.009058, allocations: 44.36 kB / 365.3 MB, free: 6.711 MB / 302.1 MB Notification: Performance of Events: time 0.0001088/0.009173, allocations: 62.5 kB / 365.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of Detect States: time 0.000138/0.009318, allocations: 128 kB / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002122/0.009537, allocations: 169.1 kB / 365.6 MB, free: 6.336 MB / 302.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(logFrequencySweep.y ^ (3 - i) * transferFunction.a[i] * c2.re, logFrequencySweep.y ^ (3 - i) * transferFunction.a[i] * c2.im) for i in 1:3} ($RES_SIM_5) Error: Internal error NBAdjacency.Matrix.create failed to create adjacency matrix for system: System Variables (29/45) ************************** (1) [ALGB] (1) Real complexToPolar.len (2) [ALGB] (1) Real dB = 20.0 * log10(complexToPolar.len) (3) [ALGB] (1) protected Real[1, 1] transferFunction.bw.re (4) [ALGB] (1) input Real transferFunction.u.im (5) [ALGB] (1) protected Real[1, 1] transferFunction.bw.im (6) [ALGB] (1) input Real transferFunction.u.re (7) [ALGB] (1) input Real complexToPolar.u.re (8) [ALGB] (1) input Real complexToPolar.u.im (9) [ALGB] (1) output Real transferFunction.y.im (10) [ALGB] (9) protected Real[3, 3] transferFunction.aw.re (11) [ALGB] (1) Real lg_w = log10(logFrequencySweep.y) (12) [ALGB] (1) output Real transferFunction.y.re (13) [ALGB] (9) protected Real[3, 3] transferFunction.aw.im (14) [ALGB] (1) protected Real transferFunction.aSum.re (15) [ALGB] (1) protected Real transferFunction.aSum.im (16) [ALGB] (1) Real $FUN_4 (17) [ALGB] (1) protected Real transferFunction.uInternal.im = transferFunction.u.im (18) [ALGB] (1) Real $FUN_3 (19) [ALGB] (1) protected Real transferFunction.uInternal.re = transferFunction.u.re (20) [ALGB] (1) Real $FUN_2 (21) [ALGB] (1) Real $FUN_1 (22) [ALGB] (1) protected Real transferFunction.bSum.re (23) [ALGB] (1) protected Real transferFunction.bSum.im (24) [ALGB] (1) Real logFrequencySweep.y (25) [ALGB] (1) Real phi = phi (26) [DISC] (1) Boolean $TEV_1 (27) [ALGB] (1) output Real const.y.im (28) [DISC] (1) Boolean $TEV_0 (29) [ALGB] (1) output Real const.y.re System Equations (26/33) ************************** (1) [SCAL] (1) $FUN_4 = sum(transferFunction.aw.im) ($RES_$AUX_20) (2) [SCAL] (1) $FUN_3 = sum(transferFunction.aw.re) ($RES_$AUX_21) (3) [SCAL] (1) $FUN_2 = sum(transferFunction.bw.im) ($RES_$AUX_22) (4) [SCAL] (1) $FUN_1 = sum(transferFunction.bw.re) ($RES_$AUX_23) (5) [SCAL] (1) lg_w = log10(logFrequencySweep.y) ($RES_$AUX_18) (6) [SCAL] (1) transferFunction.y.im = complexToPolar.u.im ($RES_SIM_9) (7) [SCAL] (1) 0.05 * dB = log10(complexToPolar.len) ($RES_$AUX_19) (8) [SCAL] (1) logFrequencySweep.y = if $TEV_0 then logFrequencySweep.wMin else if $TEV_1 then logFrequencySweep.wMin * (logFrequencySweep.wMax / logFrequencySweep.wMin) ^ min(1.0, (time - logFrequencySweep.startTime) / max(logFrequencySweep.duration, 2.220446049250313e-16)) else logFrequencySweep.wMax ($RES_SIM_8) (9) [RECD] (2) const.y = const.k ($RES_SIM_7) (10) [ARRY] (6) transferFunction.aw = {Complex.'constructor'.fromReal(logFrequencySweep.y ^ (3 - i) * transferFunction.a[i] * c2.re, logFrequencySweep.y ^ (3 - i) * transferFunction.a[i] * c2.im) for i in 1:3} ($RES_SIM_5) (11) [SCAL] (1) transferFunction.y.re = complexToPolar.u.re ($RES_SIM_10) (12) [SCAL] (1) const.y.im = transferFunction.u.im ($RES_SIM_12) (13) [SCAL] (1) const.y.re = transferFunction.u.re ($RES_SIM_13) (14) [SCAL] (1) complexToPolar.len = (complexToPolar.u.re ^ 2.0 + complexToPolar.u.im ^ 2.0) ^ 0.5 ($RES_SIM_1) (15) [SCAL] (1) phi = if complexToPolar.useConjugateInput then atan2(-complexToPolar.u.im, complexToPolar.u.re) else atan2(complexToPolar.u.im, complexToPolar.u.re) ($RES_SIM_0) (16) [RECD] (2) transferFunction.uInternal = transferFunction.u ($RES_BND_17) (17) [SCAL] (1) $TEV_0 = time < logFrequencySweep.startTime ($RES_EVT_33) (18) [ARRY] (1) transferFunction.bw.re = {transferFunction.b[1]} ($RES_SIM_24) (19) [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_30) (20) [SCAL] (1) $TEV_1 = time < (logFrequencySweep.startTime + max(logFrequencySweep.duration, 2.220446049250313e-16)) ($RES_EVT_34) (21) [ARRY] (1) transferFunction.bw.im = {0.0} ($RES_SIM_25) (22) [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_31) (23) [SCAL] (1) transferFunction.bSum.re = $FUN_1 ($RES_SIM_26) (24) [SCAL] (1) transferFunction.bSum.im = $FUN_2 ($RES_SIM_27) (25) [SCAL] (1) transferFunction.aSum.re = $FUN_3 ($RES_SIM_28) (26) [SCAL] (1) transferFunction.aSum.im = $FUN_4 ($RES_SIM_29)