Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr FCSys_FCSys.Characteristics.Examples.LatentHeat.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.LatentHeat,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_LatentHeat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(FCSys.Characteristics.Examples.LatentHeat,fileNamePrefix="FCSys_FCSys_Characteristics_Examples_LatentHeat",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.01538/0.01538, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1624/0.1624, allocations: 17.62 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.667/1.667, allocations: 170.8 MB / 209.5 MB, free: 4 kB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001735/0.001735, allocations: 109.4 kB / 253.6 MB, free: 8.305 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004094/0.0004094, allocations: 12 kB / 307.5 MB, free: 2.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3093, allocations: 43.29 MB / 350.8 MB, free: 36.07 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4283/0.7376, allocations: 110.1 MB / 461 MB, free: 45.2 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003293/0.7381, allocations: 79.98 kB / 461 MB, free: 45.2 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05778/0.7959, allocations: 20.79 MB / 481.8 MB, free: 41.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.7959, allocations: 4 kB / 481.8 MB, free: 41.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.7959, allocations: 3.938 kB / 481.8 MB, free: 41.31 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007077/0.7966, allocations: 441.7 kB / 482.3 MB, free: 40.88 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.7967, allocations: 7.781 kB / 482.3 MB, free: 40.88 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.802e-05/0.7967, allocations: 42.42 kB / 482.3 MB, free: 40.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007902/0.8047, allocations: 1.32 MB / 483.6 MB, free: 40.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001277/0.8048, allocations: 167 kB / 483.8 MB, free: 40 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.714e-05/0.8049, allocations: 7.781 kB / 483.8 MB, free: 40 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.546e-05/0.8049, allocations: 8.234 kB / 483.8 MB, free: 40 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000531/0.8055, allocations: 247 kB / 484 MB, free: 39.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.8055, allocations: 0 / 484 MB, free: 39.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.557e-05/0.8055, allocations: 3.5 kB / 484.1 MB, free: 39.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.8055, allocations: 4 kB / 484.1 MB, free: 39.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.8061, allocations: 241.8 kB / 484.3 MB, free: 39.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000972/0.8071, allocations: 0.602 MB / 484.9 MB, free: 39.38 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006481/0.8077, allocations: 315.4 kB / 485.2 MB, free: 39.29 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.8078, allocations: 3.188 kB / 485.2 MB, free: 39.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.136e-05/0.8078, allocations: 38.5 kB / 485.2 MB, free: 39.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.8078, allocations: 0 / 485.2 MB, free: 39.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.001151/0.809, allocations: 0.508 MB / 485.7 MB, free: 39.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.809, allocations: 51.41 kB / 485.8 MB, free: 39.01 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.897e-05/0.8091, allocations: 96.58 kB / 485.9 MB, free: 38.92 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.8091, allocations: 29.58 kB / 485.9 MB, free: 38.89 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.8092, allocations: 88.08 kB / 486 MB, free: 38.8 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/0.8092, allocations: 23.48 kB / 486 MB, free: 38.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.72e-05/0.8092, allocations: 0 / 486 MB, free: 38.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.509e-05/0.8093, allocations: 318.7 kB / 486.3 MB, free: 38.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003314/0.8096, allocations: 153.4 kB / 486.5 MB, free: 38.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.81, allocations: 150.8 kB / 486.6 MB, free: 38.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003238/0.8103, allocations: 147 kB / 486.8 MB, free: 38.35 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.8103, allocations: 0 / 486.8 MB, free: 38.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0007654/0.8111, allocations: 363.2 kB / 487.1 MB, free: 38.23 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.8111, allocations: 3.812 kB / 487.1 MB, free: 38.23 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.8111, allocations: 0 / 487.1 MB, free: 38.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.8111, allocations: 3.844 kB / 487.1 MB, free: 38.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01834/0.8295, allocations: 2.03 MB / 489.2 MB, free: 37.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002403/0.8319, allocations: 1.113 MB / 490.3 MB, free: 36.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002471/0.8322, allocations: 38.69 kB / 490.3 MB, free: 36.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.228e-05/0.8323, allocations: 23.47 kB / 490.3 MB, free: 36.83 MB / 330.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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.8324, allocations: 114 kB / 490.5 MB, free: 36.72 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.8325, allocations: 3.906 kB / 490.5 MB, free: 36.71 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001899/0.8344, allocations: 0.706 MB / 491.2 MB, free: 36.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.8344, allocations: 3.844 kB / 491.2 MB, free: 36.46 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.8344, allocations: 0 / 491.2 MB, free: 36.46 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.8344, allocations: 0 / 491.2 MB, free: 36.46 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.8348, allocations: 305.8 kB / 491.5 MB, free: 36.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.8348, allocations: 0 / 491.5 MB, free: 36.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001837/0.835, allocations: 50.33 kB / 491.5 MB, free: 36.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01533/0.8503, allocations: 1.898 MB / 493.4 MB, free: 35.67 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.8505, allocations: 13.77 kB / 493.4 MB, free: 35.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002115/0.8526, allocations: 1.015 MB / 494.4 MB, free: 35 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.8527, allocations: 0 / 494.4 MB, free: 35 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001696/0.8544, allocations: 0.6962 MB / 495.1 MB, free: 34.7 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.8544, allocations: 84.77 kB / 495.2 MB, free: 34.6 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.65e-05/0.8545, allocations: 3.312 kB / 495.2 MB, free: 34.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002614/0.8547, allocations: 36.59 kB / 495.3 MB, free: 34.59 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.107e-05/0.8548, allocations: 15.47 kB / 495.3 MB, free: 34.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.392e-05/0.8549, allocations: 14.42 kB / 495.3 MB, free: 34.58 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.504e-05/0.8549, allocations: 89.27 kB / 495.4 MB, free: 34.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8549, allocations: 0 / 495.4 MB, free: 34.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005025/0.8554, allocations: 71.08 kB / 495.5 MB, free: 34.48 MB / 330.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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002595/0.858, allocations: 1.523 MB / 497 MB, free: 33.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01986/0.8779, allocations: 2.486 MB / 499.5 MB, free: 32.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.878, allocations: 3.875 kB / 499.5 MB, free: 32.85 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.8797, allocations: 401.6 kB / 499.9 MB, free: 32.73 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.88, allocations: 15.83 kB / 499.9 MB, free: 32.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002637/0.8827, allocations: 1.176 MB / 0.4893 GB, free: 31.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001955/0.8829, allocations: 0.7097 MB / 0.49 GB, free: 31.11 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.8831, allocations: 16.98 kB / 0.49 GB, free: 31.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.865e-05/0.8832, allocations: 38.67 kB / 0.4901 GB, free: 31.06 MB / 330.7 MB Notification: Performance of SimCode: time 6.112e-06/0.8832, allocations: 0 / 0.4901 GB, free: 31.06 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.9024, allocations: 5.735 MB / 0.4957 GB, free: 25.34 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000171/0.9027, allocations: 195.4 kB / 0.4958 GB, free: 25.09 MB / 330.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_LatentHeat.o FCSys_FCSys_Characteristics_Examples_LatentHeat.c In file included from FCSys_FCSys_Characteristics_Examples_LatentHeat.c:7: In file included from ./FCSys_FCSys_Characteristics_Examples_LatentHeat_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_LatentHeat.c:196:80: error: use of undeclared identifier 'T_lim_c' tmp6 = Less(data->localData[0]->realVars[11] /* T variable */,real_array_get(T_lim_c, 1, ((modelica_integer) 2))); ^ FCSys_FCSys_Characteristics_Examples_LatentHeat.c:211:93: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp8, 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_LatentHeat.c:211:181: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp8, 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_LatentHeat.c:211:278: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp8, 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_LatentHeat.c:225:93: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp9, 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_LatentHeat.c:225:181: error: use of undeclared identifier 'b_v' array_alloc_scalar_real_array(&tmp9, 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_LatentHeat.c:286:80: error: use of undeclared identifier 'T_lim_c' tmp0 = Less(data->localData[0]->realVars[11] /* T variable */,real_array_get(T_lim_c, 1, ((modelica_integer) 2))); ^ 2 warnings and 7 errors generated. make: *** [: FCSys_FCSys_Characteristics_Examples_LatentHeat.o] Error 1