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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 104 kB / 21.25 MB, free: 0.5664 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001832/0.001832, allocations: 190.7 kB / 24.53 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.637/1.637, allocations: 225.7 MB / 253.4 MB, free: 12.77 MB / 206.1 MB " [Timeout remaining time 178] 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=5601,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=5601,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.466e-05/2.466e-05, allocations: 6.219 kB / 371.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004425/0.00445, allocations: 2.248 MB / 374 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.006009, allocations: 0.6349 MB / 374.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002043/0.006214, allocations: 3.938 kB / 374.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.006417, allocations: 35.7 kB / 374.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.006607, allocations: 51.5 kB / 374.7 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004536/0.007061, allocations: 99.75 kB / 374.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000505/0.007566, allocations: 283 kB / 375.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.007782, allocations: 64.33 kB / 375.1 MB, free: 5.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.008076, allocations: 115.7 kB / 375.2 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002174/0.008293, allocations: 107.5 kB / 375.4 MB, free: 5.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.008361, allocations: 20 kB / 375.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.162e-05/0.008413, allocations: 20 kB / 375.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004224/0.008835, allocations: 404.1 kB / 375.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001847/0.00902, allocations: 240.9 kB / 376 MB, free: 4.809 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.009098, allocations: 20 kB / 376 MB, free: 4.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.825e-05/0.009146, allocations: 4 kB / 376 MB, free: 4.785 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.00147/0.01062, allocations: 1.052 MB / 377.1 MB, free: 3.605 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0002588/0.01087, allocations: 116 kB / 377.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.0008384/0.01171, allocations: 0.5884 MB / 377.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0003902/0.0121, allocations: 200.5 kB / 378 MB, free: 2.625 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.001793/0.0139, allocations: 0.9046 MB / 378.9 MB, free: 1.59 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0002242/0.01412, allocations: 175 kB / 379.1 MB, free: 1.375 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0001344/0.01425, allocations: 104.3 kB / 379.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.00033/0.01458, allocations: 214.8 kB / 379.4 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of [SIM] Events: time 0.0002452/0.01483, allocations: 122.7 kB / 379.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0003974/0.01523, allocations: 264.1 kB / 379.8 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.000699/0.01593, allocations: 0.4962 MB / 380.3 MB, free: 88 kB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.2301/0.246, allocations: 495.1 kB / 380.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.0007697/0.2468, allocations: 361.1 kB / 381.1 MB, free: 16.72 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.0008035/0.2476, allocations: 0.66 MB / 381.8 MB, free: 16.71 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 3.527e-05/0.2476, allocations: 20.59 kB / 381.8 MB, free: 16.69 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 0.0001411/0.2478, allocations: 127.5 kB / 381.9 MB, free: 16.69 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.001156/0.2489, allocations: 0.6606 MB / 382.6 MB, free: 16.65 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 2.57e-05/0.2489, allocations: 18.06 kB / 382.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 6.81e-07/0.2489, allocations: 0.7812 kB / 382.6 MB, free: 16.64 MB / 302.1 MB Notification: Performance of [SIM] DAE-Mode: time 0.0001777/0.2491, allocations: 91.67 kB / 382.7 MB, free: 16.61 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 5.41e-06/0.2491, allocations: 1.625 kB / 382.7 MB, free: 16.61 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 1.19e-05/0.2491, allocations: 24.22 kB / 382.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 1.458e-05/0.2492, allocations: 1.344 kB / 382.7 MB, free: 16.6 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.0005943/0.2498, allocations: 365.9 kB / 383 MB, free: 16.59 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 0.0001744/0.2499, allocations: 218.8 kB / 383.3 MB, free: 16.4 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.0001394/0.2501, allocations: 40.3 kB / 383.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of SimCode: time 0.001308/0.2514, allocations: 0.8041 MB / 384.1 MB, free: 16.08 MB / 302.1 MB Notification: Performance of Templates: time 0.006482/0.2579, allocations: 2.061 MB / 386.2 MB, free: 15.91 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] make -j1 -f Modelica_4.0.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/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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_functions.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_records.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_01exo.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_02nls.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_03lsy.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_04set.o Modelica_4.0.0_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_4_0_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.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.o Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c Modelica_4.0.0_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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.o] Error 1 [Calling os._exit(0), Time elapsed: 3.5210176320397295] Failed to read output from testmodel.py, exit status != 0: ['time', 'aD_Converter.z', 'pulse.T0', 'pulse.np'] 0.2661964549915865 0.278867593 0.267066022 Calling exit ...