Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.265/4.265, allocations: 464.6 MB / 476.8 MB, free: 2.121 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.197e-05/4.196e-05, allocations: 4 kB / 0.5732 GB, free: 5.617 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2522, allocations: 107.1 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.233/7.485, allocations: 2.221 GB / 2.899 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004833/7.486, allocations: 105.8 kB / 2.899 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.325/7.811, allocations: 57.5 MB / 2.955 GB, free: 182 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.825e-06/7.811, allocations: 4 kB / 2.955 GB, free: 182 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001284/7.811, allocations: 32 kB / 2.955 GB, free: 182 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.00333/7.814, allocations: 1.374 MB / 2.956 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/7.814, allocations: 11.97 kB / 2.956 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003387/7.815, allocations: 165.8 kB / 2.956 GB, free: 180.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002419/7.817, allocations: 301.9 kB / 2.957 GB, free: 180.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002178/7.819, allocations: 0.8316 MB / 2.958 GB, free: 179.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.195e-05/7.819, allocations: 78.98 kB / 2.958 GB, free: 179.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002459/7.82, allocations: 103.7 kB / 2.958 GB, free: 179.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002842/7.823, allocations: 1.246 MB / 2.959 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.521e-05/7.823, allocations: 11.88 kB / 2.959 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/7.823, allocations: 48.61 kB / 2.959 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.029e-05/7.823, allocations: 53.98 kB / 2.959 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003238/7.826, allocations: 1.387 MB / 2.96 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008976/7.835, allocations: 4.723 MB / 2.965 GB, free: 173.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002257/7.837, allocations: 0.9628 MB / 2.966 GB, free: 172.5 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000867/7.838, allocations: 414.1 kB / 2.966 GB, free: 172.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002706/7.839, allocations: 117.9 kB / 2.967 GB, free: 172.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001151/7.84, allocations: 0.5558 MB / 2.967 GB, free: 171.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=94): time 3.506e-06/7.84, allocations: 0 / 2.967 GB, free: 171.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.003957/7.844, allocations: 1.426 MB / 2.968 GB, free: 170.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.233e-05/7.844, allocations: 303.5 kB / 2.969 GB, free: 169.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/7.846, allocations: 0.8604 MB / 2.97 GB, free: 168.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001723/7.846, allocations: 45.7 kB / 2.97 GB, free: 168.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004902/7.846, allocations: 0.5389 MB / 2.97 GB, free: 168.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003028/7.847, allocations: 319.4 kB / 2.97 GB, free: 167.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8e-05/7.847, allocations: 16 kB / 2.97 GB, free: 167.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.214e-05/7.847, allocations: 338 kB / 2.971 GB, free: 167.6 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008172/7.848, allocations: 326 kB / 2.971 GB, free: 167.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009479/7.849, allocations: 0.5234 MB / 2.972 GB, free: 166.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009389/7.85, allocations: 415.6 kB / 2.972 GB, free: 166.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/7.85, allocations: 0 / 2.972 GB, free: 166.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003334/7.853, allocations: 1.124 MB / 2.973 GB, free: 165.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002451/7.853, allocations: 1.145 MB / 2.974 GB, free: 163.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/7.853, allocations: 4 kB / 2.974 GB, free: 163.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/7.855, allocations: 212.6 kB / 2.974 GB, free: 163.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/7.856, allocations: 207.7 kB / 2.975 GB, free: 163.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000729/7.857, allocations: 0.6421 MB / 2.975 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/7.859, allocations: 107.3 kB / 2.975 GB, free: 162.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/7.859, allocations: 40.05 kB / 2.975 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/7.859, allocations: 8 kB / 2.975 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002044/7.861, allocations: 0.8224 MB / 2.976 GB, free: 161.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/7.861, allocations: 4 kB / 2.976 GB, free: 161.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/7.861, allocations: 11.95 kB / 2.976 GB, free: 161.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/7.862, allocations: 216 kB / 2.976 GB, free: 161.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/7.862, allocations: 8 kB / 2.976 GB, free: 161.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/7.864, allocations: 95.38 kB / 2.977 GB, free: 161.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/7.864, allocations: 35.98 kB / 2.977 GB, free: 161.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (107): * Single equations (assignments): 106 * 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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003275/7.864, allocations: 160.8 kB / 2.977 GB, free: 161.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002593/7.864, allocations: 110.7 kB / 2.977 GB, free: 161.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004182/7.869, allocations: 1.357 MB / 2.978 GB, free: 159.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.397e-05/7.869, allocations: 12 kB / 2.978 GB, free: 159.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/7.869, allocations: 3.984 kB / 2.978 GB, free: 159.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/7.869, allocations: 3.984 kB / 2.978 GB, free: 159.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006086/7.875, allocations: 2.672 MB / 2.981 GB, free: 157 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/7.875, allocations: 12.02 kB / 2.981 GB, free: 157 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001554/7.876, allocations: 195.6 kB / 2.981 GB, free: 156.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/7.878, allocations: 208.6 kB / 2.981 GB, free: 156.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/7.878, allocations: 27.98 kB / 2.981 GB, free: 156.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002639/7.881, allocations: 1.819 MB / 2.983 GB, free: 154.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/7.881, allocations: 7.938 kB / 2.983 GB, free: 154.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00353/7.884, allocations: 1.433 MB / 2.984 GB, free: 153.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008741/7.885, allocations: 359.3 kB / 2.985 GB, free: 152.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000233/7.885, allocations: 31.92 kB / 2.985 GB, free: 152.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001389/7.887, allocations: 91.91 kB / 2.985 GB, free: 152.6 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002144/7.887, allocations: 76.84 kB / 2.985 GB, free: 152.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/7.887, allocations: 39.98 kB / 2.985 GB, free: 152.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001291/7.889, allocations: 0.6918 MB / 2.986 GB, free: 151.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.2e-07/7.889, allocations: 0 / 2.986 GB, free: 151.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002082/7.891, allocations: 499.8 kB / 2.986 GB, free: 151.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (105): * Single equations (assignments): 102 * 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 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005396/7.896, allocations: 2.969 MB / 2.989 GB, free: 148.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003544/7.9, allocations: 1.356 MB / 2.99 GB, free: 147 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/7.9, allocations: 4 kB / 2.99 GB, free: 147 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.00146/7.901, allocations: 0.6195 MB / 2.991 GB, free: 146.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002293/7.903, allocations: 309.2 kB / 2.991 GB, free: 146.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/7.909, allocations: 2.088 MB / 2.993 GB, free: 144 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007914/7.91, allocations: 1.214 MB / 2.994 GB, free: 142.7 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003019/7.913, allocations: 0.5975 MB / 2.995 GB, free: 142.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009801/7.914, allocations: 479.2 kB / 2.995 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.153e-06/7.914, allocations: 4 kB / 2.995 GB, free: 141.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1079/8.022, allocations: 27.78 MB / 3.023 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002444/8.022, allocations: 233.3 kB / 3.023 GB, free: 113.8 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_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.o Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c In file included from Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_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_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c In file included from Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_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_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_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_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_latest_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o] Error 1