Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009102/0.0009103, allocations: 191.1 kB / 7.805 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.02/1.02, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008746/0.0008746, allocations: 87.02 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1469/0.1469, allocations: 43.5 MB / 352.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.899e-06/4.919e-06, allocations: 224 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2146/0.2146, allocations: 58.83 MB / 476.6 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0988/0.3134, allocations: 85.67 MB / 0.549 GB, free: 13.26 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001687/0.3136, allocations: 63.97 kB / 0.5491 GB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02132/0.335, allocations: 8.495 MB / 0.5574 GB, free: 4.711 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.335, allocations: 0 / 0.5574 GB, free: 4.711 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004081/0.3354, allocations: 432 kB / 0.5578 GB, free: 4.238 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/0.3355, allocations: 8.031 kB / 0.5578 GB, free: 4.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.3355, allocations: 0 / 0.5578 GB, free: 4.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.078e-05/0.3356, allocations: 163.1 kB / 0.558 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.3356, allocations: 3.906 kB / 0.558 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.3356, allocations: 0 / 0.558 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.716e-05/0.3357, allocations: 0 / 0.558 GB, free: 4.027 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.364e-05/0.3357, allocations: 37.62 kB / 0.558 GB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.089e-06/0.3357, allocations: 0 / 0.558 GB, free: 3.984 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.662e-06/0.3357, allocations: 4 kB / 0.558 GB, free: 3.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.3357, allocations: 0 / 0.558 GB, free: 3.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.388e-05/0.3358, allocations: 134.2 kB / 0.5582 GB, free: 3.812 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.728e-05/0.3359, allocations: 14.64 kB / 0.5582 GB, free: 3.789 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.286e-05/0.3359, allocations: 8.859 kB / 0.5582 GB, free: 3.777 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-06/0.3359, allocations: 3.984 kB / 0.5582 GB, free: 3.773 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.58e-05/0.3359, allocations: 60.33 kB / 0.5582 GB, free: 3.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.3359, allocations: 4 kB / 0.5582 GB, free: 3.695 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001106/0.3361, allocations: 37.59 kB / 0.5583 GB, free: 3.652 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.3361, allocations: 85.05 kB / 0.5584 GB, free: 3.551 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.027e-05/0.3362, allocations: 89 kB / 0.5584 GB, free: 3.457 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.288e-06/0.3362, allocations: 25.7 kB / 0.5585 GB, free: 3.426 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.989e-05/0.3362, allocations: 80.14 kB / 0.5585 GB, free: 3.344 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.318e-05/0.3362, allocations: 3.984 kB / 0.5585 GB, free: 3.34 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.833e-06/0.3362, allocations: 0 / 0.5585 GB, free: 3.34 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.668e-05/0.3363, allocations: 315 kB / 0.5588 GB, free: 3.023 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.064e-06/0.3363, allocations: 4 kB / 0.5588 GB, free: 3.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.927e-06/0.3363, allocations: 0 / 0.5588 GB, free: 3.02 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.393e-05/0.3364, allocations: 4 kB / 0.5589 GB, free: 3.016 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.3364, allocations: 3.938 kB / 0.5589 GB, free: 3.012 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.775e-05/0.3364, allocations: 37.61 kB / 0.5589 GB, free: 2.969 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.228e-06/0.3364, allocations: 4 kB / 0.5589 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-06/0.3365, allocations: 0 / 0.5589 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.677e-06/0.3365, allocations: 96 / 0.5589 GB, free: 2.965 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.3365, allocations: 4 kB / 0.5589 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.3365, allocations: 7.984 kB / 0.5589 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.092e-05/0.3365, allocations: 0 / 0.5589 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.3365, allocations: 0 / 0.5589 GB, free: 2.953 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.009e-05/0.3366, allocations: 132 kB / 0.559 GB, free: 2.812 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.308e-06/0.3366, allocations: 7.906 kB / 0.559 GB, free: 2.805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.1e-05/0.3366, allocations: 3.156 kB / 0.559 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.3366, allocations: 0 / 0.559 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.3366, allocations: 0 / 0.559 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3366, allocations: 4 kB / 0.559 GB, free: 2.793 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.226e-05/0.3367, allocations: 134.2 kB / 0.5592 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3367, allocations: 0 / 0.5592 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.3367, allocations: 0 / 0.5592 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.3367, allocations: 0 / 0.5592 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.3367, allocations: 3.906 kB / 0.5592 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.71e-07/0.3367, allocations: 0 / 0.5592 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.3367, allocations: 0 / 0.5592 GB, free: 2.621 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.967e-05/0.3368, allocations: 65.12 kB / 0.5592 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.246e-05/0.3368, allocations: 81.02 kB / 0.5593 GB, free: 2.441 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.3369, allocations: 4 kB / 0.5593 GB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-06/0.3369, allocations: 3.938 kB / 0.5593 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.606e-06/0.3369, allocations: 0 / 0.5593 GB, free: 2.434 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-06/0.3369, allocations: 0 / 0.5593 GB, free: 2.434 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.475e-05/0.3369, allocations: 83.28 kB / 0.5594 GB, free: 2.352 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002749/0.3372, allocations: 79.86 kB / 0.5595 GB, free: 2.273 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000494/0.3377, allocations: 330.1 kB / 0.5598 GB, free: 1.965 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 5.246e-05/0.3378, allocations: 29.7 kB / 0.5598 GB, free: 1.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.3378, allocations: 4.062 kB / 0.5598 GB, free: 1.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.836e-05/0.3378, allocations: 29.69 kB / 0.5599 GB, free: 1.891 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.389e-05/0.3379, allocations: 7.938 kB / 0.5599 GB, free: 1.883 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001086/0.338, allocations: 40.08 kB / 0.5599 GB, free: 1.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001824/0.3382, allocations: 0.688 MB / 0.5606 GB, free: 1.105 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3382, allocations: 3.938 kB / 0.5606 GB, free: 1.102 MB / 394.7 MB Notification: Performance of Templates: time 0.00345/0.3416, allocations: 1.571 MB / 0.5621 GB, free: 15.54 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles -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_3.2.3_ModelicaTest.Utilities.TestFiles.o ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles.c clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_3_2_3_ModelicaTest_Utilities_TestFiles -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_3.2.3_ModelicaTest.Utilities.TestFiles_functions.o ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_functions.c ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_functions.c:249:33: error: passing 'string_array' (aka 'struct base_array_s') to parameter of incompatible type 'const string_array_t *' (aka 'const struct base_array_s *') indexed_assign_string_array(omc_Modelica_Utilities_Strings_sort(threadData, tmp8, 0), &_orderedNames, &tmp14); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/util/string_array.h:91:64: note: passing argument to parameter 'source' here extern void indexed_assign_string_array(const string_array_t * source, ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_functions.c:261:33: error: passing 'string_array' (aka 'struct base_array_s') to parameter of incompatible type 'const string_array_t *' (aka 'const struct base_array_s *') indexed_assign_string_array(omc_Modelica_Utilities_Strings_sort(threadData, tmp15, 0), &_orderedNames, &tmp21); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/util/string_array.h:91:64: note: passing argument to parameter 'source' here extern void indexed_assign_string_array(const string_array_t * source, ^ 2 errors generated. make: *** [: ModelicaTest_3.2.3_ModelicaTest.Utilities.TestFiles_functions.o] Error 1