Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.812/4.812, allocations: 460.4 MB / 472.6 MB, free: 5.426 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.031e-05/4.04e-05, allocations: 4 kB / 0.5682 GB, free: 10.12 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2576, allocations: 106.2 MB / 0.6719 GB, free: 15.72 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.383/7.64, allocations: 2.219 GB / 2.891 GB, free: 251.6 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003622/7.641, allocations: 102.8 kB / 2.891 GB, free: 251.5 MB / 0.8855 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.1938/7.835, allocations: 50.3 MB / 2.94 GB, free: 209.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.184e-06/7.835, allocations: 0 / 2.94 GB, free: 209.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001325/7.835, allocations: 32 kB / 2.94 GB, free: 209.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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003148/7.838, allocations: 1.292 MB / 2.942 GB, free: 207.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/7.838, allocations: 8.031 kB / 2.942 GB, free: 207.9 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000345/7.839, allocations: 159.2 kB / 2.942 GB, free: 207.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002377/7.841, allocations: 285.9 kB / 2.942 GB, free: 207.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002375/7.843, allocations: 0.7925 MB / 2.943 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.029e-05/7.843, allocations: 73.56 kB / 2.943 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/7.844, allocations: 97.88 kB / 2.943 GB, free: 206.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002588/7.846, allocations: 1.099 MB / 2.944 GB, free: 205.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.029e-05/7.846, allocations: 4 kB / 2.944 GB, free: 205.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/7.846, allocations: 37.88 kB / 2.944 GB, free: 205.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.537e-05/7.847, allocations: 53.94 kB / 2.944 GB, free: 205.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002799/7.849, allocations: 1.227 MB / 2.945 GB, free: 204.9 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009044/7.858, allocations: 4.352 MB / 2.95 GB, free: 201.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/7.861, allocations: 0.7583 MB / 2.95 GB, free: 200.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007905/7.861, allocations: 325.6 kB / 2.951 GB, free: 200.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001072/7.862, allocations: 28.56 kB / 2.951 GB, free: 200.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008912/7.862, allocations: 445 kB / 2.951 GB, free: 200 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=80): time 3.938e-06/7.863, allocations: 4 kB / 2.951 GB, free: 200 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80): time 0.002082/7.865, allocations: 0.7043 MB / 2.952 GB, free: 199.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/7.865, allocations: 354.8 kB / 2.952 GB, free: 199 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00174/7.867, allocations: 0.8677 MB / 2.953 GB, free: 198.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002176/7.867, allocations: 40.83 kB / 2.953 GB, free: 198.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005005/7.867, allocations: 0.5258 MB / 2.954 GB, free: 198 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002653/7.868, allocations: 261.1 kB / 2.954 GB, free: 197.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.252e-05/7.868, allocations: 19.12 kB / 2.954 GB, free: 197.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.543e-05/7.868, allocations: 336.9 kB / 2.954 GB, free: 197.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005917/7.868, allocations: 224 kB / 2.954 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007475/7.869, allocations: 411.4 kB / 2.955 GB, free: 196.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006976/7.87, allocations: 285.3 kB / 2.955 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.645e-06/7.87, allocations: 4 kB / 2.955 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002104/7.872, allocations: 0.7722 MB / 2.956 GB, free: 196.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002218/7.872, allocations: 0.9629 MB / 2.957 GB, free: 195.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/7.872, allocations: 4 kB / 2.957 GB, free: 195.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002428/7.872, allocations: 36.16 kB / 2.957 GB, free: 195.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/7.874, allocations: 166.3 kB / 2.957 GB, free: 194.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003754/7.874, allocations: 0.5428 MB / 2.957 GB, free: 194.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/7.876, allocations: 100.6 kB / 2.958 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.434e-05/7.876, allocations: 34.73 kB / 2.958 GB, free: 194.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/7.876, allocations: 4 kB / 2.958 GB, free: 194.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001601/7.877, allocations: 0.6396 MB / 2.958 GB, free: 193.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/7.877, allocations: 4 kB / 2.958 GB, free: 193.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/7.877, allocations: 4 kB / 2.958 GB, free: 193.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/7.879, allocations: 175.1 kB / 2.958 GB, free: 193.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/7.879, allocations: 8 kB / 2.958 GB, free: 193.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001281/7.88, allocations: 94 kB / 2.958 GB, free: 193.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-05/7.88, allocations: 33.05 kB / 2.959 GB, free: 193.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (94): * Single equations (assignments): 93 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003127/7.88, allocations: 158.5 kB / 2.959 GB, free: 193.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002494/7.881, allocations: 109.4 kB / 2.959 GB, free: 193.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002824/7.884, allocations: 0.9461 MB / 2.96 GB, free: 192.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/7.884, allocations: 12 kB / 2.96 GB, free: 192.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/7.884, allocations: 0 / 2.96 GB, free: 192.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/7.884, allocations: 3.984 kB / 2.96 GB, free: 192.6 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/7.888, allocations: 2.289 MB / 2.962 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/7.889, allocations: 4 kB / 2.962 GB, free: 190.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/7.89, allocations: 159.7 kB / 2.962 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/7.89, allocations: 28.78 kB / 2.962 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.04e-05/7.89, allocations: 27.61 kB / 2.962 GB, free: 190.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/7.891, allocations: 1.268 MB / 2.963 GB, free: 189.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/7.891, allocations: 7.891 kB / 2.963 GB, free: 189.1 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/7.893, allocations: 0.9485 MB / 2.964 GB, free: 188.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006602/7.894, allocations: 323.4 kB / 2.965 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002151/7.894, allocations: 27.98 kB / 2.965 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/7.895, allocations: 67.95 kB / 2.965 GB, free: 187.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/7.896, allocations: 68.58 kB / 2.965 GB, free: 187.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.811e-05/7.896, allocations: 31.98 kB / 2.965 GB, free: 187.6 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001297/7.897, allocations: 0.6874 MB / 2.965 GB, free: 186.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.91e-07/7.897, allocations: 0 / 2.965 GB, free: 186.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002102/7.899, allocations: 0.5489 MB / 2.966 GB, free: 186.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (92): * Single equations (assignments): 89 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003852/7.903, allocations: 2.247 MB / 2.968 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002668/7.906, allocations: 0.9932 MB / 2.969 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/7.906, allocations: 0 / 2.969 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0009743/7.907, allocations: 462 kB / 2.97 GB, free: 182.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/7.909, allocations: 293.8 kB / 2.97 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005033/7.914, allocations: 1.832 MB / 2.972 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007857/7.915, allocations: 1.169 MB / 2.973 GB, free: 179.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002713/7.918, allocations: 0.5462 MB / 2.973 GB, free: 178.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007695/7.919, allocations: 439.3 kB / 2.974 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.112e-06/7.919, allocations: 0 / 2.974 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1053/8.024, allocations: 25.14 MB / 2.998 GB, free: 153.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/8.024, allocations: 226.3 kB / 2.999 GB, free: 153.2 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_DC_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_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_DC_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_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_DC_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_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_DC_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o] Error 1