Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Incompressible.Examples.TestGlycol.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) 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(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_trunk_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_trunk_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 trunk/package.mo): time 0.001065/0.001065, allocations: 195.6 kB / 8.535 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.277/1.277, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009087/0.0009088, allocations: 92.5 kB / 286.3 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.147e-06/9.307e-06, allocations: 4 kB / 343.1 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1012, allocations: 51.48 MB / 394.6 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4175/0.5188, allocations: 187.2 MB / 0.5681 GB, free: 7.27 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.5191, allocations: 65.66 kB / 0.5682 GB, free: 7.238 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.2826/0.8016, allocations: 29.55 MB / 0.5971 GB, free: 135.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.8017, allocations: 3.531 kB / 0.5971 GB, free: 135.6 MB / 442.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.0006593/0.8024, allocations: 443.2 kB / 0.5975 GB, free: 135.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.8024, allocations: 8.531 kB / 0.5975 GB, free: 135.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005538/0.803, allocations: 42.91 kB / 0.5975 GB, free: 135.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.8033, allocations: 192.3 kB / 0.5977 GB, free: 134.9 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.8033, allocations: 7.406 kB / 0.5977 GB, free: 134.9 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.438e-05/0.8034, allocations: 4.375 kB / 0.5977 GB, free: 134.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002539/0.8036, allocations: 107.3 kB / 0.5978 GB, free: 134.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.8038, allocations: 129.2 kB / 0.598 GB, free: 134.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.8039, allocations: 1.312 kB / 0.598 GB, free: 134.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.8039, allocations: 0 / 0.598 GB, free: 134.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.8039, allocations: 2.344 kB / 0.598 GB, free: 134.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006639/0.8046, allocations: 0.6091 MB / 0.5986 GB, free: 134.3 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001373/0.8047, allocations: 80.8 kB / 0.5986 GB, free: 134.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.33e-05/0.8048, allocations: 36.48 kB / 0.5987 GB, free: 134.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006056/0.8054, allocations: 0.8511 MB / 0.5995 GB, free: 133.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.875e-05/0.8054, allocations: 39.75 kB / 0.5995 GB, free: 133.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 1.654e-06/0.8055, allocations: 0 / 0.5995 GB, free: 133.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=13): time 0.001052/0.8065, allocations: 174.3 kB / 0.5997 GB, free: 133.2 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.16e-05/0.8065, allocations: 53.53 kB / 0.5997 GB, free: 133.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.034e-05/0.8066, allocations: 102.5 kB / 0.5998 GB, free: 133 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.8067, allocations: 26.67 kB / 0.5999 GB, free: 133 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.734e-05/0.8067, allocations: 97.92 kB / 0.6 GB, free: 132.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.8067, allocations: 41.14 kB / 0.6 GB, free: 132.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.324e-06/0.8068, allocations: 0 / 0.6 GB, free: 132.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.102e-05/0.8068, allocations: 324.7 kB / 0.6003 GB, free: 132.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.183e-05/0.8069, allocations: 26.12 kB / 0.6003 GB, free: 132.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.244e-05/0.807, allocations: 59 kB / 0.6004 GB, free: 132.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008086/0.8078, allocations: 111.2 kB / 0.6005 GB, free: 132.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.8078, allocations: 0 / 0.6005 GB, free: 132.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0009356/0.8087, allocations: 191.3 kB / 0.6007 GB, free: 132.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.8088, allocations: 9 kB / 0.6007 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/0.8088, allocations: 4.422 kB / 0.6007 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.8088, allocations: 3.062 kB / 0.6007 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.8089, allocations: 35.66 kB / 0.6007 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.809, allocations: 2.156 kB / 0.6007 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.226e-05/0.8091, allocations: 15.97 kB / 0.6008 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.673e-05/0.8091, allocations: 21.62 kB / 0.6008 GB, free: 132.4 MB / 442.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 7.373e-05/0.8092, allocations: 108.8 kB / 0.6009 GB, free: 132.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.482e-05/0.8092, allocations: 8.344 kB / 0.6009 GB, free: 132.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.8106, allocations: 337.2 kB / 0.6012 GB, free: 132.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.176e-05/0.8106, allocations: 4.531 kB / 0.6012 GB, free: 132.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.8106, allocations: 1.125 kB / 0.6012 GB, free: 132.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.8107, allocations: 1.375 kB / 0.6012 GB, free: 132.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.8119, allocations: 0.5037 MB / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.8119, allocations: 0 / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.06e-05/0.812, allocations: 20.97 kB / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.812, allocations: 4.969 kB / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.8121, allocations: 2.188 kB / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.8121, allocations: 1.156 kB / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.8121, allocations: 0 / 0.6017 GB, free: 131.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000934/0.813, allocations: 319.9 kB / 0.602 GB, free: 131.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.987e-05/0.8132, allocations: 103.7 kB / 0.6021 GB, free: 131.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.082e-05/0.8132, allocations: 3.281 kB / 0.6021 GB, free: 131.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.8133, allocations: 1.75 kB / 0.6021 GB, free: 131.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.278e-05/0.8134, allocations: 12.31 kB / 0.6022 GB, free: 131.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.876e-05/0.8134, allocations: 9.906 kB / 0.6022 GB, free: 131.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.556e-05/0.8135, allocations: 91.02 kB / 0.6022 GB, free: 131.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007074/0.8142, allocations: 103.8 kB / 0.6023 GB, free: 131.4 MB / 442.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.0008575/0.815, allocations: 224.7 kB / 0.6026 GB, free: 131.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000302/0.8154, allocations: 105.1 kB / 0.6027 GB, free: 131.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.8154, allocations: 0 / 0.6027 GB, free: 131.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001627/0.8155, allocations: 74.22 kB / 0.6027 GB, free: 131.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004232/0.816, allocations: 45.25 kB / 0.6028 GB, free: 131.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004947/0.8165, allocations: 149.7 kB / 0.6029 GB, free: 131.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003816/0.8169, allocations: 0.7477 MB / 0.6036 GB, free: 130.4 MB / 442.7 MB Notification: Performance of SimCode: time 2.074e-06/0.8169, allocations: 0 / 0.6036 GB, free: 130.4 MB / 442.7 MB Notification: Performance of Templates: time 0.008143/0.825, allocations: 3.304 MB / 0.6069 GB, free: 130.1 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Incompressible.Examples.TestGlycol.makefile make -j1 -f Modelica_trunk_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_trunk_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_trunk_Modelica.Media.Incompressible.Examples.TestGlycol.o Modelica_trunk_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_trunk_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_trunk_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o Modelica_trunk_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c Modelica_trunk_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c:507: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_trunk_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c:507: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_trunk_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o] Error 1