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.001844/0.001844, allocations: 99.64 kB / 21.25 MB, free: 428 kB / 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.002204/0.002204, allocations: 207.2 kB / 24.55 MB, free: 3.727 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.595/1.595, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.934e-05/2.934e-05, allocations: 2.281 kB / 379.1 MB, free: 2.453 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004412/0.004442, allocations: 2.284 MB / 381.3 MB, free: 160 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.234/0.2385, allocations: 0.6895 MB / 382 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.2386, allocations: 7 kB / 382 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002037/0.2388, allocations: 32 kB / 382.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001238/0.2389, allocations: 55.42 kB / 382.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.2394, allocations: 107.8 kB / 382.2 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.2398, allocations: 303.2 kB / 382.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.24, allocations: 56.77 kB / 382.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003035/0.2403, allocations: 131.1 kB / 382.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.2405, allocations: 97.03 kB / 382.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.849e-05/0.2405, allocations: 21.78 kB / 382.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.857e-05/0.2406, allocations: 25.81 kB / 382.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0003449/0.241, allocations: 417.9 kB / 383.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.00012/0.2411, allocations: 241.2 kB / 383.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.884e-05/0.2412, allocations: 21.31 kB / 383.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.791e-05/0.2412, allocations: 8.281 kB / 383.5 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.001136/0.2423, allocations: 1.047 MB / 384.6 MB, free: 12 MB / 302.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0001366/0.2425, allocations: 122.8 kB / 384.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of [SIM] Early Inline: time 0.0007009/0.2432, allocations: 0.686 MB / 385.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of [SIM] Simplify 1: time 0.0002938/0.2435, allocations: 197 kB / 385.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of [SIM] Alias: time 0.001488/0.2449, allocations: 0.9223 MB / 386.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0001857/0.2451, allocations: 162.7 kB / 386.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of [SIM] Remove Stream: time 0.000108/0.2452, allocations: 104.1 kB / 386.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of [SIM] Detect States: time 0.0002754/0.2455, allocations: 208.6 kB / 386.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of [SIM] Events: time 0.0002236/0.2457, allocations: 125.8 kB / 387.1 MB, free: 10.7 MB / 302.1 MB Notification: Performance of [SIM] Partitioning: time 0.0003558/0.2461, allocations: 276.2 kB / 387.3 MB, free: 10.56 MB / 302.1 MB Notification: Performance of [SIM] Causalize: time 0.0006725/0.2468, allocations: 480.9 kB / 387.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.000499/0.2473, allocations: 496.5 kB / 388.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of [INI] Simplify: time 0.0005968/0.2479, allocations: 364.8 kB / 388.7 MB, free: 9.957 MB / 302.1 MB Notification: Performance of [INI] Inline: time 0.0009927/0.2489, allocations: 0.7707 MB / 389.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of [INI] Partitioning: time 3.702e-05/0.2489, allocations: 22.52 kB / 389.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of [INI] Cleanup: time 0.0001409/0.249, allocations: 123.8 kB / 389.6 MB, free: 9.457 MB / 302.1 MB Notification: Performance of [INI] Causalize: time 0.001104/0.2501, allocations: 0.6423 MB / 390.2 MB, free: 9.309 MB / 302.1 MB Notification: Performance of [INI] Tearing: time 2.213e-05/0.2502, allocations: 24.44 kB / 390.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of [SIM] Initialization: time 4.51e-07/0.2502, allocations: 0 / 390.2 MB, free: 9.289 MB / 302.1 MB Notification: Performance of [SIM] DAE-Mode: time 0.000145/0.2503, allocations: 97.73 kB / 390.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of [SIM] Remove Dummies: time 6.372e-06/0.2503, allocations: 5.344 kB / 390.3 MB, free: 9.227 MB / 302.1 MB Notification: Performance of [SIM] Tearing: time 1.133e-05/0.2503, allocations: 17.62 kB / 390.3 MB, free: 9.215 MB / 302.1 MB Notification: Performance of [SIM] Categorize: time 1.369e-05/0.2503, allocations: 5.344 kB / 390.4 MB, free: 9.211 MB / 302.1 MB Notification: Performance of [SIM] Solve: time 0.0005478/0.2509, allocations: 377.9 kB / 390.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of [SIM] Jacobian: time 0.0001733/0.2511, allocations: 210.2 kB / 390.9 MB, free: 8.887 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.0001235/0.2512, allocations: 39.11 kB / 391 MB, free: 8.859 MB / 302.1 MB Notification: Performance of SimCode: time 0.001333/0.2525, allocations: 0.807 MB / 391.8 MB, free: 8.441 MB / 302.1 MB Notification: Performance of Templates: time 0.0067/0.2592, allocations: 2.062 MB / 393.8 MB, free: 8.199 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/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_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 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_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_functions.o Modelica_4.1.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_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_records.o Modelica_4.1.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_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_01exo.o Modelica_4.1.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_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_02nls.o Modelica_4.1.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_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_03lsy.o Modelica_4.1.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_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_04set.o Modelica_4.1.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_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_05evt.o Modelica_4.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c Modelica_4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.o] Error 1 [Calling os._exit(0), Time elapsed: 3.453472252993379] Failed to read output from testmodel.py, exit status != 0: ['time', 'aD_Converter.z', 'pulse.T0', 'pulse.np'] 0.2672696840018034 0.27906435199999996 0.035481998 Calling exit ...