Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol.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) 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(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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 179.2 kB / 8.477 MB, free: 1.848 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.296/1.296, allocations: 205.2 MB / 214.1 MB, free: 1.871 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008866/0.0008865, allocations: 91.38 kB / 262.1 MB, free: 1.816 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.576e-06/8.766e-06, allocations: 0 / 315 MB, free: 23.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08741, allocations: 47.58 MB / 362.5 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6599/0.7473, allocations: 190.1 MB / 0.5397 GB, free: 143.7 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.7477, allocations: 73.91 kB / 0.5398 GB, free: 143.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.06566/0.8133, allocations: 29.96 MB / 0.569 GB, free: 123.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.8134, allocations: 3.938 kB / 0.569 GB, free: 123.7 MB / 410.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.000494/0.8139, allocations: 426.1 kB / 0.5695 GB, free: 123.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.8139, allocations: 8.031 kB / 0.5695 GB, free: 123.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004128/0.8144, allocations: 43.86 kB / 0.5695 GB, free: 123.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001787/0.8145, allocations: 202.8 kB / 0.5697 GB, free: 122.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.8146, allocations: 7.984 kB / 0.5697 GB, free: 122.9 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.924e-05/0.8146, allocations: 4 kB / 0.5697 GB, free: 122.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001852/0.8148, allocations: 103.9 kB / 0.5698 GB, free: 122.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.8149, allocations: 129 kB / 0.5699 GB, free: 122.6 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.125e-06/0.815, allocations: 0 / 0.5699 GB, free: 122.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.815, allocations: 4 kB / 0.5699 GB, free: 122.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.815, allocations: 4 kB / 0.5699 GB, free: 122.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.8155, allocations: 0.611 MB / 0.5705 GB, free: 122 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001174/0.8157, allocations: 86.5 kB / 0.5706 GB, free: 121.9 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.385e-05/0.8157, allocations: 32.86 kB / 0.5706 GB, free: 121.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005316/0.8163, allocations: 0.8525 MB / 0.5715 GB, free: 120.8 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.8163, allocations: 30.56 kB / 0.5715 GB, free: 120.8 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.8163, allocations: 3.938 kB / 0.5715 GB, free: 120.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008743/0.8172, allocations: 161.5 kB / 0.5717 GB, free: 120.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.826e-05/0.8172, allocations: 51.41 kB / 0.5717 GB, free: 120.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.396e-05/0.8173, allocations: 117 kB / 0.5718 GB, free: 120.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.8173, allocations: 25.7 kB / 0.5718 GB, free: 120.4 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.8174, allocations: 103.8 kB / 0.5719 GB, free: 120.3 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.8174, allocations: 39.36 kB / 0.572 GB, free: 120.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-06/0.8174, allocations: 0 / 0.572 GB, free: 120.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.35e-05/0.8175, allocations: 322.8 kB / 0.5723 GB, free: 119.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.912e-05/0.8175, allocations: 24 kB / 0.5723 GB, free: 119.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.931e-05/0.8176, allocations: 65.14 kB / 0.5724 GB, free: 119.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006594/0.8182, allocations: 96.14 kB / 0.5725 GB, free: 119.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.8183, allocations: 0 / 0.5725 GB, free: 119.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0007714/0.819, allocations: 185.5 kB / 0.5726 GB, free: 119.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.8191, allocations: 8.031 kB / 0.5727 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.8191, allocations: 4 kB / 0.5727 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.692e-05/0.8191, allocations: 3.984 kB / 0.5727 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.8192, allocations: 35.92 kB / 0.5727 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.8192, allocations: 4 kB / 0.5727 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.351e-05/0.8193, allocations: 11.84 kB / 0.5727 GB, free: 119.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.8193, allocations: 12 kB / 0.5727 GB, free: 119.5 MB / 410.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.641e-05/0.8194, allocations: 116.8 kB / 0.5728 GB, free: 119.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/0.8194, allocations: 11.91 kB / 0.5728 GB, free: 119.3 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001116/0.8206, allocations: 353.8 kB / 0.5732 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.8206, allocations: 7.906 kB / 0.5732 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.8206, allocations: 0 / 0.5732 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.8206, allocations: 0 / 0.5732 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009528/0.8216, allocations: 486.9 kB / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.8216, allocations: 0 / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.93e-05/0.8217, allocations: 31.92 kB / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.8217, allocations: 0 / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.8217, allocations: 8 kB / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.8217, allocations: 7.844 kB / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.8217, allocations: 3.984 kB / 0.5737 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000678/0.8224, allocations: 307.3 kB / 0.574 GB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.8225, allocations: 104.9 kB / 0.5741 GB, free: 118 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.425e-05/0.8225, allocations: 7.906 kB / 0.5741 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.946e-05/0.8226, allocations: 0 / 0.5741 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.333e-05/0.8226, allocations: 11.98 kB / 0.5741 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.014e-05/0.8227, allocations: 12 kB / 0.5741 GB, free: 117.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.299e-05/0.8227, allocations: 95.14 kB / 0.5742 GB, free: 117.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005119/0.8232, allocations: 91.94 kB / 0.5743 GB, free: 117.7 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: 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.0004532/0.8237, allocations: 211.7 kB / 0.5745 GB, free: 117.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001568/0.8238, allocations: 104.2 kB / 0.5746 GB, free: 117.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.8239, allocations: 4.062 kB / 0.5746 GB, free: 117.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.824, allocations: 72.33 kB / 0.5747 GB, free: 117.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.8243, allocations: 35.97 kB / 0.5747 GB, free: 117.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003153/0.8246, allocations: 169.1 kB / 0.5749 GB, free: 117.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.8249, allocations: 0.7512 MB / 0.5756 GB, free: 116.3 MB / 410.7 MB Notification: Performance of SimCode: time 2.31e-07/0.8249, allocations: 0 / 0.5756 GB, free: 116.3 MB / 410.7 MB Notification: Performance of Templates: time 0.00596/0.8308, allocations: 3.343 MB / 0.5789 GB, free: 113 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol.makefile make -j1 -f Modelica_3.2.3_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_3_2_3_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_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol.o Modelica_3.2.3_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_3_2_3_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_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o Modelica_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c Modelica_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c:267: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_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c:267: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_3.2.3_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o] Error 1