Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.432/4.432, allocations: 464.6 MB / 476.8 MB, free: 2.172 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.833e-05/3.842e-05, allocations: 3.984 kB / 0.5732 GB, free: 5.598 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2617, allocations: 107.2 MB / 0.6778 GB, free: 10.25 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.421/7.682, allocations: 2.192 GB / 2.869 GB, free: 256.2 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/7.683, allocations: 89.2 kB / 2.869 GB, free: 256.2 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.3686/8.051, allocations: 92.09 MB / 2.959 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.375e-06/8.051, allocations: 0 / 2.959 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001444/8.052, allocations: 39.94 kB / 2.959 GB, free: 177.5 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: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.00431/8.056, allocations: 1.371 MB / 2.961 GB, free: 176.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/8.056, allocations: 8.031 kB / 2.961 GB, free: 176.2 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005899/8.057, allocations: 203.8 kB / 2.961 GB, free: 176.1 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001874/8.058, allocations: 241.9 kB / 2.961 GB, free: 175.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002279/8.061, allocations: 0.7736 MB / 2.962 GB, free: 175.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/8.061, allocations: 104 kB / 2.962 GB, free: 175.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003628/8.061, allocations: 131.1 kB / 2.962 GB, free: 175 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003791/8.065, allocations: 1.314 MB / 2.963 GB, free: 173.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.174e-05/8.065, allocations: 4 kB / 2.963 GB, free: 173.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/8.065, allocations: 56 kB / 2.963 GB, free: 173.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/8.065, allocations: 40 kB / 2.964 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003934/8.069, allocations: 1.406 MB / 2.965 GB, free: 172.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01049/8.08, allocations: 3.611 MB / 2.968 GB, free: 168.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002397/8.082, allocations: 0.8906 MB / 2.969 GB, free: 167.7 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009967/8.084, allocations: 387.7 kB / 2.97 GB, free: 167.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001775/8.084, allocations: 45.06 kB / 2.97 GB, free: 167.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001338/8.085, allocations: 0.5495 MB / 2.97 GB, free: 166.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=104): time 4.769e-06/8.085, allocations: 0 / 2.97 GB, free: 166.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=104): time 0.003584/8.089, allocations: 0.9629 MB / 2.971 GB, free: 165.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.478e-05/8.089, allocations: 244.3 kB / 2.971 GB, free: 165.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/8.09, allocations: 0.7075 MB / 2.972 GB, free: 164.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003396/8.091, allocations: 45.7 kB / 2.972 GB, free: 164.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005264/8.091, allocations: 0.5505 MB / 2.973 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005101/8.092, allocations: 350.9 kB / 2.973 GB, free: 163.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/8.092, allocations: 24 kB / 2.973 GB, free: 163.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.12e-05/8.092, allocations: 341.9 kB / 2.973 GB, free: 163.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008912/8.093, allocations: 317.9 kB / 2.974 GB, free: 163.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/8.094, allocations: 433.5 kB / 2.974 GB, free: 162.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/8.095, allocations: 388.8 kB / 2.974 GB, free: 162.3 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/8.095, allocations: 0 / 2.974 GB, free: 162.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003592/8.099, allocations: 1.016 MB / 2.975 GB, free: 161.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/8.099, allocations: 4 kB / 2.975 GB, free: 161.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/8.099, allocations: 4 kB / 2.975 GB, free: 161.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/8.1, allocations: 84.83 kB / 2.976 GB, free: 161.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002092/8.102, allocations: 215.7 kB / 2.976 GB, free: 161 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002966/8.105, allocations: 1.525 MB / 2.977 GB, free: 159.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001881/8.107, allocations: 111 kB / 2.977 GB, free: 159.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003436/8.107, allocations: 39.97 kB / 2.977 GB, free: 159.1 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 (116): * Single equations (assignments): 115 * 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.0003738/8.108, allocations: 156.9 kB / 2.978 GB, free: 159 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004337/8.108, allocations: 102.8 kB / 2.978 GB, free: 158.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005384/8.114, allocations: 1.368 MB / 2.979 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.267e-05/8.114, allocations: 12 kB / 2.979 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/8.114, allocations: 3.938 kB / 2.979 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-05/8.114, allocations: 7.969 kB / 2.979 GB, free: 157.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0077/8.122, allocations: 2.555 MB / 2.981 GB, free: 154.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/8.122, allocations: 4 kB / 2.981 GB, free: 154.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001789/8.123, allocations: 199.7 kB / 2.982 GB, free: 154.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008924/8.124, allocations: 88.7 kB / 2.982 GB, free: 154.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002306/8.125, allocations: 27.94 kB / 2.982 GB, free: 154.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002405/8.127, allocations: 1.552 MB / 2.983 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/8.127, allocations: 32 / 2.983 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003551/8.131, allocations: 1.125 MB / 2.984 GB, free: 151.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/8.132, allocations: 367.1 kB / 2.985 GB, free: 151.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003315/8.132, allocations: 20 kB / 2.985 GB, free: 151.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00151/8.134, allocations: 71.95 kB / 2.985 GB, free: 151.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002795/8.134, allocations: 80.81 kB / 2.985 GB, free: 151.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/8.134, allocations: 39.98 kB / 2.985 GB, free: 151.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001236/8.135, allocations: 0.5968 MB / 2.986 GB, free: 150.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.82e-07/8.135, allocations: 0 / 2.986 GB, free: 150.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002125/8.138, allocations: 450.6 kB / 2.986 GB, free: 150.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.006081/8.144, allocations: 2.597 MB / 2.989 GB, free: 147.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002983/8.147, allocations: 0.9361 MB / 2.989 GB, free: 146.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.144e-06/8.147, allocations: 0 / 2.989 GB, free: 146.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001597/8.148, allocations: 0.5754 MB / 2.99 GB, free: 146.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/8.151, allocations: 250.9 kB / 2.99 GB, free: 145.8 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008469/8.159, allocations: 2.085 MB / 2.992 GB, free: 143.7 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007685/8.16, allocations: 1.189 MB / 2.993 GB, free: 142.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001862/8.162, allocations: 304 kB / 2.994 GB, free: 142.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/8.163, allocations: 0.5344 MB / 2.994 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.613e-06/8.163, allocations: 0 / 2.994 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1091/8.273, allocations: 36.77 MB / 3.03 GB, free: 105.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/8.273, allocations: 262.6 kB / 3.03 GB, free: 104.7 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_SolarGeometry_Examples_IncidenceAngle.o Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.c In file included from Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.c:7: In file included from ./Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.o Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.c In file included from Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.c:2: In file included from ./Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.c:7: In file included from ./Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.o' failed make: *** [Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.o] Error 1