Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 179.6 kB / 8.52 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 221.4 MB / 230.3 MB, free: 7.73 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009093/0.000909, allocations: 84.73 kB / 281.2 MB, free: 5.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1725/0.1725, allocations: 44.15 MB / 376.1 MB, free: 3.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.955e-06/8.075e-06, allocations: 4.219 kB / 444 MB, free: 15.65 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1217, allocations: 61.9 MB / 0.4941 GB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2766/0.3983, allocations: 86.9 MB / 0.5789 GB, free: 9.848 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001657/0.3985, allocations: 69.23 kB / 0.579 GB, free: 9.812 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02343/0.422, allocations: 8.507 MB / 0.5873 GB, free: 1.422 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.422, allocations: 3.938 kB / 0.5873 GB, free: 1.418 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.0004765/0.4225, allocations: 439.9 kB / 0.5877 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.4225, allocations: 15.97 kB / 0.5877 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.811e-05/0.4226, allocations: 4 kB / 0.5877 GB, free: 0.918 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.4227, allocations: 163.1 kB / 0.5879 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.4227, allocations: 0 / 0.5879 GB, free: 0.7188 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.4227, allocations: 7.844 kB / 0.5879 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.029e-05/0.4228, allocations: 0 / 0.5879 GB, free: 0.7109 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.539e-05/0.4228, allocations: 29.7 kB / 0.5879 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.44e-06/0.4228, allocations: 0 / 0.5879 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.4228, allocations: 3.984 kB / 0.5879 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.4228, allocations: 0 / 0.5879 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001057/0.423, allocations: 130.2 kB / 0.5881 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.938e-05/0.423, allocations: 18.61 kB / 0.5881 GB, free: 492 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.364e-05/0.423, allocations: 4.859 kB / 0.5881 GB, free: 484 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.252e-06/0.423, allocations: 0 / 0.5881 GB, free: 484 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.4231, allocations: 64.27 kB / 0.5881 GB, free: 404 kB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.21e-07/0.4231, allocations: 0 / 0.5881 GB, free: 404 kB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001297/0.4232, allocations: 45.59 kB / 0.5882 GB, free: 352 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.4233, allocations: 77.11 kB / 0.5883 GB, free: 256 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.135e-05/0.4233, allocations: 89 kB / 0.5884 GB, free: 160 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.4233, allocations: 25.7 kB / 0.5884 GB, free: 128 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.632e-05/0.4234, allocations: 80.14 kB / 0.5885 GB, free: 44 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.255e-05/0.4234, allocations: 0 / 0.5885 GB, free: 44 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.995e-06/0.4234, allocations: 0 / 0.5885 GB, free: 44 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.4235, allocations: 314.8 kB / 0.5888 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.02e-05/0.4235, allocations: 12.16 kB / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-06/0.4235, allocations: 0 / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.403e-05/0.4236, allocations: 3.984 kB / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.4236, allocations: 0 / 0.5888 GB, free: 15.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.493e-05/0.4236, allocations: 41.55 kB / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.4237, allocations: 4 kB / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.4237, allocations: 0 / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.687e-06/0.4237, allocations: 0 / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.4237, allocations: 0 / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.4237, allocations: 0.625 kB / 0.5888 GB, free: 15.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.14e-05/0.4237, allocations: 8.094 kB / 0.5888 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.4237, allocations: 0 / 0.5888 GB, free: 15.65 MB / 410.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.872e-05/0.4238, allocations: 130.7 kB / 0.5889 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.115e-05/0.4238, allocations: 11.89 kB / 0.589 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.223e-05/0.4238, allocations: 3.156 kB / 0.589 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.4238, allocations: 0 / 0.589 GB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.4239, allocations: 3.938 kB / 0.589 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.4239, allocations: 0 / 0.589 GB, free: 15.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.358e-05/0.4239, allocations: 122.2 kB / 0.5891 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4239, allocations: 11.98 kB / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.8e-07/0.4239, allocations: 0 / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.4239, allocations: 0 / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.112e-06/0.424, allocations: 0 / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.424, allocations: 3.906 kB / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.424, allocations: 0 / 0.5891 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.495e-05/0.424, allocations: 61.08 kB / 0.5892 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.4241, allocations: 81.09 kB / 0.5892 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.4241, allocations: 11.94 kB / 0.5892 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.011e-05/0.4241, allocations: 4 kB / 0.5892 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.4241, allocations: 0 / 0.5892 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.455e-06/0.4241, allocations: 0 / 0.5892 GB, free: 15.13 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.923e-05/0.4242, allocations: 83.28 kB / 0.5893 GB, free: 15.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003172/0.4245, allocations: 71.91 kB / 0.5894 GB, free: 14.98 MB / 410.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.0006031/0.4251, allocations: 345.5 kB / 0.5897 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 6.426e-05/0.4252, allocations: 33.64 kB / 0.5898 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.4252, allocations: 0 / 0.5898 GB, free: 14.65 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 1.886e-05/0.4252, allocations: 33.64 kB / 0.5898 GB, free: 14.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.91e-05/0.4253, allocations: 0 / 0.5898 GB, free: 14.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001264/0.4255, allocations: 48 kB / 0.5898 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.4257, allocations: 0.6842 MB / 0.5905 GB, free: 13.83 MB / 410.7 MB Notification: Performance of SimCode: time 4.11e-07/0.4257, allocations: 0 / 0.5905 GB, free: 13.83 MB / 410.7 MB Notification: Performance of Templates: time 0.003707/0.4294, allocations: 1.576 MB / 0.592 GB, free: 12.25 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile clang -fPIC -falign-functions -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/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_4_0_0_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_4.0.0_ModelicaTest.Utilities.TestFiles.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.c clang -fPIC -falign-functions -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/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ModelicaTest_4_0_0_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_4.0.0_ModelicaTest.Utilities.TestFiles_functions.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_functions.c ModelicaTest_4.0.0_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_4.0.0_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_4.0.0_ModelicaTest.Utilities.TestFiles_functions.o] Error 1