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.001154/0.001154, allocations: 105.2 kB / 17.75 MB, free: 5.309 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.001319/0.001319, allocations: 196.5 kB / 18.69 MB, free: 4.375 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.26/1.26, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.282e-05/2.283e-05, allocations: 2.281 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003957/0.003989, allocations: 2.353 MB / 354.3 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.005486, allocations: 0.6738 MB / 355 MB, free: 244 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001879/0.005685, allocations: 7.938 kB / 355 MB, free: 236 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.005879, allocations: 31.72 kB / 355 MB, free: 204 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001613/0.006048, allocations: 55.48 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.006484, allocations: 91.75 kB / 355.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004522/0.006946, allocations: 295.1 kB / 355.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.007154, allocations: 84.02 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002632/0.007426, allocations: 111.7 kB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001872/0.007625, allocations: 111.5 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.189e-05/0.007694, allocations: 24 kB / 355.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.612e-05/0.007747, allocations: 20 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002875/0.008039, allocations: 340.2 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001272/0.008174, allocations: 193.1 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.979e-05/0.00826, allocations: 39.88 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.649e-05/0.008324, allocations: 11.98 kB / 356.3 MB, free: 14.84 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 Bindings: time 0.001214/0.009543, allocations: 1.023 MB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001176/0.009668, allocations: 47.84 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006464/0.01032, allocations: 0.557 MB / 358 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simplify1: time 6.101e-05/0.01039, allocations: 39.95 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Alias: time 0.001164/0.01156, allocations: 0.874 MB / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simplify2: time 3.512e-05/0.01161, allocations: 15.98 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002694/0.01189, allocations: 176.1 kB / 359.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of Events: time 0.0002251/0.01212, allocations: 126.1 kB / 359.2 MB, free: 11.73 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002155/0.01235, allocations: 176.2 kB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Causalize: time 0.0007816/0.01313, allocations: 0.631 MB / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004942/0.01364, allocations: 0.4884 MB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of Inline: time 0.0008241/0.01447, allocations: 0.7411 MB / 361.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of Partitioning: time 4.598e-05/0.01453, allocations: 34.36 kB / 361.3 MB, free: 9.566 MB / 302.1 MB Notification: Performance of Cleanup: time 7.433e-05/0.01461, allocations: 47.95 kB / 361.3 MB, free: 9.52 MB / 302.1 MB Notification: Performance of Causalize: time 0.001142/0.01576, allocations: 0.9051 MB / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Tearing: time 1.098e-05/0.01578, allocations: 0 / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Initialization: time 6.91e-07/0.01579, allocations: 0 / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Tearing: time 4.779e-06/0.01579, allocations: 0 / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Categorize: time 1.069e-05/0.01581, allocations: 0 / 362.2 MB, free: 8.609 MB / 302.1 MB Notification: Performance of Solve: time 0.0002808/0.0161, allocations: 165.7 kB / 362.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of Jacobian: time 3.887e-06/0.01611, allocations: 0 / 362.4 MB, free: 8.438 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.T0, pulse.np} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 25 (13) {aD_Converter.y, aD_Converter.trig, aD_Converter.z, pulse.sampling, dA_Converter.x, dA_Converter.vout, dA_Converter.y, $SEV_10, $SEV_9, $SEV_8, $TEV_2, $TEV_1, $TEV_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:19, array:1, record:0) * Number of multi strong components: ............ 5 (algorithm:2, when:2, if:1, tuple:0) * Number of for-loop strong components: ......... 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:33, array:1, record:0) * Number of multi strong components: ............ 2 (algorithm:1, when:0, if:1, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 5.978e-05/0.01618, allocations: 32.14 kB / 362.4 MB, free: 8.414 MB / 302.1 MB Notification: Performance of SimCode: time 0.001214/0.0174, allocations: 1.366 MB / 363.8 MB, free: 7.023 MB / 302.1 MB Notification: Performance of Templates: time 0.005113/0.02252, allocations: 2.1 MB / 365.9 MB, free: 4.93 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile 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/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_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/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_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/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_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/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_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/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_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/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_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/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_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/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_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:161:88: error: use of undeclared identifier 'i' gout[3] = ((((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 4) || ((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 8))) ? 1 : -1; ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:161:177: error: use of undeclared identifier 'i' gout[3] = ((((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 4) || ((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 8))) ? 1 : -1; ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:163:87: error: use of undeclared identifier 'i' gout[4] = (((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 4)) ? 1 : -1; ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:165:87: error: use of undeclared identifier 'i' gout[5] = (((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 8)) ? 1 : -1; ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:228:115: error: use of undeclared identifier 'i' data->simulationInfo->relations[4] = ((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 4); ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:230:115: error: use of undeclared identifier 'i' data->simulationInfo->relations[5] = ((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 8); ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:252:115: error: use of undeclared identifier 'i' data->simulationInfo->relations[4] = ((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 4); ^ Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.c:254:115: error: use of undeclared identifier 'i' data->simulationInfo->relations[5] = ((&data->localData[0]->integerVars[10] /* dA_Converter.x[1] DISCRETE */)[i - 1] == 8); ^ 8 errors generated. make: *** [: Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_05evt.o] Error 1