Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol.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) 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(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|eta|lambda|s|cv|u|h|d",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol") translateModel(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|eta|lambda|s|cv|u|h|d",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol") [: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.001023/0.001023, allocations: 184.5 kB / 8.138 MB, free: 2.219 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.216/1.216, allocations: 221.4 MB / 229.9 MB, free: 3.035 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.0009003/0.0009003, allocations: 91.31 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.864e-06/7.894e-06, allocations: 0 / 336.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2234, allocations: 50.4 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3883/0.6118, allocations: 186.4 MB / 0.5598 GB, free: 31.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.6121, allocations: 70.28 kB / 0.5599 GB, free: 31.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.05272/0.6648, allocations: 29.19 MB / 0.5884 GB, free: 7.129 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.6649, allocations: 4 kB / 0.5884 GB, free: 7.125 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005062/0.6654, allocations: 428.6 kB / 0.5888 GB, free: 6.668 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6654, allocations: 8.031 kB / 0.5888 GB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004305/0.6658, allocations: 38.48 kB / 0.5889 GB, free: 6.625 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/0.666, allocations: 197.2 kB / 0.589 GB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.068e-05/0.6661, allocations: 7.938 kB / 0.5891 GB, free: 6.395 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.763e-05/0.6661, allocations: 4 kB / 0.5891 GB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000193/0.6663, allocations: 106.5 kB / 0.5892 GB, free: 6.309 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.6664, allocations: 131.8 kB / 0.5893 GB, free: 6.184 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.6665, allocations: 0 / 0.5893 GB, free: 6.184 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.6665, allocations: 4 kB / 0.5893 GB, free: 6.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.6665, allocations: 0 / 0.5893 GB, free: 6.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005459/0.6671, allocations: 0.6138 MB / 0.5899 GB, free: 5.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001081/0.6672, allocations: 75.88 kB / 0.59 GB, free: 5.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.25e-05/0.6672, allocations: 38.84 kB / 0.59 GB, free: 5.469 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004795/0.6677, allocations: 0.8474 MB / 0.5908 GB, free: 4.445 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.111e-05/0.6678, allocations: 38.56 kB / 0.5909 GB, free: 4.398 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.132e-06/0.6678, allocations: 3.938 kB / 0.5909 GB, free: 4.395 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008506/0.6686, allocations: 170 kB / 0.591 GB, free: 4.238 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.971e-05/0.6686, allocations: 51.41 kB / 0.5911 GB, free: 4.176 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.344e-05/0.6687, allocations: 104.7 kB / 0.5912 GB, free: 4.066 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.6688, allocations: 25.7 kB / 0.5912 GB, free: 4.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.232e-05/0.6688, allocations: 98.92 kB / 0.5913 GB, free: 3.938 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.6688, allocations: 42.33 kB / 0.5913 GB, free: 3.902 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.973e-06/0.6688, allocations: 0 / 0.5913 GB, free: 3.902 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.136e-05/0.6689, allocations: 326.2 kB / 0.5916 GB, free: 3.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.88e-05/0.6689, allocations: 21.81 kB / 0.5917 GB, free: 3.562 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.669, allocations: 62.2 kB / 0.5917 GB, free: 3.492 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006427/0.6696, allocations: 102.3 kB / 0.5918 GB, free: 3.402 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.6697, allocations: 0 / 0.5918 GB, free: 3.402 MB / 378.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007467/0.6704, allocations: 182.5 kB / 0.592 GB, free: 3.234 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.6704, allocations: 8 kB / 0.592 GB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.6704, allocations: 0.8594 kB / 0.592 GB, free: 3.227 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.6705, allocations: 4 kB / 0.592 GB, free: 3.223 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.6706, allocations: 38.98 kB / 0.592 GB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.6706, allocations: 0 / 0.592 GB, free: 3.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.717e-05/0.6707, allocations: 16 kB / 0.5921 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.6707, allocations: 16 kB / 0.5921 GB, free: 3.156 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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.585e-05/0.6708, allocations: 112.8 kB / 0.5922 GB, free: 3.039 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.6708, allocations: 11.84 kB / 0.5922 GB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.6719, allocations: 347.4 kB / 0.5925 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.6719, allocations: 4 kB / 0.5925 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6719, allocations: 0 / 0.5925 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.6719, allocations: 7.891 kB / 0.5925 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009832/0.6729, allocations: 497.5 kB / 0.593 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6729, allocations: 0 / 0.593 GB, free: 2.227 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.905e-05/0.673, allocations: 19.98 kB / 0.593 GB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.673, allocations: 0 / 0.593 GB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.6731, allocations: 4 kB / 0.593 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.6731, allocations: 0 / 0.593 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6731, allocations: 0 / 0.593 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007096/0.6738, allocations: 322.6 kB / 0.5933 GB, free: 1.898 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.581e-05/0.6739, allocations: 108.4 kB / 0.5934 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.673e-05/0.6739, allocations: 0 / 0.5934 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.674, allocations: 7.891 kB / 0.5935 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.371e-05/0.674, allocations: 15.97 kB / 0.5935 GB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.6741, allocations: 12 kB / 0.5935 GB, free: 1.746 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.468e-05/0.6741, allocations: 90.34 kB / 0.5936 GB, free: 1.664 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004572/0.6746, allocations: 87.92 kB / 0.5936 GB, free: 1.578 MB / 378.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * 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.000476/0.6751, allocations: 222.2 kB / 0.5939 GB, free: 1.352 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.6752, allocations: 111.1 kB / 0.594 GB, free: 1.262 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.6752, allocations: 0 / 0.594 GB, free: 1.262 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.6754, allocations: 74.03 kB / 0.594 GB, free: 1.203 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.6757, allocations: 31.97 kB / 0.5941 GB, free: 1.176 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.6761, allocations: 157.6 kB / 0.5942 GB, free: 1.012 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.6763, allocations: 0.7468 MB / 0.5949 GB, free: 244 kB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6763, allocations: 0 / 0.5949 GB, free: 244 kB / 378.7 MB Notification: Performance of Templates: time 0.006968/0.6833, allocations: 3.219 MB / 0.5981 GB, free: 13.07 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol.makefile make -j1 -f Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol.makefile clang -fPIC -falign-functions -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Media_Incompressible_Examples_TestGlycol -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.0.0_Modelica.Media.Incompressible.Examples.TestGlycol.o Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol.c clang -fPIC -falign-functions -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Media_Incompressible_Examples_TestGlycol -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.0.0_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c:461:86: error: use of undeclared identifier '_poly_Cp' array_alloc_scalar_real_array(&tmp1, 2, (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 1))), (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 2)))); ^ Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c:461:191: error: use of undeclared identifier '_poly_Cp' array_alloc_scalar_real_array(&tmp1, 2, (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 1))), (modelica_real)(*real_array_element_addr1(&_poly_Cp, 1, /* modelica_integer */ ((modelica_integer) 2)))); ^ 2 errors generated. make: *** [: Modelica_4.0.0_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o] Error 1