Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.52/4.52, allocations: 460.4 MB / 472.6 MB, free: 5.387 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.326e-05, allocations: 4 kB / 0.5682 GB, free: 10.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2335, allocations: 106.2 MB / 0.6719 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.355/7.588, allocations: 2.225 GB / 2.896 GB, free: 246.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003732/7.589, allocations: 102.8 kB / 2.897 GB, free: 246.8 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2463/7.835, allocations: 62.02 MB / 2.957 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.266e-06/7.835, allocations: 3.984 kB / 2.957 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001669/7.835, allocations: 35.94 kB / 2.957 GB, free: 194.4 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.0041/7.839, allocations: 1.365 MB / 2.958 GB, free: 193.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/7.839, allocations: 12.03 kB / 2.959 GB, free: 193 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005795/7.84, allocations: 173.8 kB / 2.959 GB, free: 192.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002726/7.843, allocations: 297.8 kB / 2.959 GB, free: 192.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002536/7.845, allocations: 0.8347 MB / 2.96 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.767e-05/7.845, allocations: 83.8 kB / 2.96 GB, free: 191.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/7.846, allocations: 101.1 kB / 2.96 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003167/7.849, allocations: 1.248 MB / 2.961 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.822e-05/7.849, allocations: 3.938 kB / 2.961 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002054/7.849, allocations: 50.05 kB / 2.961 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.747e-05/7.849, allocations: 57.3 kB / 2.961 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003689/7.853, allocations: 1.395 MB / 2.963 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/7.864, allocations: 4.721 MB / 2.967 GB, free: 185.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/7.867, allocations: 0.9487 MB / 2.968 GB, free: 184.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001009/7.868, allocations: 419.9 kB / 2.969 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002968/7.868, allocations: 125.8 kB / 2.969 GB, free: 184.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001201/7.869, allocations: 0.5443 MB / 2.969 GB, free: 183.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=94): time 4.038e-06/7.869, allocations: 0 / 2.969 GB, free: 183.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.004322/7.874, allocations: 1.43 MB / 2.971 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/7.874, allocations: 303.4 kB / 2.971 GB, free: 181.9 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/7.876, allocations: 0.8643 MB / 2.972 GB, free: 181 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003047/7.876, allocations: 45.7 kB / 2.972 GB, free: 181 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005437/7.877, allocations: 0.5428 MB / 2.972 GB, free: 180.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004645/7.877, allocations: 315.4 kB / 2.973 GB, free: 180.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-05/7.877, allocations: 12 kB / 2.973 GB, free: 180.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.255e-05/7.877, allocations: 345.9 kB / 2.973 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000826/7.878, allocations: 325.9 kB / 2.973 GB, free: 179.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009751/7.879, allocations: 0.5117 MB / 2.974 GB, free: 178.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009694/7.88, allocations: 411.2 kB / 2.974 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/7.88, allocations: 0 / 2.974 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003505/7.884, allocations: 1.132 MB / 2.975 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002747/7.884, allocations: 1.141 MB / 2.976 GB, free: 176.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/7.884, allocations: 4 kB / 2.976 GB, free: 176.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00144/7.885, allocations: 212.6 kB / 2.977 GB, free: 175.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001744/7.887, allocations: 203.7 kB / 2.977 GB, free: 175.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008117/7.888, allocations: 0.6382 MB / 2.977 GB, free: 175 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/7.89, allocations: 107.4 kB / 2.978 GB, free: 174.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/7.89, allocations: 39.98 kB / 2.978 GB, free: 174.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/7.89, allocations: 4 kB / 2.978 GB, free: 174.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002082/7.892, allocations: 0.8342 MB / 2.978 GB, free: 174 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/7.892, allocations: 4 kB / 2.978 GB, free: 174 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/7.892, allocations: 8 kB / 2.978 GB, free: 174 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/7.894, allocations: 207.7 kB / 2.979 GB, free: 173.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/7.894, allocations: 8 kB / 2.979 GB, free: 173.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/7.895, allocations: 103.8 kB / 2.979 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001189/7.895, allocations: 39.92 kB / 2.979 GB, free: 173.7 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.00038/7.896, allocations: 166.9 kB / 2.979 GB, free: 173.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003323/7.896, allocations: 110.7 kB / 2.979 GB, free: 173.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004298/7.9, allocations: 1.349 MB / 2.98 GB, free: 172.1 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/7.9, allocations: 12 kB / 2.98 GB, free: 172 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/7.9, allocations: 4 kB / 2.98 GB, free: 172 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.292e-05/7.9, allocations: 7.938 kB / 2.98 GB, free: 172 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006689/7.907, allocations: 2.677 MB / 2.983 GB, free: 169.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/7.907, allocations: 4 kB / 2.983 GB, free: 169.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/7.909, allocations: 187.8 kB / 2.983 GB, free: 169.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001344/7.91, allocations: 216.7 kB / 2.983 GB, free: 168.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001965/7.91, allocations: 31.98 kB / 2.983 GB, free: 168.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00272/7.913, allocations: 1.819 MB / 2.985 GB, free: 166.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/7.913, allocations: 7.984 kB / 2.985 GB, free: 166.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003631/7.917, allocations: 1.433 MB / 2.987 GB, free: 165.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009572/7.918, allocations: 359.2 kB / 2.987 GB, free: 165 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003057/7.918, allocations: 24 kB / 2.987 GB, free: 165 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/7.92, allocations: 95.89 kB / 2.987 GB, free: 164.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002533/7.92, allocations: 76.98 kB / 2.987 GB, free: 164.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/7.92, allocations: 39.97 kB / 2.987 GB, free: 164.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001398/7.921, allocations: 0.684 MB / 2.988 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.51e-07/7.921, allocations: 0 / 2.988 GB, free: 164.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002578/7.924, allocations: 0.4998 MB / 2.988 GB, free: 163.6 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.00569/7.93, allocations: 2.972 MB / 2.991 GB, free: 160.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003802/7.934, allocations: 1.353 MB / 2.992 GB, free: 159.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.167e-05/7.934, allocations: 4.188 kB / 2.992 GB, free: 159.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001554/7.935, allocations: 0.6182 MB / 2.993 GB, free: 158.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002456/7.938, allocations: 296.4 kB / 2.993 GB, free: 158.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006575/7.944, allocations: 2.09 MB / 2.995 GB, free: 156.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008298/7.945, allocations: 1.215 MB / 2.997 GB, free: 155 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003255/7.948, allocations: 0.6014 MB / 2.997 GB, free: 154.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009924/7.95, allocations: 475.3 kB / 2.998 GB, free: 153.9 MB / 0.8855 GB Notification: Performance of SimCode: time 1.162e-06/7.95, allocations: 0 / 2.998 GB, free: 153.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1436/8.093, allocations: 27.81 MB / 3.025 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002576/8.094, allocations: 248.2 kB / 3.025 GB, free: 126 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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_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_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_includes.h:4: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/getTimeSpan.c:12: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/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_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o] Error 1