Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 108.5 kB / 19.05 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001715/0.001715, allocations: 210.5 kB / 20.03 MB, free: 2.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.205/1.205, allocations: 230.4 MB / 251.3 MB, free: 8.688 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.658e-06/9.658e-06, allocations: 2.281 kB / 368.8 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002993/0.003003, allocations: 2.402 MB / 371.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.004102, allocations: 0.7439 MB / 372 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.479e-05/0.004177, allocations: 8 kB / 372 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.004297, allocations: 35.66 kB / 372 MB, free: 3.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.654e-05/0.004394, allocations: 59.48 kB / 372.1 MB, free: 3.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.00467, allocations: 95.75 kB / 372.2 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.004984, allocations: 303 kB / 372.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001281/0.005113, allocations: 56.25 kB / 372.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002063/0.005319, allocations: 127.6 kB / 372.7 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.005467, allocations: 111.5 kB / 372.8 MB, free: 2.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.005501, allocations: 24 kB / 372.8 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.546e-05/0.005556, allocations: 28 kB / 372.8 MB, free: 2.551 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0002509/0.005807, allocations: 332.3 kB / 373.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001221/0.005929, allocations: 208.9 kB / 373.3 MB, free: 2.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.35e-05/0.005973, allocations: 35.88 kB / 373.4 MB, free: 1.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.413e-05/0.005997, allocations: 7.938 kB / 373.4 MB, free: 1.973 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.0008663/0.006863, allocations: 0.8646 MB / 374.2 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of FunctionAlias: time 7.592e-05/0.006939, allocations: 74.73 kB / 374.3 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of Early Inline: time 0.000487/0.007426, allocations: 0.5062 MB / 374.8 MB, free: 392 kB / 302.1 MB Notification: Performance of Simplify 1: time 0.0001525/0.007579, allocations: 130.6 kB / 375 MB, free: 232 kB / 302.1 MB Notification: Performance of Alias: time 0.1137/0.1213, allocations: 0.7761 MB / 375.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of Simplify 2: time 0.0001196/0.1214, allocations: 106.6 kB / 375.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of Remove Stream: time 7.943e-05/0.1215, allocations: 110.4 kB / 375.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002215/0.1217, allocations: 182.6 kB / 376.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Events: time 0.0001916/0.1219, allocations: 131.8 kB / 376.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001938/0.1221, allocations: 213.5 kB / 376.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of Causalize: time 0.0005369/0.1226, allocations: 0.5242 MB / 377 MB, free: 11.69 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0002717/0.1229, allocations: 333.6 kB / 377.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of Simplify: time 0.0002937/0.1232, allocations: 310.8 kB / 377.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Inline: time 0.0004325/0.1236, allocations: 0.5586 MB / 378.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of Partitioning: time 2.051e-05/0.1237, allocations: 19.8 kB / 378.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Cleanup: time 9.573e-05/0.1238, allocations: 127 kB / 378.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Causalize: time 0.000789/0.1245, allocations: 0.729 MB / 379 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Tearing: time 8.767e-06/0.1245, allocations: 0 / 379 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Initialization: time 3.01e-07/0.1245, allocations: 0 / 379 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Tearing: time 2.836e-06/0.1246, allocations: 1.469 kB / 379 MB, free: 11.15 MB / 302.1 MB Notification: Performance of Categorize: time 8.556e-06/0.1246, allocations: 5.406 kB / 379 MB, free: 11.14 MB / 302.1 MB Notification: Performance of Solve: time 0.0001902/0.1248, allocations: 136.3 kB / 379.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of Jacobian: time 2.234e-06/0.1248, allocations: 0 / 379.2 MB, free: 11.08 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: ........... 18 (scalar:18, array:0, record:0) * Number of multi strong components: ............ 5 (algorithm:2, when:2, if:1, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0generic: 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: ........... 32 (scalar:32, array:0, record:0) * Number of multi strong components: ............ 4 (algorithm:3, when:0, if:1, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 6.428e-05/0.1248, allocations: 39.19 kB / 379.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of SimCode: time 0.0008138/0.1256, allocations: 1.375 MB / 380.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of Templates: time 0.004558/0.1302, allocations: 2.248 MB / 382.8 MB, free: 9.891 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile make -j1 -f Modelica_4.1.0-beta.om_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_beta_om_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-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.o Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c:227: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-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.c:227: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-beta.om_Modelica.Electrical.Analog.Examples.AD_DA_conversion.o] Error 1