Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.19/4.19, allocations: 464.6 MB / 476.8 MB, free: 2.191 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.511e-05/3.504e-05, allocations: 4 kB / 0.5732 GB, free: 5.609 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2317, allocations: 107.1 MB / 0.6778 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.287/7.519, allocations: 2.248 GB / 2.926 GB, free: 216.9 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003794/7.519, allocations: 104.1 kB / 2.926 GB, free: 216.8 MB / 0.8855 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/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 latest/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.5718/8.091, allocations: 155.4 MB / 3.078 GB, free: 70.69 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.793e-06/8.091, allocations: 0 / 3.078 GB, free: 70.69 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004641/8.092, allocations: 87.92 kB / 3.078 GB, free: 70.61 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.01169/8.103, allocations: 3.063 MB / 3.081 GB, free: 67.48 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.379e-05/8.103, allocations: 8.031 kB / 3.081 GB, free: 67.47 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002111/8.105, allocations: 462.9 kB / 3.082 GB, free: 67.01 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00764/8.113, allocations: 0.8265 MB / 3.082 GB, free: 66.18 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007875/8.121, allocations: 2.285 MB / 3.085 GB, free: 63.84 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003009/8.121, allocations: 230.2 kB / 3.085 GB, free: 63.61 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001558/8.123, allocations: 304 kB / 3.085 GB, free: 63.32 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01473/8.138, allocations: 4.314 MB / 3.089 GB, free: 58.84 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001353/8.138, allocations: 15.92 kB / 3.089 GB, free: 58.83 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009114/8.139, allocations: 132 kB / 3.09 GB, free: 58.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002724/8.139, allocations: 174 kB / 3.09 GB, free: 58.53 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01199/8.151, allocations: 3.873 MB / 3.094 GB, free: 54.65 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03853/8.19, allocations: 19.87 MB / 3.113 GB, free: 33.21 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00484/8.195, allocations: 1.811 MB / 3.115 GB, free: 31.4 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/8.197, allocations: 0.9422 MB / 3.116 GB, free: 30.46 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003662/8.197, allocations: 130.4 kB / 3.116 GB, free: 30.31 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002497/8.2, allocations: 1.087 MB / 3.117 GB, free: 29.19 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=150): time 5.631e-06/8.2, allocations: 0 / 3.117 GB, free: 29.19 MB / 0.8855 GB Notification: Performance of matching and sorting (n=187): time 0.05097/8.251, allocations: 11.83 MB / 3.128 GB, free: 17.26 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001693/8.251, allocations: 0.51 MB / 3.129 GB, free: 16.64 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005031/8.256, allocations: 2.03 MB / 3.131 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000589/8.257, allocations: 61.7 kB / 3.131 GB, free: 14.5 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001807/8.259, allocations: 1.512 MB / 3.132 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001022/8.26, allocations: 0.6238 MB / 3.133 GB, free: 12.34 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000271/8.26, allocations: 40 kB / 3.133 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001837/8.26, allocations: 385.8 kB / 3.133 GB, free: 11.91 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003028/8.263, allocations: 1.097 MB / 3.134 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003454/8.267, allocations: 1.609 MB / 3.136 GB, free: 9.008 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003456/8.27, allocations: 1.352 MB / 3.137 GB, free: 7.66 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.751e-05/8.27, allocations: 8 kB / 3.137 GB, free: 7.652 MB / 0.8855 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01864/8.289, allocations: 4.516 MB / 3.142 GB, free: 3.105 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.6286/8.918, allocations: 4.655 MB / 3.146 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.681e-05/8.918, allocations: 12.53 kB / 3.146 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0213/8.939, allocations: 1.849 MB / 3.148 GB, free: 224.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006931/8.946, allocations: 475.4 kB / 3.149 GB, free: 224.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02941/8.975, allocations: 9.507 MB / 3.158 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006185/8.982, allocations: 203.7 kB / 3.158 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008253/8.983, allocations: 87.59 kB / 3.158 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/8.983, allocations: 3.875 kB / 3.158 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02377/9.006, allocations: 3.665 MB / 3.162 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.042e-05/9.007, allocations: 12.38 kB / 3.162 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01202/9.019, allocations: 1.176 MB / 3.163 GB, free: 219.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006137/9.025, allocations: 492.5 kB / 3.163 GB, free: 219.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02367/9.049, allocations: 7.5 MB / 3.171 GB, free: 215.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005638/9.054, allocations: 168.9 kB / 3.171 GB, free: 215.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008301/9.055, allocations: 89.47 kB / 3.171 GB, free: 215.8 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.001283/9.057, allocations: 231.4 kB / 3.171 GB, free: 215.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001337/9.058, allocations: 242.4 kB / 3.171 GB, free: 215.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03206/9.09, allocations: 4.337 MB / 3.176 GB, free: 215.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.787e-05/9.09, allocations: 29.47 kB / 3.176 GB, free: 215.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.991e-05/9.09, allocations: 4.797 kB / 3.176 GB, free: 215.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.821e-05/9.09, allocations: 12.78 kB / 3.176 GB, free: 215.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03017/9.12, allocations: 9.412 MB / 3.185 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-05/9.121, allocations: 7.703 kB / 3.185 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003002/9.124, allocations: 360.1 kB / 3.185 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.012/9.136, allocations: 1.811 MB / 3.187 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004958/9.136, allocations: 51.17 kB / 3.187 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02235/9.159, allocations: 13.14 MB / 3.2 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/9.159, allocations: 13.69 kB / 3.2 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01656/9.175, allocations: 4.681 MB / 3.204 GB, free: 205.9 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00248/9.178, allocations: 0.6833 MB / 3.205 GB, free: 205.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008119/9.179, allocations: 45.75 kB / 3.205 GB, free: 205.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003227/9.182, allocations: 196 kB / 3.205 GB, free: 205.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006211/9.182, allocations: 149.4 kB / 3.205 GB, free: 205.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002333/9.183, allocations: 64.33 kB / 3.206 GB, free: 205.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.003552/9.186, allocations: 1.586 MB / 3.207 GB, free: 205.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.213e-06/9.186, allocations: 0 / 3.207 GB, free: 205.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.006754/9.193, allocations: 1.282 MB / 3.208 GB, free: 205.5 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.01915/9.212, allocations: 7.048 MB / 3.215 GB, free: 202.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01589/9.228, allocations: 5.27 MB / 3.22 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.735e-05/9.228, allocations: 3.75 kB / 3.22 GB, free: 202.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.006516/9.235, allocations: 2.242 MB / 3.223 GB, free: 201.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005061/9.24, allocations: 0.5801 MB / 3.223 GB, free: 201 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02183/9.262, allocations: 6.261 MB / 3.229 GB, free: 198.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003398/9.265, allocations: 2.537 MB / 3.232 GB, free: 197.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.006929/9.272, allocations: 1.385 MB / 3.233 GB, free: 197.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002691/9.275, allocations: 1.276 MB / 3.234 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.362e-06/9.275, allocations: 0 / 3.234 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1706/9.446, allocations: 74.13 MB / 3.307 GB, free: 173.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001671/9.446, allocations: 254.7 kB / 3.307 GB, free: 172.9 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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_latest_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 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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o] Error 1