Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.324/4.324, allocations: 464.6 MB / 476.8 MB, free: 2.109 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.773e-05/3.788e-05, allocations: 5.969 kB / 0.5732 GB, free: 5.613 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2535, allocations: 107.1 MB / 0.6778 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.741/7.995, allocations: 2.19 GB / 2.868 GB, free: 257 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003496/7.995, allocations: 95.53 kB / 2.868 GB, free: 257 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.234/8.229, allocations: 62.14 MB / 2.929 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.904e-06/8.229, allocations: 0 / 2.929 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.273e-05/8.23, allocations: 24 kB / 2.929 GB, free: 206.6 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.002313/8.232, allocations: 1.034 MB / 2.93 GB, free: 205.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/8.232, allocations: 12.03 kB / 2.93 GB, free: 205.6 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/8.232, allocations: 125.8 kB / 2.93 GB, free: 205.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001561/8.234, allocations: 210.3 kB / 2.93 GB, free: 205.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/8.235, allocations: 0.6013 MB / 2.931 GB, free: 204.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.675e-05/8.235, allocations: 55.56 kB / 2.931 GB, free: 204.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/8.235, allocations: 77.31 kB / 2.931 GB, free: 204.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001808/8.237, allocations: 0.8222 MB / 2.932 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/8.237, allocations: 3.938 kB / 2.932 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000125/8.237, allocations: 30.25 kB / 2.932 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.977e-05/8.237, allocations: 19.95 kB / 2.932 GB, free: 204 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/8.239, allocations: 1.014 MB / 2.933 GB, free: 203.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005297/8.245, allocations: 2.426 MB / 2.935 GB, free: 201.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00279/8.248, allocations: 0.7577 MB / 2.936 GB, free: 200.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006015/8.248, allocations: 268.4 kB / 2.936 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/8.248, allocations: 35.8 kB / 2.936 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008889/8.249, allocations: 426.5 kB / 2.937 GB, free: 200.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=73): time 3.948e-06/8.249, allocations: 0 / 2.937 GB, free: 200.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=73): time 0.00253/8.252, allocations: 0.6977 MB / 2.937 GB, free: 199.7 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.997e-05/8.252, allocations: 246.5 kB / 2.938 GB, free: 199.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/8.253, allocations: 0.561 MB / 2.938 GB, free: 199 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001009/8.253, allocations: 41.64 kB / 2.938 GB, free: 199 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003417/8.253, allocations: 370.6 kB / 2.938 GB, free: 198.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002259/8.254, allocations: 238 kB / 2.939 GB, free: 198.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.194e-05/8.254, allocations: 14.12 kB / 2.939 GB, free: 198.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001243/8.254, allocations: 379 kB / 2.939 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/8.254, allocations: 209.1 kB / 2.939 GB, free: 198 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/8.255, allocations: 321 kB / 2.94 GB, free: 197.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006611/8.256, allocations: 251 kB / 2.94 GB, free: 197.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/8.256, allocations: 3.984 kB / 2.94 GB, free: 197.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002414/8.258, allocations: 0.702 MB / 2.94 GB, free: 197.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/8.258, allocations: 8 kB / 2.941 GB, free: 197.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/8.258, allocations: 0 / 2.941 GB, free: 197.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000967/8.259, allocations: 80.28 kB / 2.941 GB, free: 197 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/8.26, allocations: 147.4 kB / 2.941 GB, free: 196.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00257/8.263, allocations: 1.527 MB / 2.942 GB, free: 195.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/8.264, allocations: 86.31 kB / 2.942 GB, free: 195.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.905e-05/8.264, allocations: 27.84 kB / 2.942 GB, free: 195.2 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (75): * Single equations (assignments): 74 * 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.0002524/8.265, allocations: 143.7 kB / 2.942 GB, free: 195.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/8.265, allocations: 75.11 kB / 2.943 GB, free: 195 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003353/8.268, allocations: 0.9917 MB / 2.943 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/8.268, allocations: 8 kB / 2.944 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/8.268, allocations: 4 kB / 2.944 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/8.268, allocations: 7.984 kB / 2.944 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/8.27, allocations: 0.878 MB / 2.944 GB, free: 193.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/8.27, allocations: 0 / 2.944 GB, free: 193.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/8.271, allocations: 155.6 kB / 2.945 GB, free: 193.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008294/8.272, allocations: 80.66 kB / 2.945 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.121e-05/8.272, allocations: 23.73 kB / 2.945 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002292/8.274, allocations: 1.554 MB / 2.946 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/8.274, allocations: 4 kB / 2.946 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002459/8.277, allocations: 0.8129 MB / 2.947 GB, free: 190.9 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005179/8.277, allocations: 283.7 kB / 2.947 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/8.277, allocations: 16 kB / 2.947 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/8.278, allocations: 75.89 kB / 2.947 GB, free: 190.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/8.278, allocations: 60.69 kB / 2.947 GB, free: 190.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.702e-05/8.279, allocations: 27.98 kB / 2.947 GB, free: 190.4 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0007856/8.279, allocations: 475.1 kB / 2.948 GB, free: 190 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.21e-07/8.279, allocations: 0 / 2.948 GB, free: 190 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001362/8.281, allocations: 327.3 kB / 2.948 GB, free: 189.7 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.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * 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.004758/8.285, allocations: 2.275 MB / 2.95 GB, free: 187.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001864/8.287, allocations: 0.6903 MB / 2.951 GB, free: 186.8 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/8.287, allocations: 0 / 2.951 GB, free: 186.8 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001086/8.288, allocations: 468.5 kB / 2.951 GB, free: 186.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/8.29, allocations: 235 kB / 2.952 GB, free: 186.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005518/8.296, allocations: 1.527 MB / 2.953 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005327/8.296, allocations: 1.011 MB / 2.954 GB, free: 183.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001322/8.298, allocations: 262 kB / 2.954 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006836/8.298, allocations: 343.3 kB / 2.955 GB, free: 182.9 MB / 0.8855 GB Notification: Performance of SimCode: time 1.343e-06/8.298, allocations: 0 / 2.955 GB, free: 182.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08515/8.384, allocations: 30.82 MB / 2.985 GB, free: 152.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002611/8.384, allocations: 259.9 kB / 2.985 GB, free: 152 MB / 0.8855 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.o Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.c In file included from Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.c:7: In file included from ./Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.o Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.c In file included from Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.c:2: In file included from ./Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_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_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.c:7: In file included from ./Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_includes.h:4: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/Resources/C-Sources/getTimeSpan.c:12: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/Resources/C-Sources/getTimeSpan.h:11:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.o' failed make: *** [Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.o] Error 1