Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 108 kB / 18.46 MB, free: 4.59 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.001359/0.001359, allocations: 194.5 kB / 19.4 MB, free: 3.664 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.375/1.375, allocations: 222.9 MB / 243.1 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2377/0.2377, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.705e-05/2.706e-05, allocations: 2.281 kB / 471.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001678/0.001715, allocations: 0.4935 MB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.005463, allocations: 2.307 MB / 474 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.005502, allocations: 0 / 474 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.173e-05/0.005522, allocations: 0 / 474 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.503e-06/0.005554, allocations: 0 / 474 MB, free: 10.42 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.007633, allocations: 0.5645 MB / 474.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.257e-05/0.007714, allocations: 0 / 474.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.264e-05/0.007784, allocations: 8 kB / 474.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.979e-05/0.007809, allocations: 0 / 474.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.175e-05/0.007837, allocations: 3.938 kB / 474.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.274e-06/0.00785, allocations: 0 / 474.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001251/0.009105, allocations: 0.6864 MB / 475.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of combineBinaries: time 3.126e-05/0.009151, allocations: 3.938 kB / 475.2 MB, free: 9.156 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 3.357e-06/0.009162, allocations: 11.84 kB / 475.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.508e-05/0.009182, allocations: 0 / 475.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.526e-06/0.009198, allocations: 4 kB / 475.2 MB, free: 9.141 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 (1) * Number of variables: 1 (1) Notification: Performance of Bindings: time 0.0003092/0.009512, allocations: 161.4 kB / 475.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.609e-05/0.009536, allocations: 3.938 kB / 475.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of Early Inline: time 0.000104/0.009646, allocations: 56.31 kB / 475.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of simplify1: time 1.683e-06/0.009655, allocations: 0 / 475.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of Alias: time 5.244e-05/0.009713, allocations: 56.61 kB / 475.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of simplify2: time 6.61e-07/0.009719, allocations: 0 / 475.5 MB, free: 8.703 MB / 350.1 MB Notification: Performance of Events: time 1.568e-05/0.009739, allocations: 4 kB / 475.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of Detect States: time 5.893e-05/0.009804, allocations: 32.2 kB / 475.5 MB, free: 8.652 MB / 350.1 MB Notification: Performance of Partitioning: time 5.579e-05/0.009866, allocations: 16.12 kB / 475.6 MB, free: 8.629 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001275/0.01, allocations: 24.11 kB / 475.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.529e-05/0.01005, allocations: 44.36 kB / 475.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of Inline: time 9.267e-05/0.01015, allocations: 72.61 kB / 475.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of Partitioning: time 2.113e-05/0.01018, allocations: 16.12 kB / 475.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Cleanup: time 8.376e-06/0.0102, allocations: 0 / 475.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Causalize: time 6.067e-05/0.01026, allocations: 28.05 kB / 475.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of Tearing: time 6.352e-06/0.01028, allocations: 0 / 475.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of Initialization: time 3.31e-07/0.01028, allocations: 4 kB / 475.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of Tearing: time 2.435e-06/0.01029, allocations: 3.938 kB / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of Categorize: time 8.586e-06/0.0103, allocations: 0 / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of Solve: time 1.491e-05/0.01032, allocations: 0 / 475.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of Jacobian: time 4.177e-06/0.01033, allocations: 4.188 kB / 475.8 MB, free: 8.352 MB / 350.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: ......... 1 * 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: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 1 (1) {result} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, 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: ........... 0 (scalar:0, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, 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 4.067e-05/0.01038, allocations: 22.27 kB / 475.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of SimCode: time 0.001944/0.01232, allocations: 1.287 MB / 477.1 MB, free: 7.031 MB / 350.1 MB Notification: Performance of Templates: time 0.007129/0.01947, allocations: 3.313 MB / 480.4 MB, free: 3.715 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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=ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions -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 ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.o ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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=ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions -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 ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.o ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:752:24: error: use of undeclared identifier '_OMC_LIT0' real_array_copy_data(_OMC_LIT0, _P); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:755:24: error: use of undeclared identifier '_OMC_LIT1' real_array_copy_data(_OMC_LIT1, _Q); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:922:24: error: use of undeclared identifier '_OMC_LIT2' real_array_copy_data(_OMC_LIT2, _P1); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:925:24: error: use of undeclared identifier '_OMC_LIT3' real_array_copy_data(_OMC_LIT3, _Q1); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:929:24: error: use of undeclared identifier '_OMC_LIT4' real_array_copy_data(_OMC_LIT4, _P2); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:932:24: error: use of undeclared identifier '_OMC_LIT5' real_array_copy_data(_OMC_LIT5, _Q2); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:936:24: error: use of undeclared identifier '_OMC_LIT6' real_array_copy_data(_OMC_LIT6, _P3); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:939:24: error: use of undeclared identifier '_OMC_LIT7' real_array_copy_data(_OMC_LIT7, _Q3); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:943:24: error: use of undeclared identifier '_OMC_LIT8' real_array_copy_data(_OMC_LIT8, _P4); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:946:24: error: use of undeclared identifier '_OMC_LIT9' real_array_copy_data(_OMC_LIT9, _Q4); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:950:24: error: use of undeclared identifier '_OMC_LIT10' real_array_copy_data(_OMC_LIT10, _P5); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:953:24: error: use of undeclared identifier '_OMC_LIT11' real_array_copy_data(_OMC_LIT11, _Q5); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:957:24: error: use of undeclared identifier '_OMC_LIT12' real_array_copy_data(_OMC_LIT12, _P6); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:960:24: error: use of undeclared identifier '_OMC_LIT13' real_array_copy_data(_OMC_LIT13, _Q6); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:964:24: error: use of undeclared identifier '_OMC_LIT14' real_array_copy_data(_OMC_LIT14, _P7); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:967:24: error: use of undeclared identifier '_OMC_LIT15' real_array_copy_data(_OMC_LIT15, _Q7); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:1125:24: error: use of undeclared identifier '_OMC_LIT16' real_array_copy_data(_OMC_LIT16, _P1); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:1128:24: error: use of undeclared identifier '_OMC_LIT17' real_array_copy_data(_OMC_LIT17, _Q1); ^ ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.c:1132:24: error: use of undeclared identifier '_OMC_LIT18' real_array_copy_data(_OMC_LIT18, _P2); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_functions.o] Error 1