Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.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.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T") [: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.001625/0.001625, allocations: 199.8 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 225.5 MB / 234.4 MB, free: 3.32 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 89.97 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.25e-05/1.306e-05, allocations: 4 kB / 343.1 MB, free: 8.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1312, allocations: 51.47 MB / 394.6 MB, free: 5.199 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4586/0.5899, allocations: 186.6 MB / 0.5676 GB, free: 7.609 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004081/0.5904, allocations: 68.59 kB / 0.5677 GB, free: 7.574 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.3504/0.9408, allocations: 36.5 MB / 0.6033 GB, free: 133.5 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.9408, allocations: 4 kB / 0.6033 GB, free: 133.5 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000856/0.9417, allocations: 471.3 kB / 0.6038 GB, free: 133 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.9418, allocations: 12.66 kB / 0.6038 GB, free: 133 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.9418, allocations: 7.25 kB / 0.6038 GB, free: 133 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.9421, allocations: 184.7 kB / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.9421, allocations: 0 / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.9421, allocations: 10.22 kB / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.037e-05/0.9422, allocations: 13.94 kB / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.9423, allocations: 56.84 kB / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.9423, allocations: 0 / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.9424, allocations: 3.406 kB / 0.604 GB, free: 132.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.9424, allocations: 4 kB / 0.604 GB, free: 132.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000185/0.9426, allocations: 149.2 kB / 0.6042 GB, free: 132.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002562/0.9428, allocations: 76.83 kB / 0.6043 GB, free: 132.5 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.32e-05/0.9429, allocations: 20.19 kB / 0.6043 GB, free: 132.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001207/0.9441, allocations: 2.201 MB / 0.6064 GB, free: 129.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.9441, allocations: 34.03 kB / 0.6065 GB, free: 129.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.9441, allocations: 0 / 0.6065 GB, free: 129.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.0009758/0.9451, allocations: 137.5 kB / 0.6066 GB, free: 129.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.9452, allocations: 84.58 kB / 0.6067 GB, free: 129.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.993e-05/0.9452, allocations: 110.1 kB / 0.6068 GB, free: 129.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.9453, allocations: 25.7 kB / 0.6068 GB, free: 129.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.728e-05/0.9453, allocations: 80.14 kB / 0.6069 GB, free: 129.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.321e-05/0.9453, allocations: 22.81 kB / 0.6069 GB, free: 129.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-06/0.9453, allocations: 0 / 0.6069 GB, free: 129.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.703e-05/0.9454, allocations: 318.2 kB / 0.6072 GB, free: 129.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.275e-05/0.9454, allocations: 6.844 kB / 0.6072 GB, free: 129.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.144e-05/0.9455, allocations: 42.56 kB / 0.6073 GB, free: 129.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000645/0.9461, allocations: 92.2 kB / 0.6073 GB, free: 129.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.9461, allocations: 0 / 0.6073 GB, free: 129.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007017/0.9468, allocations: 145.8 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.9469, allocations: 3.438 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.9469, allocations: 4.062 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.9469, allocations: 3.312 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.883e-05/0.947, allocations: 16.66 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.992e-06/0.947, allocations: 0 / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.227e-05/0.947, allocations: 4.469 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.9471, allocations: 6.734 kB / 0.6075 GB, free: 129.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.754e-05/0.9471, allocations: 104.9 kB / 0.6076 GB, free: 129 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.621e-05/0.9472, allocations: 7.156 kB / 0.6076 GB, free: 129 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008538/0.948, allocations: 202.4 kB / 0.6078 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.948, allocations: 3.5 kB / 0.6078 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.948, allocations: 2.906 kB / 0.6078 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.9481, allocations: 0 / 0.6078 GB, free: 128.9 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.915e-05/0.9482, allocations: 144.3 kB / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.9482, allocations: 4 kB / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.934e-05/0.9483, allocations: 17.31 kB / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.349e-06/0.9483, allocations: 7.219 kB / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.9483, allocations: 0 / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.556e-06/0.9483, allocations: 7.484 kB / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9483, allocations: 0 / 0.608 GB, free: 128.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007633/0.9491, allocations: 214.1 kB / 0.6082 GB, free: 128.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.9491, allocations: 98.58 kB / 0.6083 GB, free: 128.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.9492, allocations: 3.25 kB / 0.6083 GB, free: 128.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.722e-05/0.9492, allocations: 0 / 0.6083 GB, free: 128.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.343e-05/0.9493, allocations: 10.64 kB / 0.6083 GB, free: 128.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.9493, allocations: 11.31 kB / 0.6083 GB, free: 128.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.307e-05/0.9493, allocations: 89.27 kB / 0.6084 GB, free: 128.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006724/0.95, allocations: 177.7 kB / 0.6086 GB, free: 128.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009919/0.951, allocations: 356.3 kB / 0.6089 GB, free: 128.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001187/0.9511, allocations: 40.28 kB / 0.609 GB, free: 128.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.9511, allocations: 0 / 0.609 GB, free: 128.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 5.018e-05/0.9512, allocations: 26.98 kB / 0.609 GB, free: 128.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/0.9514, allocations: 8.531 kB / 0.609 GB, free: 128.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/0.9778, allocations: 12.29 MB / 0.621 GB, free: 123.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.9781, allocations: 0.7165 MB / 0.6217 GB, free: 123 MB / 442.7 MB Notification: Performance of SimCode: time 1.392e-06/0.9781, allocations: 4 kB / 0.6217 GB, free: 123 MB / 442.7 MB Notification: Performance of Templates: time 0.008091/0.9862, allocations: 3.665 MB / 0.6253 GB, free: 121.1 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.makefile make -j1 -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.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_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T -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.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.o Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.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_Examples_SolveOneNonlinearEquation_InverseIncompressible_sh_T -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.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.o Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:334:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((_a == _c)) ~~~^~~~~ Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:334:16: note: remove extraneous parentheses around the comparison to silence this warning if((_a == _c)) ~ ^ ~ Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:334:16: note: use '=' to turn this equality comparison into an assignment if((_a == _c)) ^~ = Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:712: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.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:712: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)))); ^ 1 warning and 2 errors generated. make: *** [: Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.o] Error 1