Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Incompressible.Examples.TestGlycol.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Incompressible.Examples.TestGlycol") translateModel(Modelica.Media.Incompressible.Examples.TestGlycol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001977/0.001977, allocations: 189.8 kB / 8.137 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.105/1.105, allocations: 194.2 MB / 202.8 MB, free: 8.746 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001899/0.001899, allocations: 126 kB / 247.7 MB, free: 6.223 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.53e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07027/0.07029, allocations: 44.48 MB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.4537, allocations: 187 MB / 0.5166 GB, free: 137.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.454, allocations: 76.12 kB / 0.5167 GB, free: 137.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06109/0.5151, allocations: 29.72 MB / 0.5457 GB, free: 125.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.5151, allocations: 3.969 kB / 0.5457 GB, free: 125.8 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0004334/0.5156, allocations: 441.5 kB / 0.5461 GB, free: 125.4 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.5156, allocations: 10 kB / 0.5461 GB, free: 125.4 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003603/0.516, allocations: 33.58 kB / 0.5462 GB, free: 125.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.5162, allocations: 196.1 kB / 0.5463 GB, free: 125.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.5162, allocations: 3.406 kB / 0.5464 GB, free: 125.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.5162, allocations: 3.531 kB / 0.5464 GB, free: 125.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001926/0.5164, allocations: 112.7 kB / 0.5465 GB, free: 125.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001598/0.5166, allocations: 132.5 kB / 0.5466 GB, free: 125 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.5166, allocations: 3.984 kB / 0.5466 GB, free: 125 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.849e-05/0.5166, allocations: 5.109 kB / 0.5466 GB, free: 125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.5166, allocations: 3.469 kB / 0.5466 GB, free: 125 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005348/0.5172, allocations: 0.6089 MB / 0.5472 GB, free: 124.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.5173, allocations: 80.56 kB / 0.5473 GB, free: 124.3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.233e-05/0.5173, allocations: 34.16 kB / 0.5473 GB, free: 124.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004948/0.5178, allocations: 0.8518 MB / 0.5481 GB, free: 123.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.5179, allocations: 30.56 kB / 0.5482 GB, free: 123.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.392e-06/0.5179, allocations: 0 / 0.5482 GB, free: 123.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=13): time 0.0009281/0.5188, allocations: 160.2 kB / 0.5483 GB, free: 123.2 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.859e-05/0.5188, allocations: 58.86 kB / 0.5484 GB, free: 123.1 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.595e-05/0.5189, allocations: 102.7 kB / 0.5485 GB, free: 123 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.393e-05/0.5189, allocations: 25.7 kB / 0.5485 GB, free: 123 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.033e-05/0.519, allocations: 107 kB / 0.5486 GB, free: 122.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.435e-05/0.519, allocations: 49.58 kB / 0.5486 GB, free: 122.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.115e-06/0.519, allocations: 0 / 0.5486 GB, free: 122.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 4.194e-05/0.5191, allocations: 321.9 kB / 0.549 GB, free: 122.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.121e-05/0.5191, allocations: 28.77 kB / 0.549 GB, free: 122.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.195e-05/0.5192, allocations: 61.42 kB / 0.549 GB, free: 122.5 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007459/0.5199, allocations: 94.75 kB / 0.5491 GB, free: 122.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5199, allocations: 1.5 kB / 0.5491 GB, free: 122.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0008864/0.5208, allocations: 194.1 kB / 0.5493 GB, free: 122.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.5208, allocations: 3.312 kB / 0.5493 GB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.5209, allocations: 2.438 kB / 0.5493 GB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.5209, allocations: 1.312 kB / 0.5493 GB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.521, allocations: 33.8 kB / 0.5494 GB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.521, allocations: 11.92 kB / 0.5494 GB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.85e-05/0.5211, allocations: 9.094 kB / 0.5494 GB, free: 122.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.538e-05/0.5211, allocations: 20.16 kB / 0.5494 GB, free: 122.2 MB / 394.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.146e-05/0.5212, allocations: 108.8 kB / 0.5495 GB, free: 122.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.98e-05/0.5212, allocations: 15.81 kB / 0.5495 GB, free: 122.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001214/0.5225, allocations: 345.3 kB / 0.5498 GB, free: 121.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-05/0.5225, allocations: 7.984 kB / 0.5498 GB, free: 121.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.5225, allocations: 0 / 0.5498 GB, free: 121.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.5225, allocations: 0 / 0.5498 GB, free: 121.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009882/0.5235, allocations: 0.4902 MB / 0.5503 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.5235, allocations: 4 kB / 0.5503 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.429e-05/0.5236, allocations: 23.92 kB / 0.5504 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5236, allocations: 4 kB / 0.5504 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.311e-05/0.5236, allocations: 2.062 kB / 0.5504 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.5236, allocations: 4 kB / 0.5504 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.5236, allocations: 0 / 0.5504 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007572/0.5244, allocations: 307.2 kB / 0.5507 GB, free: 120.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.623e-05/0.5245, allocations: 105 kB / 0.5508 GB, free: 120.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.333e-05/0.5245, allocations: 4 kB / 0.5508 GB, free: 120.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.5246, allocations: 15.83 kB / 0.5508 GB, free: 120.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.117e-05/0.5247, allocations: 4 kB / 0.5508 GB, free: 120.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.5247, allocations: 15.92 kB / 0.5508 GB, free: 120.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.689e-05/0.5247, allocations: 87.28 kB / 0.5509 GB, free: 120.6 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004705/0.5252, allocations: 99.86 kB / 0.551 GB, free: 120.5 MB / 394.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.0004333/0.5256, allocations: 213.2 kB / 0.5512 GB, free: 120.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001578/0.5258, allocations: 103.9 kB / 0.5513 GB, free: 120.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.5258, allocations: 0 / 0.5513 GB, free: 120.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.5259, allocations: 78.16 kB / 0.5514 GB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.5263, allocations: 37.78 kB / 0.5514 GB, free: 120.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.5266, allocations: 159.4 kB / 0.5515 GB, free: 119.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002459/0.5269, allocations: 0.7511 MB / 0.5523 GB, free: 119.2 MB / 394.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5269, allocations: 0 / 0.5523 GB, free: 119.2 MB / 394.7 MB Notification: Performance of Templates: time 0.005975/0.5328, allocations: 3.342 MB / 0.5555 GB, free: 115.8 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Incompressible.Examples.TestGlycol.makefile make -j1 -f Modelica_3.2.2_Modelica.Media.Incompressible.Examples.TestGlycol.makefile clang -fPIC -falign-functions -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_2_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.2_Modelica.Media.Incompressible.Examples.TestGlycol.o Modelica_3.2.2_Modelica.Media.Incompressible.Examples.TestGlycol.c clang -fPIC -falign-functions -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_3_2_2_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.2_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o Modelica_3.2.2_Modelica.Media.Incompressible.Examples.TestGlycol_functions.c Modelica_3.2.2_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.2_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.2_Modelica.Media.Incompressible.Examples.TestGlycol_functions.o] Error 1