Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.002051/0.002051, allocations: 199.6 kB / 8.536 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009626/0.0009627, allocations: 93.36 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1963/0.1963, allocations: 45.14 MB / 383.3 MB, free: 484 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.671e-06/5.691e-06, allocations: 0 / 452.6 MB, free: 20.37 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1346, allocations: 63.25 MB / 0.5038 GB, free: 328 kB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3927/0.5273, allocations: 87.93 MB / 0.5896 GB, free: 35.48 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.5276, allocations: 63.31 kB / 0.5897 GB, free: 35.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.02168/0.5493, allocations: 8.492 MB / 0.598 GB, free: 35.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.5493, allocations: 0 / 0.598 GB, free: 35.25 MB / 458.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.000506/0.5498, allocations: 432.2 kB / 0.5984 GB, free: 34.83 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.5499, allocations: 7.781 kB / 0.5984 GB, free: 34.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.5499, allocations: 1.562 kB / 0.5984 GB, free: 34.83 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.642e-05/0.55, allocations: 164 kB / 0.5986 GB, free: 34.63 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.55, allocations: 3.906 kB / 0.5986 GB, free: 34.63 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-06/0.5501, allocations: 0 / 0.5986 GB, free: 34.63 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.59e-05/0.5501, allocations: 4.5 kB / 0.5986 GB, free: 34.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.169e-05/0.5502, allocations: 37.41 kB / 0.5986 GB, free: 34.59 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.5502, allocations: 0 / 0.5986 GB, free: 34.59 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.527e-06/0.5502, allocations: 0 / 0.5986 GB, free: 34.59 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.5502, allocations: 3.953 kB / 0.5986 GB, free: 34.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.79e-05/0.5503, allocations: 122.2 kB / 0.5987 GB, free: 34.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.244e-05/0.5503, allocations: 21.45 kB / 0.5988 GB, free: 34.41 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.435e-05/0.5504, allocations: 10.11 kB / 0.5988 GB, free: 34.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.654e-06/0.5504, allocations: 0 / 0.5988 GB, free: 34.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.5504, allocations: 74.53 kB / 0.5988 GB, free: 34.33 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.5504, allocations: 0 / 0.5988 GB, free: 34.33 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001511/0.5506, allocations: 34.05 kB / 0.5989 GB, free: 34.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.5506, allocations: 81.69 kB / 0.5989 GB, free: 34.2 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.275e-05/0.5507, allocations: 88.94 kB / 0.599 GB, free: 34.11 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 6.833e-06/0.5507, allocations: 25.7 kB / 0.5991 GB, free: 34.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.374e-05/0.5507, allocations: 83.58 kB / 0.5991 GB, free: 34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.5507, allocations: 0 / 0.5991 GB, free: 34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-06/0.5507, allocations: 0 / 0.5991 GB, free: 34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.986e-05/0.5508, allocations: 316.1 kB / 0.5994 GB, free: 33.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.333e-06/0.5508, allocations: 3.875 kB / 0.5994 GB, free: 33.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.13e-06/0.5508, allocations: 0 / 0.5994 GB, free: 33.68 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.137e-05/0.5509, allocations: 1.5 kB / 0.5994 GB, free: 33.68 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.5509, allocations: 0 / 0.5994 GB, free: 33.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.113e-05/0.551, allocations: 44.02 kB / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.551, allocations: 3.875 kB / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.551, allocations: 2.625 kB / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.551, allocations: 0 / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.551, allocations: 3.875 kB / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-06/0.551, allocations: 0 / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.262e-05/0.551, allocations: 0 / 0.5995 GB, free: 33.64 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.5511, allocations: 0 / 0.5995 GB, free: 33.64 MB / 458.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 5.817e-05/0.5511, allocations: 137.9 kB / 0.5996 GB, free: 33.51 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.747e-06/0.5511, allocations: 8.672 kB / 0.5996 GB, free: 33.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.546e-05/0.5512, allocations: 6.391 kB / 0.5996 GB, free: 33.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.5512, allocations: 0 / 0.5996 GB, free: 33.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.5512, allocations: 0 / 0.5996 GB, free: 33.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.5512, allocations: 0 / 0.5996 GB, free: 33.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.016e-05/0.5512, allocations: 130.5 kB / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.5512, allocations: 0 / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.193e-06/0.5512, allocations: 5.344 kB / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.042e-06/0.5513, allocations: 0 / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-06/0.5513, allocations: 6.438 kB / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5513, allocations: 0 / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.5513, allocations: 7.812 kB / 0.5998 GB, free: 33.34 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.301e-05/0.5514, allocations: 63.19 kB / 0.5998 GB, free: 33.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.5514, allocations: 82.05 kB / 0.5999 GB, free: 33.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.705e-05/0.5514, allocations: 0 / 0.5999 GB, free: 33.17 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.819e-06/0.5514, allocations: 0 / 0.5999 GB, free: 33.17 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.656e-05/0.5514, allocations: 0.8438 kB / 0.5999 GB, free: 33.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.5515, allocations: 7.188 kB / 0.5999 GB, free: 33.17 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.805e-05/0.5515, allocations: 79.16 kB / 0.6 GB, free: 33.1 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.000374/0.5519, allocations: 71.89 kB / 0.6001 GB, free: 33.08 MB / 458.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.0006348/0.5525, allocations: 342.8 kB / 0.6004 GB, free: 32.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 7.522e-05/0.5526, allocations: 42.92 kB / 0.6004 GB, free: 32.92 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5526, allocations: 0 / 0.6004 GB, free: 32.92 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 1.396e-05/0.5526, allocations: 29.58 kB / 0.6005 GB, free: 32.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.984e-05/0.5527, allocations: 2.656 kB / 0.6005 GB, free: 32.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001525/0.5529, allocations: 39.95 kB / 0.6005 GB, free: 32.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002982/0.5532, allocations: 0.6886 MB / 0.6012 GB, free: 48.13 MB / 474.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5532, allocations: 0 / 0.6012 GB, free: 48.13 MB / 474.7 MB Notification: Performance of Templates: time 0.003905/0.5571, allocations: 1.577 MB / 0.6027 GB, free: 47.95 MB / 474.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.makefile clang -fPIC -falign-functions -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestFiles.o ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles.c clang -fPIC -falign-functions -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_trunk_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_trunk_ModelicaTest.Utilities.TestFiles_functions.o ModelicaTest_trunk_ModelicaTest.Utilities.TestFiles_functions.c ModelicaTest_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestFiles_functions.o] Error 1