Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.ComplexBlocks.Examples.ShowTransferFunction") translateModel(Modelica.ComplexBlocks.Examples.ShowTransferFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.001381/0.001381, allocations: 106.9 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.001478/0.001477, 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.348/1.348, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.548e-05, allocations: 6.219 kB / 327.2 MB, free: 3.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.ComplexBlocks.Examples.ShowTransferFunction): time 0.002908/0.002943, allocations: 1.596 MB / 328.7 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.004409, allocations: 0.6869 MB / 329.4 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.122e-05/0.004513, allocations: 4 kB / 329.4 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002863/0.004806, allocations: 43.78 kB / 329.5 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.005087, allocations: 35.73 kB / 329.5 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001275/0.006371, allocations: 0.5992 MB / 330.1 MB, free: 380 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003141/0.006696, allocations: 143.6 kB / 330.3 MB, free: 236 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.006847, allocations: 27.97 kB / 330.3 MB, free: 208 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001957/0.00705, allocations: 59.78 kB / 330.3 MB, free: 148 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001773/0.007238, allocations: 75.61 kB / 330.4 MB, free: 72 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.007274, allocations: 8 kB / 330.4 MB, free: 64 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002682/0.007547, allocations: 139.8 kB / 330.6 MB, free: 15.93 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0001614/0.00772, allocations: 205.3 kB / 330.8 MB, free: 15.72 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 8.788e-05/0.007815, allocations: 141.8 kB / 330.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.919e-05/0.00786, allocations: 11.94 kB / 330.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.689e-05/0.007892, allocations: 3.938 kB / 330.9 MB, free: 15.57 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.0009497/0.008847, allocations: 0.8281 MB / 331.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001895/0.009044, allocations: 103.1 kB / 331.8 MB, free: 14.53 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009584/0.01001, allocations: 0.8153 MB / 332.7 MB, free: 13.69 MB / 286.1 MB Notification: Performance of simplify1: time 8.316e-05/0.01011, allocations: 51.92 kB / 332.7 MB, free: 13.64 MB / 286.1 MB Notification: Performance of Alias: time 0.0007256/0.01084, allocations: 434.7 kB / 333.1 MB, free: 13.14 MB / 286.1 MB Notification: Performance of simplify2: time 8.084e-05/0.01093, allocations: 47.94 kB / 333.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of Events: time 0.0001456/0.01108, allocations: 70.11 kB / 333.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of Detect States: time 0.0001961/0.01129, allocations: 141.2 kB / 333.4 MB, free: 12.88 MB / 286.1 MB Notification: Performance of Partitioning: time 0.00031/0.01161, allocations: 189.7 kB / 333.6 MB, free: 12.68 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)