Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.584/4.584, allocations: 460.4 MB / 472.6 MB, free: 5.402 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.769e-05/4.776e-05, allocations: 4 kB / 0.5682 GB, free: 10.08 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3059, allocations: 106.2 MB / 0.6719 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.572/7.878, allocations: 2.248 GB / 2.92 GB, free: 222.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/7.878, allocations: 112.5 kB / 2.92 GB, free: 222.7 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.5721/8.451, allocations: 155.4 MB / 3.072 GB, free: 77.09 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.284e-06/8.451, allocations: 0 / 3.072 GB, free: 77.09 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004339/8.451, allocations: 91.92 kB / 3.072 GB, free: 77 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01124/8.462, allocations: 3.067 MB / 3.075 GB, free: 73.87 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.833e-05/8.462, allocations: 8.031 kB / 3.075 GB, free: 73.86 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001879/8.464, allocations: 454.9 kB / 3.075 GB, free: 73.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007546/8.472, allocations: 0.8382 MB / 3.076 GB, free: 72.56 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007424/8.479, allocations: 2.265 MB / 3.078 GB, free: 70.24 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/8.48, allocations: 234.2 kB / 3.079 GB, free: 70.01 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001316/8.481, allocations: 307.9 kB / 3.079 GB, free: 69.71 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/8.494, allocations: 4.318 MB / 3.083 GB, free: 65.23 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001343/8.494, allocations: 7.938 kB / 3.083 GB, free: 65.23 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006534/8.495, allocations: 132 kB / 3.083 GB, free: 65.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002724/8.495, allocations: 174 kB / 3.083 GB, free: 64.93 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01195/8.507, allocations: 3.877 MB / 3.087 GB, free: 61.04 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03756/8.545, allocations: 19.86 MB / 3.107 GB, free: 39.62 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004662/8.55, allocations: 1.811 MB / 3.108 GB, free: 37.8 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/8.552, allocations: 0.9306 MB / 3.109 GB, free: 36.87 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003428/8.552, allocations: 138.4 kB / 3.109 GB, free: 36.72 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002309/8.554, allocations: 1.086 MB / 3.111 GB, free: 35.59 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=150): time 5.02e-06/8.554, allocations: 0 / 3.111 GB, free: 35.59 MB / 0.8855 GB Notification: Performance of matching and sorting (n=187): time 0.05266/8.607, allocations: 11.84 MB / 3.122 GB, free: 23.67 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000166/8.607, allocations: 0.5178 MB / 3.123 GB, free: 23.04 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00439/8.612, allocations: 2.026 MB / 3.125 GB, free: 20.97 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0005395/8.612, allocations: 57.7 kB / 3.125 GB, free: 20.91 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001626/8.614, allocations: 1.515 MB / 3.126 GB, free: 19.37 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000887/8.615, allocations: 0.6199 MB / 3.127 GB, free: 18.74 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002325/8.615, allocations: 40 kB / 3.127 GB, free: 18.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001385/8.615, allocations: 385.9 kB / 3.127 GB, free: 18.32 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002538/8.618, allocations: 1.093 MB / 3.128 GB, free: 17.23 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002947/8.621, allocations: 1.605 MB / 3.13 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003018/8.624, allocations: 1.364 MB / 3.131 GB, free: 14.07 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-05/8.624, allocations: 4 kB / 3.131 GB, free: 14.06 MB / 0.8855 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01708/8.641, allocations: 4.52 MB / 3.135 GB, free: 9.512 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000949/8.642, allocations: 4.654 MB / 3.14 GB, free: 4.512 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.627e-05/8.642, allocations: 12 kB / 3.14 GB, free: 4.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01213/8.654, allocations: 1.85 MB / 3.142 GB, free: 2.629 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003734/8.658, allocations: 471.3 kB / 3.142 GB, free: 2.168 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6307/9.289, allocations: 9.506 MB / 3.152 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00645/9.295, allocations: 199.1 kB / 3.152 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006918/9.296, allocations: 89.84 kB / 3.152 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/9.296, allocations: 6.344 kB / 3.152 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01998/9.316, allocations: 3.668 MB / 3.155 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.392e-05/9.316, allocations: 18.5 kB / 3.155 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008054/9.324, allocations: 1.172 MB / 3.157 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004129/9.328, allocations: 482.1 kB / 3.157 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01596/9.344, allocations: 7.51 MB / 3.164 GB, free: 222.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005599/9.35, allocations: 171.6 kB / 3.165 GB, free: 222.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008311/9.351, allocations: 82.78 kB / 3.165 GB, free: 222.1 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: 51 * 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 (236): * Single equations (assignments): 230 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.001585/9.352, allocations: 237.2 kB / 3.165 GB, free: 222 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001387/9.354, allocations: 236.5 kB / 3.165 GB, free: 222 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02121/9.375, allocations: 4.349 MB / 3.169 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.035e-05/9.375, allocations: 20.81 kB / 3.169 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-05/9.375, allocations: 5.438 kB / 3.169 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.229e-05/9.375, allocations: 11.88 kB / 3.169 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03111/9.406, allocations: 9.407 MB / 3.179 GB, free: 220.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-05/9.407, allocations: 8.5 kB / 3.179 GB, free: 220.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003134/9.41, allocations: 358.1 kB / 3.179 GB, free: 220.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01246/9.422, allocations: 1.812 MB / 3.181 GB, free: 220.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005135/9.423, allocations: 51.31 kB / 3.181 GB, free: 220.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02524/9.448, allocations: 13.14 MB / 3.194 GB, free: 213 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-05/9.448, allocations: 4.719 kB / 3.194 GB, free: 213 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02369/9.472, allocations: 4.685 MB / 3.198 GB, free: 212.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003118/9.475, allocations: 0.6973 MB / 3.199 GB, free: 211.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00107/9.476, allocations: 39.56 kB / 3.199 GB, free: 211.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004345/9.48, allocations: 193.3 kB / 3.199 GB, free: 211.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008039/9.481, allocations: 155.8 kB / 3.199 GB, free: 211.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003391/9.482, allocations: 62.33 kB / 3.199 GB, free: 211.9 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.005079/9.487, allocations: 1.584 MB / 3.201 GB, free: 211.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 7.01e-07/9.487, allocations: 0 / 3.201 GB, free: 211.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.009112/9.496, allocations: 1.28 MB / 3.202 GB, free: 211.8 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (184): * Single equations (assignments): 176 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.02575/9.522, allocations: 7.06 MB / 3.209 GB, free: 209 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01586/9.538, allocations: 5.263 MB / 3.214 GB, free: 208.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.875e-05/9.538, allocations: 11.38 kB / 3.214 GB, free: 208.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.006484/9.544, allocations: 2.23 MB / 3.216 GB, free: 207.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/9.549, allocations: 0.5739 MB / 3.217 GB, free: 207.7 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01888/9.568, allocations: 6.253 MB / 3.223 GB, free: 205.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003851/9.572, allocations: 2.544 MB / 3.225 GB, free: 204.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.007254/9.579, allocations: 1.379 MB / 3.227 GB, free: 204.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002763/9.582, allocations: 1.275 MB / 3.228 GB, free: 203.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.463e-06/9.582, allocations: 0 / 3.228 GB, free: 203.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1731/9.755, allocations: 74.14 MB / 3.3 GB, free: 183 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/9.755, allocations: 257.8 kB / 3.301 GB, free: 182.7 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.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o] Error 1