Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 107.6 kB / 21.2 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 209.3 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 258.2 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5601,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5601,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.818e-05/2.818e-05, allocations: 2.281 kB / 378.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004151/0.004179, allocations: 2.273 MB / 381.2 MB, free: 216 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.173/0.1772, allocations: 0.6956 MB / 381.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001568/0.1774, allocations: 5.406 kB / 381.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001634/0.1775, allocations: 34.2 kB / 381.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001108/0.1776, allocations: 57.48 kB / 382 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004081/0.178, allocations: 105.4 kB / 382.1 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003577/0.1784, allocations: 302 kB / 382.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.1786, allocations: 61.5 kB / 382.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.1788, allocations: 129.1 kB / 382.6 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.179, allocations: 114.5 kB / 382.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.179, allocations: 19.88 kB / 382.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.938e-05/0.1791, allocations: 27.5 kB / 382.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002899/0.1794, allocations: 413.4 kB / 383.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001018/0.1795, allocations: 242 kB / 383.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.941e-05/0.1795, allocations: 20.12 kB / 383.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.951e-05/0.1796, allocations: 9.625 kB / 383.4 MB, free: 12.57 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: 50 (36) * Number of variables: 50 (38) Notification: Performance of [SIM] Bindings: time 0.0009198/0.1805, allocations: 1.049 MB / 384.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.00011/0.1806, allocations: 121.7 kB / 384.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.0006363/0.1812, allocations: 0.6877 MB / 385.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.000249/0.1815, allocations: 209.6 kB / 385.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.001271/0.1827, allocations: 0.8928 MB / 386.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0001733/0.1829, allocations: 171.6 kB / 386.5 MB, free: 10.97 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0001045/0.183, allocations: 118.3 kB / 386.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.0002338/0.1833, allocations: 207.5 kB / 386.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of [SIM] Events: time 0.0001979/0.1834, allocations: 121.4 kB / 387 MB, free: 10.65 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0003074/0.1838, allocations: 268.6 kB / 387.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.0005882/0.1843, allocations: 487.1 kB / 387.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0004177/0.1848, allocations: 0.4901 MB / 388.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.0004804/0.1852, allocations: 368.1 kB / 388.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.0007614/0.186, allocations: 0.771 MB / 389.3 MB, free: 9.496 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 2.878e-05/0.186, allocations: 27.77 kB / 389.4 MB, free: 9.469 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 0.00012/0.1862, allocations: 124.4 kB / 389.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.0009517/0.1871, allocations: 0.6501 MB / 390.1 MB, free: 9.246 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 2.107e-05/0.1871, allocations: 21.5 kB / 390.2 MB, free: 9.23 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 4.01e-07/0.1871, allocations: 4 kB / 390.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 7.033e-06/0.1871, allocations: 1.25 kB / 390.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 7.564e-06/0.1871, allocations: 11.28 kB / 390.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 1.038e-05/0.1872, allocations: 2.094 kB / 390.2 MB, free: 9.219 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.0003797/0.1875, allocations: 246.6 kB / 390.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 7.654e-06/0.1875, allocations: 4 kB / 390.4 MB, free: 9.129 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 2 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 2 (2) {pulse.np, pulse.T0} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 23 (17) {aD_Converter.y, aD_Converter.trig, aD_Converter.z, pulse.sampling, dA_Converter.vout, dA_Converter.y, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_2, $TEV_1, $TEV_0} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 19 (scalar:19, array:0, record:0) * Number of multi strong components: ............ 4 (algorithm:2, when:2, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 33 (scalar:33, array:0, record:0) * Number of multi strong components: ............ 3 (algorithm:3, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 0.0001086/0.1876, allocations: 34.12 kB / 390.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of SimCode: time 0.001117/0.1888, allocations: 0.7528 MB / 391.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of Templates: time 0.006278/0.195, allocations: 2.463 MB / 393.7 MB, free: 8.457 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_1_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.o Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c:211:217: error: use of undeclared identifier 'i' (data->localData[0]->booleanVars[data->simulationInfo->booleanVarsIndex[2]] /* $SEV_6 DISCRETE */) = (((&data->localData[0]->integerVars[data->simulationInfo->integerVarsIndex[2]] /* aD_Converter.y[1] DISCRETE */)[i - 1] == 4) || ((&data->localData[0]->integerVars[data->simulationInfo->integerVarsIndex[2]] /* aD_Converter.y[1] DISCRETE */)[i - 1] == 8)); ^ Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c:211:345: error: use of undeclared identifier 'i' (data->localData[0]->booleanVars[data->simulationInfo->booleanVarsIndex[2]] /* $SEV_6 DISCRETE */) = (((&data->localData[0]->integerVars[data->simulationInfo->integerVarsIndex[2]] /* aD_Converter.y[1] DISCRETE */)[i - 1] == 4) || ((&data->localData[0]->integerVars[data->simulationInfo->integerVarsIndex[2]] /* aD_Converter.y[1] DISCRETE */)[i - 1] == 8)); ^ 2 errors generated. make: *** [: Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.o] Error 1 [Calling os._exit(0), Time elapsed: 2.4511215621605515] Failed to read output from testmodel.py, exit status != 0: ['time', 'aD_Converter.z', 'pulse.T0', 'pulse.np'] 0.20248530199751258 0.21344703999999995 0.03163201 Calling exit ...