Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Characteristics.Examples.SaturationPressure.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: "" <> buildModelFMU(FCSys.Characteristics.Examples.SaturationPressure,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_SaturationPressure",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Characteristics.Examples.SaturationPressure,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_SaturationPressure",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007854/0.007854, allocations: 166.3 kB / 15.11 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1197/0.1197, allocations: 17.63 MB / 33.47 MB, free: 1.418 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.531/1.531, allocations: 170.8 MB / 209.5 MB, free: 15.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001817/0.001817, allocations: 110.6 kB / 253.6 MB, free: 8.285 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004312/0.0004315, allocations: 12 kB / 307.5 MB, free: 2.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3079, allocations: 43.3 MB / 350.8 MB, free: 36.05 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.716/10.02, allocations: 3.626 GB / 3.969 GB, free: 48.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000367/10.02, allocations: 81.34 kB / 3.969 GB, free: 48.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1089/10.13, allocations: 48.74 MB / 4.016 GB, free: 4.523 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.034e-06/10.13, allocations: 0 / 4.016 GB, free: 4.523 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.806e-06/10.13, allocations: 0 / 4.016 GB, free: 4.523 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0009466/10.13, allocations: 482.8 kB / 4.017 GB, free: 4.004 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/10.13, allocations: 15.97 kB / 4.017 GB, free: 3.988 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.193e-05/10.13, allocations: 46.47 kB / 4.017 GB, free: 3.934 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01427/10.15, allocations: 2.449 MB / 4.019 GB, free: 1.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/10.15, allocations: 163.4 kB / 4.019 GB, free: 1.281 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/10.15, allocations: 7.953 kB / 4.019 GB, free: 1.273 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/10.15, allocations: 7.938 kB / 4.019 GB, free: 1.266 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006783/10.15, allocations: 333.2 kB / 4.02 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.197e-06/10.15, allocations: 0 / 4.02 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.339e-05/10.15, allocations: 0 / 4.02 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/10.15, allocations: 0 / 4.02 GB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005816/10.15, allocations: 279.7 kB / 4.02 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2505/10.4, allocations: 0.7278 MB / 4.021 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/10.4, allocations: 439.3 kB / 4.021 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/10.4, allocations: 2.547 kB / 4.021 GB, free: 114.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/10.4, allocations: 35.72 kB / 4.021 GB, free: 114.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 3.787e-06/10.4, allocations: 0 / 4.021 GB, free: 114.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.001875/10.4, allocations: 0.689 MB / 4.022 GB, free: 114.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/10.4, allocations: 54.88 kB / 4.022 GB, free: 114.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.605e-05/10.4, allocations: 91.59 kB / 4.022 GB, free: 114.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.595e-05/10.4, allocations: 29.2 kB / 4.022 GB, free: 114.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.68e-05/10.4, allocations: 88.91 kB / 4.022 GB, free: 114 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.808e-05/10.4, allocations: 17.97 kB / 4.022 GB, free: 114 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/10.4, allocations: 0.8125 kB / 4.022 GB, free: 114 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.072e-05/10.41, allocations: 315.8 kB / 4.022 GB, free: 113.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005988/10.41, allocations: 218.5 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006319/10.41, allocations: 220.7 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005961/10.41, allocations: 200 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/10.41, allocations: 2.562 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001305/10.41, allocations: 493 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/10.41, allocations: 5.531 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/10.41, allocations: 7.141 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/10.41, allocations: 0.625 kB / 4.023 GB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0317/10.44, allocations: 3.92 MB / 4.027 GB, free: 113.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004347/10.44, allocations: 2.167 MB / 4.029 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/10.44, allocations: 43.52 kB / 4.029 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.047e-05/10.44, allocations: 36.34 kB / 4.029 GB, free: 112.5 MB / 394.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * 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.0001389/10.45, allocations: 114.1 kB / 4.03 GB, free: 112.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.093e-05/10.45, allocations: 0 / 4.03 GB, free: 112.4 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003655/10.45, allocations: 1.205 MB / 4.031 GB, free: 112.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/10.45, allocations: 3.844 kB / 4.031 GB, free: 112.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/10.45, allocations: 3.422 kB / 4.031 GB, free: 112.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/10.45, allocations: 0 / 4.031 GB, free: 112.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003892/10.45, allocations: 394.7 kB / 4.031 GB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/10.45, allocations: 2.969 kB / 4.031 GB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/10.45, allocations: 26.61 kB / 4.031 GB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02576/10.48, allocations: 3.408 MB / 4.035 GB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/10.48, allocations: 16.52 kB / 4.035 GB, free: 112.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004207/10.48, allocations: 2.07 MB / 4.037 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/10.48, allocations: 0 / 4.037 GB, free: 111.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/10.48, allocations: 1.171 MB / 4.038 GB, free: 110.9 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/10.48, allocations: 88.41 kB / 4.038 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.774e-05/10.48, allocations: 3.875 kB / 4.038 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003176/10.48, allocations: 42.81 kB / 4.038 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.365e-05/10.48, allocations: 16.95 kB / 4.038 GB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/10.48, allocations: 27.53 kB / 4.038 GB, free: 110.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.448e-05/10.48, allocations: 82.12 kB / 4.038 GB, free: 110.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/10.48, allocations: 2.125 kB / 4.038 GB, free: 110.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009548/10.48, allocations: 138.3 kB / 4.038 GB, free: 110.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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 4,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005553/10.49, allocations: 2.537 MB / 4.041 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.03748/10.53, allocations: 5.046 MB / 4.045 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/10.53, allocations: 1.781 kB / 4.045 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003064/10.53, allocations: 0.6664 MB / 4.046 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/10.53, allocations: 6.875 kB / 4.046 GB, free: 110 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003422/10.53, allocations: 1.462 MB / 4.048 GB, free: 109.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003491/10.53, allocations: 0.7061 MB / 4.048 GB, free: 108.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001101/10.54, allocations: 14.98 kB / 4.048 GB, free: 108.9 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.11e-05/10.54, allocations: 28.16 kB / 4.048 GB, free: 108.9 MB / 394.7 MB Notification: Performance of SimCode: time 1.754e-06/10.54, allocations: 0 / 4.048 GB, free: 108.9 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03552/10.57, allocations: 16.06 MB / 4.064 GB, free: 104.7 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001707/10.57, allocations: 206.8 kB / 4.064 GB, free: 104.4 MB / 394.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o FCSys_FCSys_Characteristics_Examples_SaturationPressure.o FCSys_FCSys_Characteristics_Examples_SaturationPressure.c In file included from FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:7: In file included from ./FCSys_FCSys_Characteristics_Examples_SaturationPressure_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:152:93: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp4, 4, (modelica_real)0.0, (modelica_real)real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 3)), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 2))) * (2.0), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 1))) * (3.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:152:181: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp4, 4, (modelica_real)0.0, (modelica_real)real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 3)), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 2))) * (2.0), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 1))) * (3.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:152:278: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp4, 4, (modelica_real)0.0, (modelica_real)real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 3)), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 2))) * (2.0), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 2), ((modelica_integer) 1))) * (3.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:166:93: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp5, 3, (modelica_real)0.0, (modelica_real)real_array_get(b_v, 2, ((modelica_integer) 1), ((modelica_integer) 2)), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 1), ((modelica_integer) 1))) * (2.0)); ^ FCSys_FCSys_Characteristics_Examples_SaturationPressure.c:166:181: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp5, 3, (modelica_real)0.0, (modelica_real)real_array_get(b_v, 2, ((modelica_integer) 1), ((modelica_integer) 2)), (modelica_real)(real_array_get(b_v, 2, ((modelica_integer) 1), ((modelica_integer) 1))) * (2.0)); ^ 2 warnings and 5 errors generated. make: *** [: FCSys_FCSys_Characteristics_Examples_SaturationPressure.o] Error 1