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.22/2.22, allocations: 248.5 MB / 261.1 MB, free: 6.086 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001453/0.001453, allocations: 186.4 kB / 320.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.962/1.962, allocations: 205.2 MB / 0.571 GB, free: 11.8 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.00109/0.001089, allocations: 102.7 kB / 0.6754 GB, free: 0.8906 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.78e-05/3.783e-05, allocations: 4 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1996, allocations: 106.2 MB / 0.8907 GB, free: 7.48 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.288/7.488, allocations: 2.194 GB / 3.085 GB, free: 154.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000304/7.488, allocations: 85.95 kB / 3.085 GB, free: 154.5 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.3745/7.863, allocations: 96.17 MB / 3.179 GB, free: 63.77 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.994e-06/7.863, allocations: 0 / 3.179 GB, free: 63.77 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001355/7.863, allocations: 44 kB / 3.179 GB, free: 63.73 MB / 0.8698 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.005319/7.868, allocations: 1.859 MB / 3.181 GB, free: 61.82 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/7.868, allocations: 8.031 kB / 3.181 GB, free: 61.81 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004688/7.869, allocations: 270.1 kB / 3.181 GB, free: 61.54 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02205/7.891, allocations: 1.796 MB / 3.183 GB, free: 59.73 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/7.894, allocations: 1.028 MB / 3.184 GB, free: 58.66 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/7.894, allocations: 143.8 kB / 3.184 GB, free: 58.52 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005002/7.895, allocations: 180 kB / 3.184 GB, free: 58.34 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005954/7.9, allocations: 2.341 MB / 3.186 GB, free: 55.96 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.265e-05/7.901, allocations: 3.984 kB / 3.186 GB, free: 55.95 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003956/7.901, allocations: 76 kB / 3.186 GB, free: 55.88 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.116e-05/7.901, allocations: 48 kB / 3.186 GB, free: 55.83 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007599/7.909, allocations: 2.864 MB / 3.189 GB, free: 52.96 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02289/7.932, allocations: 6.247 MB / 3.195 GB, free: 46.64 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005257/7.937, allocations: 2.007 MB / 3.197 GB, free: 44.62 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002556/7.94, allocations: 1.04 MB / 3.198 GB, free: 43.58 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001094/7.941, allocations: 0.5074 MB / 3.199 GB, free: 42.98 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003198/7.944, allocations: 1.289 MB / 3.2 GB, free: 41.68 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=192): time 5.47e-06/7.944, allocations: 0 / 3.2 GB, free: 41.68 MB / 0.8698 GB Notification: Performance of matching and sorting (n=192): time 0.007075/7.951, allocations: 2.074 MB / 3.202 GB, free: 39.59 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/7.951, allocations: 253.3 kB / 3.202 GB, free: 39.29 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/7.953, allocations: 0.7512 MB / 3.203 GB, free: 38.53 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004237/7.953, allocations: 65.69 kB / 3.203 GB, free: 38.46 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005527/7.954, allocations: 0.6257 MB / 3.204 GB, free: 37.82 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.000706/7.954, allocations: 0.6237 MB / 3.204 GB, free: 37.19 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002635/7.955, allocations: 28 kB / 3.204 GB, free: 37.16 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001115/7.955, allocations: 369.9 kB / 3.205 GB, free: 36.8 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002262/7.957, allocations: 0.785 MB / 3.205 GB, free: 36.01 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002404/7.959, allocations: 0.958 MB / 3.206 GB, free: 35.02 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/7.962, allocations: 0.8258 MB / 3.207 GB, free: 34.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/7.962, allocations: 0 / 3.207 GB, free: 34.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=205) (initialization): time 0.007876/7.97, allocations: 2.113 MB / 3.209 GB, free: 32.07 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/7.97, allocations: 4 kB / 3.209 GB, free: 32.07 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/7.97, allocations: 4.156 kB / 3.209 GB, free: 32.07 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001036/7.971, allocations: 92.7 kB / 3.209 GB, free: 31.97 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006856/7.978, allocations: 0.5461 MB / 3.21 GB, free: 31.43 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002672/7.981, allocations: 1.517 MB / 3.211 GB, free: 29.77 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005398/7.986, allocations: 314.5 kB / 3.212 GB, free: 29.46 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007765/7.987, allocations: 83.91 kB / 3.212 GB, free: 29.38 MB / 0.8698 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 () * 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.0007396/7.988, allocations: 205.1 kB / 3.212 GB, free: 29.17 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006104/7.988, allocations: 138.3 kB / 3.212 GB, free: 29.03 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009957/7.998, allocations: 2.714 MB / 3.215 GB, free: 26.29 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/7.999, allocations: 20 kB / 3.215 GB, free: 26.27 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/7.999, allocations: 0 / 3.215 GB, free: 26.27 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/7.999, allocations: 11.95 kB / 3.215 GB, free: 26.26 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/8.012, allocations: 4.868 MB / 3.219 GB, free: 21.33 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/8.012, allocations: 0 / 3.219 GB, free: 21.33 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006672/8.018, allocations: 0.5305 MB / 3.22 GB, free: 20.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009435/8.019, allocations: 84.78 kB / 3.22 GB, free: 20.71 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006468/8.02, allocations: 71.91 kB / 3.22 GB, free: 20.64 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/8.023, allocations: 1.552 MB / 3.222 GB, free: 18.96 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/8.023, allocations: 3.938 kB / 3.222 GB, free: 18.95 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007479/8.03, allocations: 2.259 MB / 3.224 GB, free: 16.67 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001629/8.032, allocations: 0.5374 MB / 3.224 GB, free: 16.11 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000533/8.032, allocations: 36 kB / 3.224 GB, free: 16.08 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005092/8.037, allocations: 251.6 kB / 3.225 GB, free: 15.83 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005851/8.038, allocations: 129.8 kB / 3.225 GB, free: 15.71 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004065/8.038, allocations: 75.92 kB / 3.225 GB, free: 15.63 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001347/8.04, allocations: 0.6416 MB / 3.225 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.61e-07/8.04, allocations: 0 / 3.225 GB, free: 14.98 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002994/8.043, allocations: 0.596 MB / 3.226 GB, free: 14.38 MB / 0.8698 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) * 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.009749/8.053, allocations: 3.744 MB / 3.23 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.006848/8.06, allocations: 2.172 MB / 3.232 GB, free: 8.574 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/8.06, allocations: 0 / 3.232 GB, free: 8.574 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003496/8.063, allocations: 1.268 MB / 3.233 GB, free: 7.297 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/8.066, allocations: 272.9 kB / 3.233 GB, free: 7.027 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/8.077, allocations: 3.106 MB / 3.236 GB, free: 3.879 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009497/8.078, allocations: 1.354 MB / 3.238 GB, free: 2.488 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0057/8.084, allocations: 0.554 MB / 3.238 GB, free: 1.93 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002635/8.087, allocations: 0.753 MB / 3.239 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of SimCode: time 1.153e-06/8.087, allocations: 0 / 3.239 GB, free: 1.176 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7461/8.833, allocations: 48.31 MB / 3.286 GB, free: 258.5 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003049/8.833, allocations: 242.2 kB / 3.286 GB, free: 258.1 MB / 0.8698 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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