Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.247/2.247, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001596/0.001595, allocations: 180.2 kB / 325.5 MB, free: 2.887 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.362/2.362, allocations: 205.4 MB / 0.5764 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 90.45 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.000495, allocations: 14.09 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2218/0.2223, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.436/7.658, allocations: 2.194 GB / 3.093 GB, free: 246.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004129/7.659, allocations: 89.36 kB / 3.093 GB, free: 246.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.3871/8.046, allocations: 96.5 MB / 3.187 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.416e-06/8.046, allocations: 0 / 3.187 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000192/8.046, allocations: 47 kB / 3.187 GB, free: 225.1 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 480 * Number of variables: 480 Notification: Performance of Generate backend data structure: time 0.008396/8.054, allocations: 2.009 MB / 3.189 GB, free: 223.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/8.055, allocations: 15.7 kB / 3.189 GB, free: 223.8 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001262/8.056, allocations: 267.1 kB / 3.189 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02301/8.079, allocations: 1.796 MB / 3.191 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/8.082, allocations: 1.039 MB / 3.192 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001763/8.083, allocations: 138.5 kB / 3.192 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001028/8.084, allocations: 181.4 kB / 3.193 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01501/8.099, allocations: 2.918 MB / 3.195 GB, free: 221.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.751e-05/8.099, allocations: 3.938 kB / 3.195 GB, free: 221.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005605/8.099, allocations: 76.66 kB / 3.195 GB, free: 221.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.736e-05/8.099, allocations: 46.47 kB / 3.195 GB, free: 221.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0226/8.122, allocations: 4.01 MB / 3.199 GB, free: 220.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02531/8.147, allocations: 6.246 MB / 3.206 GB, free: 217.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/8.164, allocations: 2.753 MB / 3.208 GB, free: 217 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/8.165, allocations: 0.5026 MB / 3.209 GB, free: 216.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008856/8.174, allocations: 1.632 MB / 3.21 GB, free: 216 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=192): time 6.623e-06/8.174, allocations: 3.5 kB / 3.21 GB, free: 216 MB / 0.8855 GB Notification: Performance of matching and sorting (n=192): time 0.02713/8.202, allocations: 4.059 MB / 3.214 GB, free: 215 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/8.202, allocations: 263.8 kB / 3.214 GB, free: 214.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001995/8.204, allocations: 0.7556 MB / 3.215 GB, free: 214.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0009155/8.205, allocations: 65.62 kB / 3.215 GB, free: 214.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008133/8.206, allocations: 0.6278 MB / 3.216 GB, free: 214.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001424/8.207, allocations: 0.6189 MB / 3.217 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004259/8.208, allocations: 29.5 kB / 3.217 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002032/8.208, allocations: 368.9 kB / 3.217 GB, free: 213.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00753/8.215, allocations: 1.12 MB / 3.218 GB, free: 213.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007771/8.223, allocations: 1.314 MB / 3.219 GB, free: 212.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007565/8.231, allocations: 1.166 MB / 3.22 GB, free: 211.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.058e-05/8.231, allocations: 0 / 3.22 GB, free: 211.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.01739/8.248, allocations: 2.801 MB / 3.223 GB, free: 209.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/8.248, allocations: 4 kB / 3.223 GB, free: 209 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/8.248, allocations: 4 kB / 3.223 GB, free: 209 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009965/8.249, allocations: 88.86 kB / 3.223 GB, free: 209 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006949/8.256, allocations: 0.5422 MB / 3.224 GB, free: 208.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002725/8.259, allocations: 1.544 MB / 3.225 GB, free: 206.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005401/8.265, allocations: 302.5 kB / 3.226 GB, free: 206.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000535/8.265, allocations: 87.89 kB / 3.226 GB, free: 206.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (203): * Single equations (assignments): 202 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.001489/8.267, allocations: 381.5 kB / 3.226 GB, free: 206 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005822/8.267, allocations: 138.3 kB / 3.226 GB, free: 205.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01909/8.286, allocations: 3.404 MB / 3.229 GB, free: 202.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.302e-05/8.286, allocations: 20 kB / 3.229 GB, free: 202.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/8.286, allocations: 0 / 3.229 GB, free: 202.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.719e-05/8.286, allocations: 11.95 kB / 3.23 GB, free: 202.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02372/8.31, allocations: 5.561 MB / 3.235 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-05/8.31, allocations: 4 kB / 3.235 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006674/8.317, allocations: 0.5305 MB / 3.235 GB, free: 196.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009057/8.318, allocations: 84.78 kB / 3.236 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006524/8.319, allocations: 63.92 kB / 3.236 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/8.321, allocations: 1.563 MB / 3.237 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/8.321, allocations: 4.219 kB / 3.237 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01703/8.338, allocations: 2.953 MB / 3.24 GB, free: 191.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001978/8.34, allocations: 0.5374 MB / 3.241 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006525/8.341, allocations: 32 kB / 3.241 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00505/8.346, allocations: 247.8 kB / 3.241 GB, free: 190.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005055/8.346, allocations: 125.8 kB / 3.241 GB, free: 190.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003812/8.347, allocations: 79.92 kB / 3.241 GB, free: 190.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001388/8.348, allocations: 0.6529 MB / 3.242 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5e-07/8.348, allocations: 0 / 3.242 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003279/8.352, allocations: 0.6077 MB / 3.242 GB, free: 189.1 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 203 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.01998/8.372, allocations: 4.467 MB / 3.247 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01606/8.388, allocations: 2.85 MB / 3.249 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/8.388, allocations: 0 / 3.249 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.008407/8.396, allocations: 1.607 MB / 3.251 GB, free: 180.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002685/8.399, allocations: 277.3 kB / 3.251 GB, free: 180 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04854/8.448, allocations: 11.96 MB / 3.263 GB, free: 167.7 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009819/8.449, allocations: 1.357 MB / 3.264 GB, free: 166.3 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.005733/8.454, allocations: 0.5462 MB / 3.265 GB, free: 165.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002631/8.457, allocations: 0.7569 MB / 3.265 GB, free: 165 MB / 0.8855 GB Notification: Performance of SimCode: time 1.303e-06/8.457, allocations: 3.938 kB / 3.265 GB, free: 165 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1174/8.574, allocations: 46.29 MB / 3.311 GB, free: 119 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002901/8.575, allocations: 268.3 kB / 3.311 GB, free: 118.7 MB / 0.8855 GB Error: Error building simulator. Build log: clang -Os -fPIC -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 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_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); ^ 2 warnings generated. clang -Os -fPIC -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 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./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); ^ In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/getTimeSpan.c:6:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.o] Error 1