Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.295/4.295, allocations: 460.5 MB / 472.6 MB, free: 5.383 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.875e-05/3.896e-05, allocations: 7.984 kB / 0.5682 GB, free: 10.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2355, allocations: 106.2 MB / 0.6719 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.234/7.469, allocations: 2.22 GB / 2.892 GB, free: 250.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000365/7.47, allocations: 110.3 kB / 2.892 GB, free: 250.8 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.229/7.699, allocations: 57.52 MB / 2.949 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.196e-06/7.699, allocations: 0 / 2.949 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001608/7.699, allocations: 35.94 kB / 2.949 GB, free: 202 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.003881/7.703, allocations: 1.368 MB / 2.95 GB, free: 200.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/7.703, allocations: 8.031 kB / 2.95 GB, free: 200.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004766/7.703, allocations: 173.5 kB / 2.95 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002694/7.706, allocations: 305.7 kB / 2.951 GB, free: 200.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002504/7.709, allocations: 0.8286 MB / 2.951 GB, free: 199.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.718e-05/7.709, allocations: 78.16 kB / 2.951 GB, free: 199.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002907/7.709, allocations: 99.88 kB / 2.951 GB, free: 199.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003467/7.713, allocations: 1.247 MB / 2.953 GB, free: 198.5 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.314e-05/7.713, allocations: 7.984 kB / 2.953 GB, free: 198.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002165/7.713, allocations: 53.5 kB / 2.953 GB, free: 198.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/7.713, allocations: 53.8 kB / 2.953 GB, free: 198.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003752/7.717, allocations: 1.391 MB / 2.954 GB, free: 197.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/7.727, allocations: 4.707 MB / 2.959 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/7.729, allocations: 0.9639 MB / 2.96 GB, free: 192.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/7.73, allocations: 412.8 kB / 2.96 GB, free: 192.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003113/7.731, allocations: 117.4 kB / 2.96 GB, free: 192.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001253/7.732, allocations: 0.5508 MB / 2.961 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=94): time 4.288e-06/7.732, allocations: 0 / 2.961 GB, free: 191.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.004262/7.736, allocations: 1.432 MB / 2.962 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.894e-05/7.736, allocations: 302.1 kB / 2.962 GB, free: 190.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/7.738, allocations: 0.8577 MB / 2.963 GB, free: 189.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002895/7.739, allocations: 43.64 kB / 2.963 GB, free: 189.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005384/7.739, allocations: 0.5401 MB / 2.964 GB, free: 189.2 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003921/7.74, allocations: 318 kB / 2.964 GB, free: 188.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.307e-05/7.74, allocations: 16 kB / 2.964 GB, free: 188.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.521e-05/7.74, allocations: 349.9 kB / 2.964 GB, free: 188.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008084/7.741, allocations: 321.9 kB / 2.965 GB, free: 188.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000965/7.742, allocations: 0.5157 MB / 2.965 GB, free: 187.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/7.743, allocations: 411.2 kB / 2.966 GB, free: 187.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/7.743, allocations: 4 kB / 2.966 GB, free: 187.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003444/7.746, allocations: 1.125 MB / 2.967 GB, free: 186.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002672/7.746, allocations: 1.141 MB / 2.968 GB, free: 184.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/7.746, allocations: 7.938 kB / 2.968 GB, free: 184.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001439/7.748, allocations: 212.6 kB / 2.968 GB, free: 184.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00175/7.75, allocations: 211.8 kB / 2.968 GB, free: 184.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007935/7.75, allocations: 0.6382 MB / 2.969 GB, free: 183.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/7.752, allocations: 111.3 kB / 2.969 GB, free: 183.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/7.752, allocations: 39.98 kB / 2.969 GB, free: 183.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/7.752, allocations: 4 kB / 2.969 GB, free: 183.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002096/7.754, allocations: 0.8267 MB / 2.97 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/7.754, allocations: 4.031 kB / 2.97 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/7.754, allocations: 8 kB / 2.97 GB, free: 182.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/7.756, allocations: 211.7 kB / 2.97 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/7.756, allocations: 11.94 kB / 2.97 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/7.758, allocations: 95.38 kB / 2.97 GB, free: 182.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/7.758, allocations: 47.98 kB / 2.97 GB, free: 182.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.0003597/7.758, allocations: 160.7 kB / 2.97 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003444/7.758, allocations: 114.6 kB / 2.971 GB, free: 182.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/7.763, allocations: 1.341 MB / 2.972 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.008e-05/7.763, allocations: 15.98 kB / 2.972 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/7.763, allocations: 3.938 kB / 2.972 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.073e-05/7.763, allocations: 3.984 kB / 2.972 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006476/7.769, allocations: 2.681 MB / 2.974 GB, free: 178 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.256e-05/7.77, allocations: 0 / 2.974 GB, free: 178 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001607/7.771, allocations: 191.8 kB / 2.975 GB, free: 177.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001372/7.773, allocations: 204.8 kB / 2.975 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002149/7.773, allocations: 31.98 kB / 2.975 GB, free: 177.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/7.776, allocations: 1.831 MB / 2.977 GB, free: 175.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/7.776, allocations: 0 / 2.977 GB, free: 175.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/7.779, allocations: 1.429 MB / 2.978 GB, free: 174.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009934/7.78, allocations: 375.1 kB / 2.978 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002726/7.781, allocations: 24 kB / 2.978 GB, free: 173.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/7.782, allocations: 95.84 kB / 2.979 GB, free: 173.6 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/7.782, allocations: 72.89 kB / 2.979 GB, free: 173.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/7.783, allocations: 39.98 kB / 2.979 GB, free: 173.5 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001354/7.784, allocations: 0.6957 MB / 2.979 GB, free: 172.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.61e-07/7.784, allocations: 0 / 2.979 GB, free: 172.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002774/7.787, allocations: 0.4921 MB / 2.98 GB, free: 172.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.005784/7.793, allocations: 2.961 MB / 2.983 GB, free: 169.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003748/7.796, allocations: 1.363 MB / 2.984 GB, free: 168 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/7.796, allocations: 1.5 kB / 2.984 GB, free: 168 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001559/7.798, allocations: 0.6186 MB / 2.985 GB, free: 167.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002506/7.8, allocations: 308.6 kB / 2.985 GB, free: 167.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006298/7.807, allocations: 2.08 MB / 2.987 GB, free: 165 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008049/7.808, allocations: 1.212 MB / 2.988 GB, free: 163.7 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003146/7.811, allocations: 0.5975 MB / 2.989 GB, free: 163.1 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009626/7.812, allocations: 483.2 kB / 2.989 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.593e-06/7.812, allocations: 0 / 2.989 GB, free: 162.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09715/7.909, allocations: 27.79 MB / 3.016 GB, free: 135.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002799/7.909, allocations: 248 kB / 3.017 GB, free: 134.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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_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_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_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 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_OnePhase_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o] Error 1