Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Characteristics.Examples.SurfaceTension.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package FCSys with version 0.2.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(FCSys.Characteristics.Examples.SurfaceTension,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="FCSys_FCSys.Characteristics.Examples.SurfaceTension") translateModel(FCSys.Characteristics.Examples.SurfaceTension,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="FCSys_FCSys.Characteristics.Examples.SurfaceTension") [: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.1+maint.om/package.mo): time 0.001683/0.001682, allocations: 183.8 kB / 7.452 MB, free: 2.52 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.07095/0.07095, allocations: 17.63 MB / 25.49 MB, free: 1.77 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 0.7899/0.7899, allocations: 170.6 MB / 201 MB, free: 9.832 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001398/0.001398, allocations: 110.7 kB / 244.8 MB, free: 9 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.929e-06/4.939e-06, allocations: 0 / 294.1 MB, free: 14.91 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06008/0.06011, allocations: 43.33 MB / 337.4 MB, free: 3.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.2461, allocations: 109.4 MB / 446.8 MB, free: 6.027 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001677/0.2463, allocations: 74.28 kB / 446.9 MB, free: 5.992 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.05365/0.3, allocations: 20.41 MB / 467.3 MB, free: 4.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3, allocations: 4 kB / 467.3 MB, free: 4.461 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004936/0.3005, allocations: 425.3 kB / 467.7 MB, free: 4.008 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3006, allocations: 16.03 kB / 467.7 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01555/0.3161, allocations: 2.786 MB / 470.5 MB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001281/0.3163, allocations: 167 kB / 470.7 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.3163, allocations: 4 kB / 470.7 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.905e-05/0.3164, allocations: 4 kB / 470.7 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003603/0.3167, allocations: 201.7 kB / 470.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003746/0.3171, allocations: 276.3 kB / 471.2 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.3171, allocations: 0 / 471.2 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.3172, allocations: 0 / 471.2 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.3172, allocations: 0 / 471.2 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02306/0.3402, allocations: 3.702 MB / 474.9 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.3419, allocations: 0.5004 MB / 475.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.3422, allocations: 170 kB / 475.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.466e-05/0.3422, allocations: 4 kB / 475.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.64e-05/0.3422, allocations: 30.56 kB / 475.6 MB, free: 12.37 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.3422, allocations: 0 / 475.6 MB, free: 12.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.04714/0.3894, allocations: 7.21 MB / 482.8 MB, free: 5.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.3894, allocations: 55.34 kB / 482.8 MB, free: 5.344 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.192e-05/0.3895, allocations: 96.75 kB / 482.9 MB, free: 5.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.3895, allocations: 25.7 kB / 482.9 MB, free: 5.215 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.605e-05/0.3896, allocations: 84.14 kB / 483 MB, free: 5.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.898e-05/0.3896, allocations: 23.33 kB / 483 MB, free: 5.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.001e-05/0.3897, allocations: 0 / 483 MB, free: 5.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/0.3898, allocations: 318.4 kB / 483.4 MB, free: 4.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002147/0.39, allocations: 158.9 kB / 483.5 MB, free: 4.648 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.3902, allocations: 162.5 kB / 483.7 MB, free: 4.504 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04623/0.4364, allocations: 6.975 MB / 490.6 MB, free: 13.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.4365, allocations: 4 kB / 490.6 MB, free: 13.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.04648/0.483, allocations: 7.215 MB / 497.9 MB, free: 6.797 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.483, allocations: 4 kB / 497.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.483, allocations: 0 / 497.9 MB, free: 6.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.483, allocations: 3.984 kB / 497.9 MB, free: 6.789 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2102/0.6932, allocations: 14.75 MB / 0.5006 GB, free: 94.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03001/0.7233, allocations: 5.986 MB / 0.5065 GB, free: 93.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000406/0.7237, allocations: 50.97 kB / 0.5065 GB, free: 93.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.7238, allocations: 38.06 kB / 0.5065 GB, free: 93.74 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: p_sat:VARIABLE(min = 0.0 unit = "M/(L.T2)" ) "Saturation pressure" type: Real Notification: Model statistics after passing the back-end for initialization: * 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 initialization (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001815/0.724, allocations: 109.7 kB / 0.5066 GB, free: 93.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.79e-05/0.7241, allocations: 6.078 kB / 0.5066 GB, free: 93.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05872/0.7828, allocations: 9.269 MB / 0.5157 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.503e-06/0.7828, allocations: 4.25 kB / 0.5157 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.7828, allocations: 4 kB / 0.5157 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.7829, allocations: 0 / 0.5157 GB, free: 93.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00038/0.7832, allocations: 383.1 kB / 0.5161 GB, free: 93.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.7833, allocations: 0 / 0.5161 GB, free: 93.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/0.7834, allocations: 42.22 kB / 0.5161 GB, free: 93.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003255/0.7867, allocations: 0.8583 MB / 0.517 GB, free: 93.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.7868, allocations: 24.23 kB / 0.517 GB, free: 93.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04139/0.8282, allocations: 7.736 MB / 0.5245 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.8282, allocations: 1.688 kB / 0.5245 GB, free: 92.19 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06713/0.8953, allocations: 9.136 MB / 0.5335 GB, free: 89.01 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.328e-05/0.8954, allocations: 92.89 kB / 0.5335 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.343e-05/0.8954, allocations: 0 / 0.5335 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003507/0.8958, allocations: 48.67 kB / 0.5336 GB, free: 88.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.8959, allocations: 24.69 kB / 0.5336 GB, free: 88.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.691e-05/0.8959, allocations: 32.22 kB / 0.5336 GB, free: 88.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.652e-05/0.896, allocations: 89.67 kB / 0.5337 GB, free: 88.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004216/0.8964, allocations: 83.59 kB / 0.5338 GB, free: 88.79 MB / 378.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 (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002956/0.8967, allocations: 173.2 kB / 0.534 GB, free: 88.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.1554/1.052, allocations: 19.44 MB / 0.553 GB, free: 72.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.052, allocations: 0 / 0.553 GB, free: 72.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002603/1.055, allocations: 0.6278 MB / 0.5536 GB, free: 71.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/1.055, allocations: 11.03 kB / 0.5536 GB, free: 71.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006887/1.056, allocations: 347.3 kB / 0.5539 GB, free: 71.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/1.056, allocations: 0.7349 MB / 0.5546 GB, free: 70.5 MB / 378.7 MB Notification: Performance of SimCode: time 7.51e-07/1.056, allocations: 1.031 kB / 0.5546 GB, free: 70.5 MB / 378.7 MB Notification: Performance of Templates: time 0.007338/1.063, allocations: 6.082 MB / 0.5606 GB, free: 64.5 MB / 378.7 MB make -j1 -f FCSys_FCSys.Characteristics.Examples.SurfaceTension.makefile make -j1 -f FCSys_FCSys.Characteristics.Examples.SurfaceTension.makefile clang -fPIC -O0 -falign-functions -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=FCSys_FCSys_Characteristics_Examples_SurfaceTension -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys.Characteristics.Examples.SurfaceTension.o FCSys_FCSys.Characteristics.Examples.SurfaceTension.c FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:179:78: error: use of undeclared identifier '$Pb_v$lB2$c3$rB' array_alloc_scalar_real_array(&tmp7, 4, (modelica_real)0.0, (modelica_real)$Pb_v$lB2$c3$rB, (modelica_real)($Pb_v$lB2$c2$rB) * (2.0), (modelica_real)($Pb_v$lB2$c1$rB) * (3.0)); ^ FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:179:111: error: use of undeclared identifier '$Pb_v$lB2$c2$rB' array_alloc_scalar_real_array(&tmp7, 4, (modelica_real)0.0, (modelica_real)$Pb_v$lB2$c3$rB, (modelica_real)($Pb_v$lB2$c2$rB) * (2.0), (modelica_real)($Pb_v$lB2$c1$rB) * (3.0)); ^ FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:179:153: error: use of undeclared identifier '$Pb_v$lB2$c1$rB' array_alloc_scalar_real_array(&tmp7, 4, (modelica_real)0.0, (modelica_real)$Pb_v$lB2$c3$rB, (modelica_real)($Pb_v$lB2$c2$rB) * (2.0), (modelica_real)($Pb_v$lB2$c1$rB) * (3.0)); ^ FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:193:78: error: use of undeclared identifier '$Pb_v$lB1$c2$rB' array_alloc_scalar_real_array(&tmp8, 3, (modelica_real)0.0, (modelica_real)$Pb_v$lB1$c2$rB, (modelica_real)($Pb_v$lB1$c1$rB) * (2.0)); ^ FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:193:111: error: use of undeclared identifier '$Pb_v$lB1$c1$rB' array_alloc_scalar_real_array(&tmp8, 3, (modelica_real)0.0, (modelica_real)$Pb_v$lB1$c2$rB, (modelica_real)($Pb_v$lB1$c1$rB) * (2.0)); ^ FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:297:65: error: use of undeclared identifier '$PT_lim_c$lB2$rB' tmp0 = Less(data->localData[0]->realVars[22] /* T variable */,$PT_lim_c$lB2$rB); ^ FCSys_FCSys.Characteristics.Examples.SurfaceTension.c:299:65: error: use of undeclared identifier '$PT_lim_c$lB2$rB' tmp2 = Less(data->localData[0]->realVars[22] /* T variable */,$PT_lim_c$lB2$rB); ^ 7 errors generated. make: *** [: FCSys_FCSys.Characteristics.Examples.SurfaceTension.o] Error 1