Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.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.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 175.1 kB / 8.13 MB, free: 0.8789 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 221.4 MB / 229.9 MB, free: 13.52 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 102.2 kB / 280.8 MB, free: 10.51 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 9.047e-06/9.067e-06, allocations: 0 / 336.5 MB, free: 2.809 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1436/0.1436, allocations: 50.41 MB / 386.9 MB, free: 360 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6732/0.8169, allocations: 185.8 MB / 0.5593 GB, free: 133.7 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.8171, allocations: 66.78 kB / 0.5594 GB, free: 133.7 MB / 418.8 MB Notification: Performance of FrontEnd: time 0.06803/0.8851, allocations: 36.19 MB / 0.5947 GB, free: 100.6 MB / 418.8 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.8852, allocations: 0 / 0.5947 GB, free: 100.6 MB / 418.8 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.000572/0.8858, allocations: 462 kB / 0.5952 GB, free: 100.1 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.8858, allocations: 8.031 kB / 0.5952 GB, free: 100.1 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.913e-05/0.8859, allocations: 11.89 kB / 0.5952 GB, free: 100.1 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.886, allocations: 194.9 kB / 0.5954 GB, free: 99.85 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.8861, allocations: 4.75 kB / 0.5954 GB, free: 99.84 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.8861, allocations: 4 kB / 0.5954 GB, free: 99.84 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.797e-05/0.8861, allocations: 8 kB / 0.5954 GB, free: 99.83 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.778e-05/0.8862, allocations: 59.33 kB / 0.5954 GB, free: 99.76 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.901e-06/0.8862, allocations: 0 / 0.5954 GB, free: 99.76 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.8863, allocations: 5.844 kB / 0.5954 GB, free: 99.76 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.8863, allocations: 3.906 kB / 0.5954 GB, free: 99.75 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.8864, allocations: 155.2 kB / 0.5956 GB, free: 99.56 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.8866, allocations: 65.23 kB / 0.5957 GB, free: 99.48 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.927e-05/0.8867, allocations: 21.78 kB / 0.5957 GB, free: 99.45 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008967/0.8876, allocations: 2.201 MB / 0.5978 GB, free: 96.75 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.587e-05/0.8876, allocations: 38.56 kB / 0.5979 GB, free: 96.71 MB / 418.8 MB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.8876, allocations: 0 / 0.5979 GB, free: 96.71 MB / 418.8 MB Notification: Performance of matching and sorting (n=6): time 0.0007585/0.8884, allocations: 129.4 kB / 0.598 GB, free: 96.57 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.257e-05/0.8884, allocations: 81.86 kB / 0.5981 GB, free: 96.48 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.616e-05/0.8885, allocations: 101 kB / 0.5982 GB, free: 96.37 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 7.855e-06/0.8885, allocations: 29.7 kB / 0.5982 GB, free: 96.34 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 1.419e-05/0.8885, allocations: 80.14 kB / 0.5983 GB, free: 96.25 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.966e-05/0.8885, allocations: 27.64 kB / 0.5983 GB, free: 96.23 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.607e-06/0.8886, allocations: 7.938 kB / 0.5983 GB, free: 96.22 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 4.486e-05/0.8886, allocations: 310.8 kB / 0.5986 GB, free: 95.91 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.8886, allocations: 8 kB / 0.5986 GB, free: 95.9 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.645e-05/0.8887, allocations: 36.08 kB / 0.5986 GB, free: 95.85 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005703/0.8892, allocations: 83.89 kB / 0.5987 GB, free: 95.77 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.8892, allocations: 4 kB / 0.5987 GB, free: 95.77 MB / 418.8 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0006331/0.8899, allocations: 145.4 kB / 0.5989 GB, free: 95.62 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.8899, allocations: 4 kB / 0.5989 GB, free: 95.61 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.8899, allocations: 4 kB / 0.5989 GB, free: 95.61 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.8899, allocations: 0 / 0.5989 GB, free: 95.61 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.89, allocations: 20.86 kB / 0.5989 GB, free: 95.59 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/0.89, allocations: 6.312 kB / 0.5989 GB, free: 95.59 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.805e-05/0.8901, allocations: 3.906 kB / 0.5989 GB, free: 95.58 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/0.8901, allocations: 4 kB / 0.5989 GB, free: 95.58 MB / 418.8 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 4.595e-05/0.8902, allocations: 109 kB / 0.599 GB, free: 95.46 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.8902, allocations: 8.094 kB / 0.599 GB, free: 95.46 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007965/0.891, allocations: 203.4 kB / 0.5992 GB, free: 95.26 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.891, allocations: 4 kB / 0.5992 GB, free: 95.25 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.891, allocations: 0 / 0.5992 GB, free: 95.25 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.891, allocations: 0 / 0.5992 GB, free: 95.25 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.145e-05/0.8911, allocations: 155.1 kB / 0.5994 GB, free: 95.07 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.8911, allocations: 0 / 0.5994 GB, free: 95.07 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.402e-05/0.8912, allocations: 11.98 kB / 0.5994 GB, free: 95.05 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.8912, allocations: 4 kB / 0.5994 GB, free: 95.05 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.8912, allocations: 0 / 0.5994 GB, free: 95.05 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.8912, allocations: 2.031 kB / 0.5994 GB, free: 95.05 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.8912, allocations: 7.984 kB / 0.5994 GB, free: 95.04 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007182/0.892, allocations: 217.2 kB / 0.5996 GB, free: 94.8 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.086e-05/0.892, allocations: 95.33 kB / 0.5997 GB, free: 94.7 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.892, allocations: 7.906 kB / 0.5997 GB, free: 94.69 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.816e-05/0.8921, allocations: 0 / 0.5997 GB, free: 94.69 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.8921, allocations: 7.984 kB / 0.5997 GB, free: 94.68 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-06/0.8922, allocations: 0 / 0.5997 GB, free: 94.68 MB / 418.8 MB Notification: Performance of sort global known variables: time 2.934e-05/0.8922, allocations: 91.34 kB / 0.5998 GB, free: 94.59 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.0005636/0.8928, allocations: 187.7 kB / 0.6 GB, free: 94.41 MB / 418.8 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.0006797/0.8935, allocations: 343.7 kB / 0.6003 GB, free: 94.07 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 9.832e-05/0.8936, allocations: 39.92 kB / 0.6003 GB, free: 94.03 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.8936, allocations: 0 / 0.6003 GB, free: 94.03 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.8936, allocations: 20 kB / 0.6003 GB, free: 94.01 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.8938, allocations: 18.14 kB / 0.6004 GB, free: 94 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02292/0.9167, allocations: 12.08 MB / 0.6122 GB, free: 81.88 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.9169, allocations: 0.7227 MB / 0.6129 GB, free: 81.13 MB / 418.8 MB Notification: Performance of SimCode: time 9.42e-07/0.9169, allocations: 0 / 0.6129 GB, free: 81.13 MB / 418.8 MB Notification: Performance of Templates: time 0.006691/0.9236, allocations: 3.605 MB / 0.6164 GB, free: 77.55 MB / 418.8 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.makefile make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.makefile clang -fPIC -falign-functions -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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_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_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.o Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T.c clang -fPIC -falign-functions -Os -march=native "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -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_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_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.o Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:307:16: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if((_a == _c)) ~~~^~~~~ Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:307:16: note: remove extraneous parentheses around the comparison to silence this warning if((_a == _c)) ~ ^ ~ Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:307:16: note: use '=' to turn this equality comparison into an assignment if((_a == _c)) ^~ = Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:686: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.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.c:686: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_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T_functions.o] Error 1