Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.445/4.445, allocations: 464.6 MB / 476.8 MB, free: 2.238 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.484e-05/3.498e-05, allocations: 4 kB / 0.5732 GB, free: 5.668 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2444, allocations: 107.1 MB / 0.6778 GB, free: 10.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.159/7.404, allocations: 2.225 GB / 2.903 GB, free: 226.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004984/7.404, allocations: 110 kB / 2.903 GB, free: 226.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2501/7.655, allocations: 62.01 MB / 2.963 GB, free: 174.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.054e-06/7.655, allocations: 4 kB / 2.963 GB, free: 174.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001363/7.655, allocations: 35.88 kB / 2.963 GB, free: 174.3 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.003565/7.658, allocations: 1.374 MB / 2.965 GB, free: 173 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/7.658, allocations: 8.031 kB / 2.965 GB, free: 173 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003672/7.659, allocations: 162.9 kB / 2.965 GB, free: 172.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002425/7.661, allocations: 302.6 kB / 2.965 GB, free: 172.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/7.664, allocations: 0.828 MB / 2.966 GB, free: 171.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-05/7.664, allocations: 82.59 kB / 2.966 GB, free: 171.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002413/7.664, allocations: 105.2 kB / 2.966 GB, free: 171.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003472/7.667, allocations: 1.248 MB / 2.967 GB, free: 170.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.265e-05/7.668, allocations: 3.938 kB / 2.967 GB, free: 170.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/7.668, allocations: 48.17 kB / 2.967 GB, free: 170.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/7.668, allocations: 58.23 kB / 2.968 GB, free: 170.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003568/7.671, allocations: 1.392 MB / 2.969 GB, free: 169.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009281/7.681, allocations: 4.719 MB / 2.974 GB, free: 164.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/7.683, allocations: 0.9651 MB / 2.974 GB, free: 163.9 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008963/7.684, allocations: 412 kB / 2.975 GB, free: 163.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/7.684, allocations: 117.9 kB / 2.975 GB, free: 163.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/7.686, allocations: 0.5558 MB / 2.976 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=94): time 3.857e-06/7.686, allocations: 0 / 2.976 GB, free: 162.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.004244/7.69, allocations: 1.427 MB / 2.977 GB, free: 161.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.723e-05/7.69, allocations: 295.5 kB / 2.977 GB, free: 161 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/7.692, allocations: 0.8643 MB / 2.978 GB, free: 160.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002306/7.692, allocations: 41.7 kB / 2.978 GB, free: 160.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005138/7.693, allocations: 0.5467 MB / 2.979 GB, free: 159.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003491/7.693, allocations: 319.4 kB / 2.979 GB, free: 159.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.322e-05/7.693, allocations: 20 kB / 2.979 GB, free: 159.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.651e-05/7.693, allocations: 341.9 kB / 2.979 GB, free: 158.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000831/7.694, allocations: 325.9 kB / 2.98 GB, free: 158.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009939/7.695, allocations: 0.5118 MB / 2.98 GB, free: 158 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009893/7.696, allocations: 407.6 kB / 2.98 GB, free: 157.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/7.696, allocations: 0 / 2.98 GB, free: 157.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003472/7.699, allocations: 1.132 MB / 2.982 GB, free: 156.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002297/7.7, allocations: 1.141 MB / 2.983 GB, free: 155.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/7.7, allocations: 4 kB / 2.983 GB, free: 155.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/7.701, allocations: 216.6 kB / 2.983 GB, free: 155 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001695/7.703, allocations: 207.7 kB / 2.983 GB, free: 154.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007484/7.704, allocations: 0.6343 MB / 2.984 GB, free: 154.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/7.705, allocations: 111.4 kB / 2.984 GB, free: 154 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001202/7.705, allocations: 39.98 kB / 2.984 GB, free: 154 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/7.705, allocations: 4 kB / 2.984 GB, free: 154 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002035/7.707, allocations: 0.8305 MB / 2.985 GB, free: 153.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/7.707, allocations: 4.109 kB / 2.985 GB, free: 153.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/7.707, allocations: 11.94 kB / 2.985 GB, free: 153.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001874/7.709, allocations: 211.7 kB / 2.985 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.243e-05/7.709, allocations: 8 kB / 2.985 GB, free: 152.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/7.711, allocations: 99.47 kB / 2.985 GB, free: 152.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/7.711, allocations: 39.98 kB / 2.985 GB, free: 152.8 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.000367/7.711, allocations: 152.8 kB / 2.985 GB, free: 152.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003354/7.712, allocations: 110.7 kB / 2.985 GB, free: 152.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/7.716, allocations: 1.353 MB / 2.987 GB, free: 151.1 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.419e-05/7.716, allocations: 12.05 kB / 2.987 GB, free: 151.1 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/7.716, allocations: 7.969 kB / 2.987 GB, free: 151.1 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.465e-05/7.716, allocations: 7.984 kB / 2.987 GB, free: 151.1 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006345/7.723, allocations: 2.676 MB / 2.989 GB, free: 148.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.736e-06/7.723, allocations: 96 / 2.989 GB, free: 148.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/7.724, allocations: 199.6 kB / 2.989 GB, free: 148.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/7.726, allocations: 204.8 kB / 2.99 GB, free: 148 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/7.726, allocations: 27.98 kB / 2.99 GB, free: 147.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002636/7.728, allocations: 1.827 MB / 2.991 GB, free: 146 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/7.728, allocations: 4.031 kB / 2.991 GB, free: 146 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003493/7.732, allocations: 1.433 MB / 2.993 GB, free: 144.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008059/7.733, allocations: 359.2 kB / 2.993 GB, free: 144.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/7.733, allocations: 27.94 kB / 2.993 GB, free: 144 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001393/7.734, allocations: 99.91 kB / 2.993 GB, free: 143.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/7.735, allocations: 76.83 kB / 2.993 GB, free: 143.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/7.735, allocations: 43.98 kB / 2.993 GB, free: 143.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001284/7.736, allocations: 0.6918 MB / 2.994 GB, free: 143.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.81e-07/7.736, allocations: 0 / 2.994 GB, free: 143.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002144/7.738, allocations: 499.9 kB / 2.995 GB, free: 142.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.005259/7.744, allocations: 2.965 MB / 2.997 GB, free: 139.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003554/7.747, allocations: 1.36 MB / 2.999 GB, free: 138.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/7.747, allocations: 0 / 2.999 GB, free: 138.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001482/7.749, allocations: 0.6226 MB / 2.999 GB, free: 137.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002243/7.751, allocations: 317.3 kB / 3 GB, free: 137.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005845/7.757, allocations: 2.08 MB / 3.002 GB, free: 135.3 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008291/7.758, allocations: 1.206 MB / 3.003 GB, free: 134 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003085/7.761, allocations: 0.6053 MB / 3.003 GB, free: 133.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008845/7.762, allocations: 479.2 kB / 3.004 GB, free: 133 MB / 0.8855 GB Notification: Performance of SimCode: time 1.403e-06/7.762, allocations: 0 / 3.004 GB, free: 133 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0879/7.85, allocations: 27.8 MB / 3.031 GB, free: 105.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000249/7.85, allocations: 253.4 kB / 3.031 GB, free: 105.1 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_ThreePhasesBalanced_Sources_Examples_WindTurbine.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_latest_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 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_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o] Error 1