Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00151/0.00151, allocations: 109.5 kB / 21.99 MB, free: 4.555 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.001731/0.001731, allocations: 213.5 kB / 25.3 MB, free: 2.906 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.723/1.723, allocations: 207.7 MB / 236.2 MB, free: 9.766 MB / 190.1 MB " [Timeout remaining time 178] 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.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.408e-05/2.408e-05, allocations: 2.281 kB / 348.5 MB, free: 9.387 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004067/0.004091, allocations: 2.231 MB / 350.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.005558, allocations: 0.6747 MB / 351.4 MB, free: 6.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.005664, allocations: 4 kB / 351.4 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.00584, allocations: 35.66 kB / 351.5 MB, free: 6.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001182/0.005958, allocations: 59.48 kB / 351.5 MB, free: 6.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.006315, allocations: 91.75 kB / 351.6 MB, free: 6.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004335/0.006749, allocations: 291 kB / 351.9 MB, free: 5.977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.006936, allocations: 52.48 kB / 351.9 MB, free: 5.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002393/0.007175, allocations: 111.6 kB / 352 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001835/0.007359, allocations: 91.61 kB / 352.1 MB, free: 5.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.238e-05/0.007411, allocations: 20 kB / 352.2 MB, free: 5.711 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.2e-05/0.007463, allocations: 24 kB / 352.2 MB, free: 5.688 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0003964/0.00786, allocations: 408.1 kB / 352.6 MB, free: 5.285 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001783/0.008038, allocations: 248.7 kB / 352.8 MB, free: 5.039 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.755e-05/0.008096, allocations: 20 kB / 352.8 MB, free: 5.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.908e-05/0.008135, allocations: 8 kB / 352.8 MB, free: 5.012 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: 50 (36) * Number of variables: 50 (38) Notification: Performance of [SIM] Bindings: time 0.001369/0.009504, allocations: 1.044 MB / 353.9 MB, free: 3.84 MB / 286.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0001978/0.009701, allocations: 118.5 kB / 354 MB, free: 3.715 MB / 286.1 MB Notification: Performance of [SIM] Early Inline: time 0.0007206/0.01042, allocations: 0.5961 MB / 354.6 MB, free: 3.09 MB / 286.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0003546/0.01078, allocations: 192.5 kB / 354.8 MB, free: 2.855 MB / 286.1 MB Notification: Performance of [SIM] Alias: time 0.00148/0.01226, allocations: 0.9123 MB / 355.7 MB, free: 1.812 MB / 286.1 MB Notification: Performance of [SIM] Simplify 2: time 0.000225/0.01248, allocations: 167.2 kB / 355.9 MB, free: 1.602 MB / 286.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0001434/0.01262, allocations: 112.3 kB / 356 MB, free: 1.465 MB / 286.1 MB Notification: Performance of [SIM] Detect States: time 0.0003179/0.01294, allocations: 213.2 kB / 356.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of [SIM] Events: time 0.0002411/0.01318, allocations: 111 kB / 356.3 MB, free: 1.098 MB / 286.1 MB Notification: Performance of [SIM] Partitioning: time 0.0003597/0.01354, allocations: 268.1 kB / 356.6 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of [SIM] Causalize: time 0.0006982/0.01424, allocations: 0.4949 MB / 357.1 MB, free: 324 kB / 286.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0005246/0.01477, allocations: 0.4918 MB / 357.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.000587/0.01535, allocations: 367.6 kB / 357.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.0007007/0.01605, allocations: 0.6609 MB / 358.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 3.665e-05/0.01609, allocations: 26.67 kB / 358.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 0.000138/0.01623, allocations: 123.9 kB / 358.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.0009501/0.01718, allocations: 0.6554 MB / 359.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 2.946e-05/0.01721, allocations: 24 kB / 359.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 3.71e-07/0.01721, allocations: 0 / 359.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of [SIM] DAE-Mode: time 0.0001569/0.01737, allocations: 101 kB / 359.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 4.769e-06/0.01737, allocations: 0 / 359.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 1.651e-05/0.01739, allocations: 20 kB / 359.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 1.288e-05/0.0174, allocations: 4 kB / 359.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.0005449/0.01794, allocations: 364.6 kB / 359.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 0.0002305/0.01818, allocations: 213.9 kB / 360.1 MB, free: 13.15 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: ........... 20 (scalar:20, 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: ........... 34 (scalar:34, 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.0001285/0.0183, allocations: 44.38 kB / 360.1 MB, free: 13.11 MB / 302.1 MB Notification: Performance of SimCode: time 0.001103/0.01941, allocations: 0.7982 MB / 360.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Templates: time 0.005779/0.02519, allocations: 2.043 MB / 363 MB, free: 10.25 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] make -j1 -f Modelica_3.2.3_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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_functions.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_functions.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_records.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_records.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_01exo.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_01exo.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_02nls.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_02nls.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_03lsy.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_03lsy.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_04set.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_04set.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.o Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:122:137: error: use of undeclared identifier 'i' gout[start_index] = ((((&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))) ? 1 : -1; ^ Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:122:265: error: use of undeclared identifier 'i' gout[start_index] = ((((&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))) ? 1 : -1; ^ 2 errors generated. make: *** [: Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.o] Error 1 [Calling os._exit(0), Time elapsed: 3.363007070031017] Failed to read output from testmodel.py, exit status != 0: ['time', 'aD_Converter.z', 'pulse.T0', 'pulse.np'] 0.033886477001942694 0.048448042000000004 0.037224104 Calling exit ...