Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.559/4.559, allocations: 460.4 MB / 472.6 MB, free: 5.422 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.994e-05/3.998e-05, allocations: 7.984 kB / 0.5682 GB, free: 10.11 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2425, allocations: 106.2 MB / 0.6719 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.366/7.608, allocations: 2.25 GB / 2.922 GB, free: 221 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003339/7.609, allocations: 105 kB / 2.922 GB, free: 220.9 MB / 0.8855 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.RCha to false. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.XCha to false. Notification: Performance of FrontEnd - DAE generated: time 0.6732/8.282, allocations: 146.1 MB / 3.064 GB, free: 84.61 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.994e-06/8.282, allocations: 0 / 3.064 GB, free: 84.61 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003747/8.282, allocations: 83.92 kB / 3.065 GB, free: 84.53 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: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.01122/8.294, allocations: 2.994 MB / 3.067 GB, free: 81.48 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/8.294, allocations: 16.03 kB / 3.067 GB, free: 81.46 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001919/8.296, allocations: 450.6 kB / 3.068 GB, free: 81.01 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007609/8.303, allocations: 0.8345 MB / 3.069 GB, free: 80.17 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007374/8.311, allocations: 2.13 MB / 3.071 GB, free: 77.98 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002785/8.311, allocations: 222.1 kB / 3.071 GB, free: 77.77 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/8.313, allocations: 304 kB / 3.071 GB, free: 77.47 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01886/8.331, allocations: 4.241 MB / 3.075 GB, free: 73.09 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001761/8.332, allocations: 7.938 kB / 3.075 GB, free: 73.08 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00127/8.333, allocations: 128 kB / 3.076 GB, free: 72.96 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002633/8.333, allocations: 173.9 kB / 3.076 GB, free: 72.79 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/8.345, allocations: 3.834 MB / 3.079 GB, free: 68.95 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03705/8.383, allocations: 18.58 MB / 3.098 GB, free: 48.91 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004412/8.387, allocations: 1.735 MB / 3.099 GB, free: 47.17 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002243/8.389, allocations: 0.9184 MB / 3.1 GB, free: 46.25 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003549/8.39, allocations: 134.4 kB / 3.1 GB, free: 46.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002431/8.392, allocations: 1.066 MB / 3.101 GB, free: 44.98 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=147): time 6.292e-06/8.392, allocations: 0 / 3.101 GB, free: 44.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=182): time 0.04447/8.437, allocations: 12 MB / 3.113 GB, free: 32.89 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001819/8.437, allocations: 0.5886 MB / 3.114 GB, free: 32.16 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00456/8.442, allocations: 1.835 MB / 3.115 GB, free: 30.28 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0005021/8.442, allocations: 57.7 kB / 3.116 GB, free: 30.22 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001788/8.444, allocations: 1.475 MB / 3.117 GB, free: 28.72 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009085/8.445, allocations: 0.6124 MB / 3.118 GB, free: 28.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/8.445, allocations: 40 kB / 3.118 GB, free: 28.06 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002047/8.445, allocations: 394.1 kB / 3.118 GB, free: 27.67 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/8.448, allocations: 1.07 MB / 3.119 GB, free: 26.6 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/8.452, allocations: 1.644 MB / 3.121 GB, free: 24.71 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003402/8.455, allocations: 1.36 MB / 3.122 GB, free: 23.36 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-05/8.455, allocations: 4 kB / 3.122 GB, free: 23.35 MB / 0.8855 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01552/8.471, allocations: 4.15 MB / 3.126 GB, free: 19.18 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001232/8.472, allocations: 5.874 MB / 3.132 GB, free: 12.81 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.824e-05/8.472, allocations: 12 kB / 3.132 GB, free: 12.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008787/8.481, allocations: 1.437 MB / 3.133 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003704/8.485, allocations: 479.2 kB / 3.134 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0123/8.497, allocations: 5.846 MB / 3.139 GB, free: 4.875 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003753/8.501, allocations: 215.5 kB / 3.14 GB, free: 4.664 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005283/8.501, allocations: 91.97 kB / 3.14 GB, free: 4.574 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/8.501, allocations: 4 kB / 3.14 GB, free: 4.57 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01153/8.513, allocations: 3.42 MB / 3.143 GB, free: 1.145 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.69e-05/8.513, allocations: 16 kB / 3.143 GB, free: 1.129 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005306/8.518, allocations: 0.8916 MB / 3.144 GB, free: 240 kB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.6255/9.144, allocations: 494.9 kB / 3.144 GB, free: 235.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01376/9.158, allocations: 4.866 MB / 3.149 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003725/9.162, allocations: 179.5 kB / 3.149 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006839/9.162, allocations: 93.44 kB / 3.149 GB, free: 234.4 MB / 0.8855 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic reactance of the cable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (234): * Single equations (assignments): 232 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 12} * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0009039/9.163, allocations: 239.1 kB / 3.15 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009977/9.164, allocations: 224.9 kB / 3.15 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01566/9.18, allocations: 3.742 MB / 3.153 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.233e-05/9.18, allocations: 21.84 kB / 3.153 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.196e-05/9.18, allocations: 6.797 kB / 3.153 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.603e-05/9.18, allocations: 19.38 kB / 3.153 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03054/9.211, allocations: 9.248 MB / 3.162 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.726e-05/9.211, allocations: 8.844 kB / 3.163 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00291/9.214, allocations: 332.3 kB / 3.163 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00943/9.223, allocations: 1.396 MB / 3.164 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004938/9.224, allocations: 49.45 kB / 3.164 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01972/9.243, allocations: 8.216 MB / 3.172 GB, free: 230.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/9.243, allocations: 12.84 kB / 3.172 GB, free: 230.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01502/9.259, allocations: 4.378 MB / 3.177 GB, free: 229.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002471/9.261, allocations: 0.6423 MB / 3.177 GB, free: 229 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00107/9.262, allocations: 42.72 kB / 3.177 GB, free: 229 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003489/9.266, allocations: 186 kB / 3.177 GB, free: 229 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007576/9.267, allocations: 159.2 kB / 3.178 GB, free: 229 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000246/9.267, allocations: 61.27 kB / 3.178 GB, free: 229 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.004101/9.271, allocations: 1.424 MB / 3.179 GB, free: 228.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.91e-07/9.271, allocations: 0.5625 kB / 3.179 GB, free: 228.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.007298/9.278, allocations: 1.263 MB / 3.18 GB, free: 228.8 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (166): * Single equations (assignments): 162 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,80.0%) 11} * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01665/9.295, allocations: 7.143 MB / 3.187 GB, free: 225.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0139/9.309, allocations: 4.732 MB / 3.192 GB, free: 225.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.638e-05/9.309, allocations: 3.969 kB / 3.192 GB, free: 225.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.005751/9.315, allocations: 1.804 MB / 3.194 GB, free: 225 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004777/9.32, allocations: 0.5527 MB / 3.194 GB, free: 224.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01927/9.339, allocations: 6.085 MB / 3.2 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004161/9.343, allocations: 2.471 MB / 3.202 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.007326/9.35, allocations: 1.3 MB / 3.204 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002779/9.353, allocations: 1.192 MB / 3.205 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of SimCode: time 1.212e-06/9.353, allocations: 0 / 3.205 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2021/9.555, allocations: 69.29 MB / 3.273 GB, free: 213.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002379/9.556, allocations: 251.9 kB / 3.273 GB, free: 213 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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o] Error 1