Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.416/4.416, allocations: 464.6 MB / 476.8 MB, free: 2.18 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.145e-05/4.135e-05, allocations: 11.98 kB / 0.5732 GB, free: 5.609 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.2364, allocations: 107.2 MB / 0.6778 GB, free: 10.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.189/7.425, allocations: 2.192 GB / 2.869 GB, free: 256.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003359/7.425, allocations: 89.52 kB / 2.87 GB, free: 256.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2442/7.67, allocations: 63.89 MB / 2.932 GB, free: 203.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.064e-06/7.67, allocations: 0 / 2.932 GB, free: 203.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001038/7.67, allocations: 24 kB / 2.932 GB, free: 203.2 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002741/7.673, allocations: 1.094 MB / 2.933 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/7.673, allocations: 8.031 kB / 2.933 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003096/7.673, allocations: 125.2 kB / 2.933 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/7.675, allocations: 194.5 kB / 2.933 GB, free: 201.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001649/7.676, allocations: 0.628 MB / 2.934 GB, free: 201.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.887e-05/7.676, allocations: 60.73 kB / 2.934 GB, free: 201.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001729/7.676, allocations: 81.5 kB / 2.934 GB, free: 201.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/7.679, allocations: 0.8149 MB / 2.935 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.661e-05/7.679, allocations: 8 kB / 2.935 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/7.679, allocations: 35.48 kB / 2.935 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.964e-05/7.679, allocations: 16 kB / 2.935 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/7.681, allocations: 1.018 MB / 2.936 GB, free: 199.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006257/7.687, allocations: 2.472 MB / 2.938 GB, free: 197.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/7.689, allocations: 0.7065 MB / 2.939 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006596/7.69, allocations: 268.2 kB / 2.939 GB, free: 197.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000279/7.69, allocations: 113 kB / 2.939 GB, free: 197 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009251/7.691, allocations: 418.2 kB / 2.94 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=73): time 3.837e-06/7.691, allocations: 4 kB / 2.94 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=73): time 0.002668/7.694, allocations: 0.7042 MB / 2.94 GB, free: 196.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/7.694, allocations: 244.1 kB / 2.941 GB, free: 195.9 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/7.695, allocations: 0.6038 MB / 2.941 GB, free: 195.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002192/7.695, allocations: 42.5 kB / 2.941 GB, free: 195.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000376/7.696, allocations: 395 kB / 2.942 GB, free: 195.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/7.696, allocations: 244.6 kB / 2.942 GB, free: 194.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.064e-05/7.696, allocations: 18.25 kB / 2.942 GB, free: 194.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001336/7.696, allocations: 382.6 kB / 2.942 GB, free: 194.6 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005597/7.697, allocations: 210.6 kB / 2.943 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000667/7.698, allocations: 309 kB / 2.943 GB, free: 194.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006294/7.698, allocations: 252.8 kB / 2.943 GB, free: 194 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.631e-06/7.698, allocations: 3.938 kB / 2.943 GB, free: 194 MB / 0.8855 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002523/7.701, allocations: 0.7085 MB / 2.944 GB, free: 193.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/7.701, allocations: 4 kB / 2.944 GB, free: 193.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/7.701, allocations: 4 kB / 2.944 GB, free: 193.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/7.702, allocations: 83.95 kB / 2.944 GB, free: 193.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/7.703, allocations: 137 kB / 2.944 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/7.706, allocations: 1.525 MB / 2.945 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/7.707, allocations: 81.25 kB / 2.946 GB, free: 191.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001063/7.707, allocations: 28.78 kB / 2.946 GB, free: 191.7 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.0002651/7.708, allocations: 148.9 kB / 2.946 GB, free: 191.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/7.708, allocations: 86.92 kB / 2.946 GB, free: 191.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003395/7.711, allocations: 0.9701 MB / 2.947 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/7.711, allocations: 8 kB / 2.947 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/7.711, allocations: 0 / 2.947 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/7.711, allocations: 7.984 kB / 2.947 GB, free: 190.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/7.713, allocations: 0.8954 MB / 2.948 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/7.713, allocations: 3.938 kB / 2.948 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/7.714, allocations: 147.9 kB / 2.948 GB, free: 189.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008974/7.715, allocations: 92.7 kB / 2.948 GB, free: 189.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001867/7.716, allocations: 23.98 kB / 2.948 GB, free: 189.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/7.718, allocations: 1.556 MB / 2.949 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/7.718, allocations: 4.031 kB / 2.949 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/7.721, allocations: 0.8168 MB / 2.95 GB, free: 186.9 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007591/7.722, allocations: 287.7 kB / 2.95 GB, free: 186.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/7.722, allocations: 12 kB / 2.95 GB, free: 186.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/7.723, allocations: 67.95 kB / 2.951 GB, free: 186.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/7.723, allocations: 72.58 kB / 2.951 GB, free: 186.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.835e-05/7.723, allocations: 35.98 kB / 2.951 GB, free: 186.4 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0009442/7.724, allocations: 499.1 kB / 2.951 GB, free: 185.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8.21e-07/7.724, allocations: 0 / 2.951 GB, free: 185.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001721/7.726, allocations: 339.1 kB / 2.951 GB, free: 185.6 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 (84): * Single equations (assignments): 81 * 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.005385/7.731, allocations: 2.331 MB / 2.954 GB, free: 183.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002111/7.734, allocations: 0.6784 MB / 2.954 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/7.734, allocations: 0 / 2.954 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001144/7.735, allocations: 472.6 kB / 2.955 GB, free: 182.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/7.737, allocations: 258.9 kB / 2.955 GB, free: 182 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006359/7.743, allocations: 1.566 MB / 2.957 GB, free: 180.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005774/7.744, allocations: 1.035 MB / 2.958 GB, free: 179.3 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001389/7.745, allocations: 254 kB / 2.958 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007694/7.746, allocations: 383.2 kB / 2.958 GB, free: 178.7 MB / 0.8855 GB Notification: Performance of SimCode: time 1.212e-06/7.746, allocations: 0 / 2.958 GB, free: 178.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09308/7.839, allocations: 32.09 MB / 2.99 GB, free: 146.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002505/7.839, allocations: 257.9 kB / 2.99 GB, free: 146.5 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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.o Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.c In file included from Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.c:7: In file included from ./Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.o Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.c In file included from Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.c:2: In file included from ./Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.c:7: In file included from ./Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.o' failed make: *** [Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.o] Error 1