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.001254/0.001254, allocations: 173.6 kB / 7.645 MB, free: 1.426 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/FCSys 0.2.6/package.mo): time 0.1686/0.1686, allocations: 17.63 MB / 25.7 MB, free: 0.5117 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.761/1.761, allocations: 170.6 MB / 201.3 MB, free: 4.586 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.001698/0.001698, allocations: 125 kB / 245.1 MB, free: 13.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.937e-05/1.939e-05, allocations: 4 kB / 294.7 MB, free: 11.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2983, allocations: 43.3 MB / 338 MB, free: 37.61 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.4396, allocations: 109.4 MB / 447.4 MB, free: 11.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.4399, allocations: 71.97 kB / 447.5 MB, free: 11.56 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3415/0.7814, allocations: 20.58 MB / 468 MB, free: 106.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.7815, allocations: 0 / 468 MB, free: 106.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.7815, allocations: 1.406 kB / 468 MB, free: 106.5 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0008515/0.7824, allocations: 435.3 kB / 468.5 MB, free: 106.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.639e-05/0.7824, allocations: 14 kB / 468.5 MB, free: 106.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007916/0.7904, allocations: 1.323 MB / 469.8 MB, free: 105.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001467/0.7905, allocations: 163.6 kB / 470 MB, free: 105.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.7906, allocations: 4.688 kB / 470 MB, free: 105.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.579e-05/0.7906, allocations: 7.312 kB / 470 MB, free: 105.3 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003058/0.7909, allocations: 147.9 kB / 470.1 MB, free: 105.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.7912, allocations: 176 kB / 470.3 MB, free: 105.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.7912, allocations: 0 / 470.3 MB, free: 105.1 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.728e-05/0.7913, allocations: 0 / 470.3 MB, free: 105.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.7913, allocations: 3.844 kB / 470.3 MB, free: 105.1 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008195/0.7921, allocations: 0.5251 MB / 470.8 MB, free: 104.7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.7924, allocations: 218.5 kB / 471 MB, free: 104.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.7926, allocations: 107.6 kB / 471.1 MB, free: 104.6 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.7926, allocations: 1.219 kB / 471.1 MB, free: 104.6 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.541e-05/0.7926, allocations: 30.56 kB / 471.2 MB, free: 104.6 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.7926, allocations: 0 / 471.2 MB, free: 104.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.03315/0.8258, allocations: 4.625 MB / 475.8 MB, free: 102.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.765e-05/0.8259, allocations: 67.19 kB / 475.9 MB, free: 102.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.854e-05/0.826, allocations: 92.77 kB / 476 MB, free: 102.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.826, allocations: 25.7 kB / 476 MB, free: 102.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.247e-05/0.826, allocations: 84.14 kB / 476.1 MB, free: 102.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.914e-05/0.8261, allocations: 23.19 kB / 476.1 MB, free: 102.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.037e-05/0.8261, allocations: 0 / 476.1 MB, free: 102.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.05e-05/0.8262, allocations: 326.5 kB / 476.4 MB, free: 102.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.8263, allocations: 83.81 kB / 476.5 MB, free: 102.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.8264, allocations: 97.98 kB / 476.6 MB, free: 102.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03243/0.8588, allocations: 4.487 MB / 481.1 MB, free: 97.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.8589, allocations: 0 / 481.1 MB, free: 97.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.03279/0.8917, allocations: 4.633 MB / 485.7 MB, free: 93.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.8918, allocations: 4.781 kB / 485.7 MB, free: 93.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.8918, allocations: 256 / 485.7 MB, free: 93.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.8918, allocations: 7.984 kB / 485.7 MB, free: 93.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04428/0.9361, allocations: 5.477 MB / 491.2 MB, free: 87.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01526/0.9514, allocations: 2.615 MB / 493.8 MB, free: 85.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.9518, allocations: 36 kB / 493.8 MB, free: 85.01 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.849e-05/0.9519, allocations: 19.97 kB / 493.9 MB, free: 84.99 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in equation system with 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 (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.0002465/0.9522, allocations: 108.9 kB / 494 MB, free: 84.88 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03324/0.9854, allocations: 4.633 MB / 498.6 MB, free: 80.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.663e-05/0.9856, allocations: 7.906 kB / 498.6 MB, free: 80.22 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03247/1.018, allocations: 4.666 MB / 0.4915 GB, free: 75.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-05/1.018, allocations: 4 kB / 0.4915 GB, free: 75.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/1.018, allocations: 4 kB / 0.4915 GB, free: 75.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/1.018, allocations: 5.016 kB / 0.4915 GB, free: 75.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003692/1.019, allocations: 270.5 kB / 0.4918 GB, free: 75.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/1.019, allocations: 0 / 0.4918 GB, free: 75.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001894/1.019, allocations: 47.89 kB / 0.4918 GB, free: 75.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/1.02, allocations: 304.3 kB / 0.4921 GB, free: 74.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/1.02, allocations: 7.984 kB / 0.4921 GB, free: 74.89 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0156/1.036, allocations: 2.858 MB / 0.4949 GB, free: 72 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/1.036, allocations: 0 / 0.4949 GB, free: 72 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03157/1.067, allocations: 4.673 MB / 0.4995 GB, free: 67.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.035e-05/1.067, allocations: 85.05 kB / 0.4995 GB, free: 67.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.59e-05/1.067, allocations: 3.984 kB / 0.4995 GB, free: 67.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/1.068, allocations: 30.14 kB / 0.4996 GB, free: 67.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.021e-05/1.068, allocations: 19.97 kB / 0.4996 GB, free: 67.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/1.068, allocations: 15.98 kB / 0.4996 GB, free: 67.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.778e-05/1.068, allocations: 83.28 kB / 0.4997 GB, free: 67.05 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.068, allocations: 0 / 0.4997 GB, free: 67.05 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005047/1.068, allocations: 63.89 kB / 0.4997 GB, free: 66.99 MB / 346.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 (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.0329/1.101, allocations: 5.434 MB / 0.505 GB, free: 61.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.04447/1.146, allocations: 5.797 MB / 0.5107 GB, free: 55.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/1.146, allocations: 4 kB / 0.5107 GB, free: 55.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/1.147, allocations: 334.7 kB / 0.511 GB, free: 55.4 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/1.147, allocations: 11.88 kB / 0.511 GB, free: 55.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00082/1.148, allocations: 272.9 kB / 0.5113 GB, free: 55.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/1.149, allocations: 0.6963 MB / 0.512 GB, free: 54.37 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001225/1.149, allocations: 28.19 kB / 0.512 GB, free: 54.35 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.909e-05/1.149, allocations: 31.41 kB / 0.512 GB, free: 54.32 MB / 346.7 MB Notification: Performance of SimCode: time 1.613e-06/1.149, allocations: 0 / 0.512 GB, free: 54.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/1.175, allocations: 4.83 MB / 0.5168 GB, free: 49.52 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002516/1.176, allocations: 124.8 kB / 0.5169 GB, free: 49.33 MB / 346.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=FCSys_FCSys_Characteristics_Examples_LatentHeat -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o FCSys_FCSys_Characteristics_Examples_LatentHeat_FMU.o FCSys_FCSys_Characteristics_Examples_LatentHeat_FMU.c In file included from FCSys_FCSys_Characteristics_Examples_LatentHeat_FMU.c:9: In file included from include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from FCSys_FCSys_Characteristics_Examples_LatentHeat_FMU.c:54: include/fmi2/fmu2_model_interface.c:73:11: warning: enumeration value 'modelSlaveInitialized' not handled in switch [-Wswitch] switch (comp->state) ^ include/fmi2/fmu2_model_interface.c:162:16: warning: passing 'char **' to parameter of type 'const char **' discards qualifiers in nested pointer types [-Wincompatible-pointer-types-discards-qualifiers] GC_vasprintf(&str, msg, args); ^~~~ include/util/modelica_string.h:71:31: note: passing argument to parameter 'strp' here int GC_vasprintf(const char **strp, const char *fmt, va_list ap); ^ 4 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -Iinclude/ -Iinclude/fmi2 -I. -DOMC_MODEL_PREFIX=FCSys_FCSys_Characteristics_Examples_LatentHeat -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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 include/openmodelica.h:69: In file included from include/openmodelica_types.h:110: include/gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ include/gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ FCSys_FCSys_Characteristics_Examples_LatentHeat.c:179:65: error: use of undeclared identifier '$PT_lim_c$lB2$rB' tmp6 = Less(data->localData[0]->realVars[11] /* T variable */,$PT_lim_c$lB2$rB); ^ FCSys_FCSys_Characteristics_Examples_LatentHeat.c:194:78: error: use of undeclared identifier '$Pb_v$lB2$c3$rB' array_alloc_scalar_real_array(&tmp8, 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_LatentHeat.c:194:111: error: use of undeclared identifier '$Pb_v$lB2$c2$rB' array_alloc_scalar_real_array(&tmp8, 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_LatentHeat.c:194:153: error: use of undeclared identifier '$Pb_v$lB2$c1$rB' array_alloc_scalar_real_array(&tmp8, 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_LatentHeat.c:208:78: error: use of undeclared identifier '$Pb_v$lB1$c2$rB' array_alloc_scalar_real_array(&tmp9, 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_LatentHeat.c:208:111: error: use of undeclared identifier '$Pb_v$lB1$c1$rB' array_alloc_scalar_real_array(&tmp9, 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_LatentHeat.c:269:65: error: use of undeclared identifier '$PT_lim_c$lB2$rB' tmp0 = Less(data->localData[0]->realVars[11] /* T variable */,$PT_lim_c$lB2$rB); ^ 2 warnings and 7 errors generated. make: *** [: FCSys_FCSys_Characteristics_Examples_LatentHeat.o] Error 1