Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 105.6 kB / 17.69 MB, free: 5.523 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.001149/0.001149, allocations: 192.7 kB / 18.63 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.315e-05/2.317e-05, allocations: 10.16 kB / 302 MB, free: 5.234 MB / 238.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003166/0.003202, allocations: 2.365 MB / 304.4 MB, free: 2.871 MB / 238.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.004227, allocations: 0.6663 MB / 305 MB, free: 2.203 MB / 238.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.341e-05/0.004321, allocations: 3.938 kB / 305 MB, free: 2.199 MB / 238.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.004444, allocations: 31.66 kB / 305.1 MB, free: 2.168 MB / 238.1 MB Notification: Performance of NFTyping.typeBindings: time 8.448e-05/0.004535, allocations: 60.98 kB / 305.1 MB, free: 2.109 MB / 238.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.004807, allocations: 87.77 kB / 305.2 MB, free: 2.023 MB / 238.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003028/0.00512, allocations: 299 kB / 305.5 MB, free: 1.73 MB / 238.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001494/0.005277, allocations: 77.28 kB / 305.6 MB, free: 1.656 MB / 238.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.00544, allocations: 107.6 kB / 305.7 MB, free: 1.551 MB / 238.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001326/0.005581, allocations: 111.5 kB / 305.8 MB, free: 1.441 MB / 238.1 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.005624, allocations: 20 kB / 305.8 MB, free: 1.422 MB / 238.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.281e-05/0.005662, allocations: 20 kB / 305.8 MB, free: 1.402 MB / 238.1 MB Notification: Performance of combineBinaries: time 0.0002684/0.005935, allocations: 336.4 kB / 306.2 MB, free: 1.07 MB / 238.1 MB Notification: Performance of replaceArrayConstructors: time 9.146e-05/0.006032, allocations: 193.1 kB / 306.4 MB, free: 0.8789 MB / 238.1 MB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.006096, allocations: 43.88 kB / 306.4 MB, free: 0.8359 MB / 238.1 MB Notification: Performance of FrontEnd: time 1.982e-05/0.006121, allocations: 4 kB / 306.4 MB, free: 0.832 MB / 238.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 (36) * Number of variables: 50 (38) Notification: Performance of Bindings: time 0.0009647/0.007092, allocations: 1.038 MB / 307.4 MB, free: 15.68 MB / 254.1 MB Notification: Performance of FunctionAlias: time 9.645e-05/0.007197, allocations: 69.14 kB / 307.5 MB, free: 15.62 MB / 254.1 MB Notification: Performance of Early Inline: time 0.0005042/0.00771, allocations: 0.5764 MB / 308.1 MB, free: 15.02 MB / 254.1 MB Notification: Performance of simplify1: time 4.016e-05/0.007758, allocations: 35.95 kB / 308.1 MB, free: 14.98 MB / 254.1 MB Notification: Performance of Alias: time 0.0008351/0.008602, allocations: 0.7998 MB / 308.9 MB, free: 14.07 MB / 254.1 MB Notification: Performance of simplify2: time 2.505e-05/0.008637, allocations: 23.97 kB / 308.9 MB, free: 14.05 MB / 254.1 MB Notification: Performance of Events: time 0.0001797/0.008822, allocations: 130 kB / 309.1 MB, free: 13.93 MB / 254.1 MB Notification: Performance of Detect States: time 0.0002262/0.009056, allocations: 196 kB / 309.3 MB, free: 13.72 MB / 254.1 MB Notification: Performance of Partitioning: time 0.0001901/0.009254, allocations: 176.2 kB / 309.4 MB, free: 13.53 MB / 254.1 MB Notification: Performance of Causalize: time 0.001017/0.01028, allocations: 0.9895 MB / 310.4 MB, free: 12.53 MB / 254.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004434/0.01073, allocations: 0.4924 MB / 310.9 MB, free: 12.01 MB / 254.1 MB Notification: Performance of Inline: time 0.0007035/0.01144, allocations: 0.7522 MB / 311.7 MB, free: 11.23 MB / 254.1 MB Notification: Performance of Partitioning: time 4.885e-05/0.0115, allocations: 42.36 kB / 311.7 MB, free: 11.18 MB / 254.1 MB Notification: Performance of Cleanup: time 5.361e-05/0.01156, allocations: 39.91 kB / 311.7 MB, free: 11.14 MB / 254.1 MB Notification: Performance of Causalize: time 0.001108/0.01267, allocations: 1.205 MB / 313 MB, free: 9.938 MB / 254.1 MB Notification: Performance of Tearing: time 6.512e-06/0.01269, allocations: 0 / 313 MB, free: 9.938 MB / 254.1 MB Notification: Performance of Initialization: time 3e-07/0.01269, allocations: 0 / 313 MB, free: 9.938 MB / 254.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [ALGO] (8) ($RES_SIM_2) [----] when aD_Converter.trig == Modelica.Electrical.Digital.Interfaces.Logic.'1' or aD_Converter.trig == Modelica.Electrical.Digital.Interfaces.Logic.'H' then [----] aD_Converter.z := if aD_Converter.u > aD_Converter.VRefLow then integer(((aD_Converter.u - aD_Converter.VRefLow) / (aD_Converter.VRefHigh - aD_Converter.VRefLow)) * 127.0 + 0.5) else 0; [----] for i in 1:7 loop [----] aD_Converter.y[i] := if $FUN_2 > 0 then Modelica.Electrical.Digital.Interfaces.Logic.'1' else Modelica.Electrical.Digital.Interfaces.Logic.'0'; [----] aD_Converter.z := $FUN_3; [----] end for; [----] end when;