Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.308/4.308, allocations: 464.6 MB / 476.8 MB, free: 2.219 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.905e-05, allocations: 7.984 kB / 0.5732 GB, free: 5.633 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2579, allocations: 107.2 MB / 0.6778 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.289/7.547, allocations: 2.25 GB / 2.928 GB, free: 199 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003773/7.547, allocations: 112 kB / 2.928 GB, free: 199 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.5319/8.079, allocations: 146.1 MB / 3.071 GB, free: 61.85 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.595e-06/8.079, allocations: 0 / 3.071 GB, free: 61.85 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003869/8.08, allocations: 83.92 kB / 3.071 GB, free: 61.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: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.01149/8.091, allocations: 2.993 MB / 3.074 GB, free: 58.71 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/8.091, allocations: 12.03 kB / 3.074 GB, free: 58.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001943/8.093, allocations: 450.6 kB / 3.074 GB, free: 58.25 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007804/8.101, allocations: 0.8345 MB / 3.075 GB, free: 57.41 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006953/8.108, allocations: 2.126 MB / 3.077 GB, free: 55.23 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002732/8.108, allocations: 234 kB / 3.077 GB, free: 55 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001364/8.11, allocations: 296 kB / 3.078 GB, free: 54.71 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/8.123, allocations: 4.245 MB / 3.082 GB, free: 50.32 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001235/8.123, allocations: 11.94 kB / 3.082 GB, free: 50.31 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006364/8.124, allocations: 124 kB / 3.082 GB, free: 50.19 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002434/8.124, allocations: 177.9 kB / 3.082 GB, free: 50.02 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01148/8.135, allocations: 3.838 MB / 3.086 GB, free: 46.17 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03599/8.171, allocations: 18.57 MB / 3.104 GB, free: 26.14 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004285/8.176, allocations: 1.742 MB / 3.106 GB, free: 24.4 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001989/8.178, allocations: 0.9226 MB / 3.107 GB, free: 23.47 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003051/8.178, allocations: 138.3 kB / 3.107 GB, free: 23.32 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002221/8.18, allocations: 1.062 MB / 3.108 GB, free: 22.21 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=147): time 5.611e-06/8.18, allocations: 3.984 kB / 3.108 GB, free: 22.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=182): time 0.04323/8.224, allocations: 12 MB / 3.119 GB, free: 10.12 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/8.224, allocations: 0.5808 MB / 3.12 GB, free: 9.402 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004463/8.228, allocations: 1.839 MB / 3.122 GB, free: 7.516 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0005047/8.229, allocations: 57.7 kB / 3.122 GB, free: 7.453 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001693/8.231, allocations: 1.471 MB / 3.123 GB, free: 5.961 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000904/8.232, allocations: 0.6163 MB / 3.124 GB, free: 5.336 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/8.232, allocations: 40 kB / 3.124 GB, free: 5.297 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001537/8.232, allocations: 394.1 kB / 3.124 GB, free: 4.906 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002491/8.235, allocations: 1.066 MB / 3.125 GB, free: 3.836 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00308/8.238, allocations: 1.648 MB / 3.127 GB, free: 1.941 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003195/8.241, allocations: 1.36 MB / 3.128 GB, free: 0.582 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.716e-05/8.241, allocations: 4 kB / 3.128 GB, free: 0.5781 MB / 0.8855 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.6543/8.895, allocations: 4.133 MB / 3.132 GB, free: 232 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001426/8.897, allocations: 5.878 MB / 3.138 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-05/8.897, allocations: 15.5 kB / 3.138 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009974/8.907, allocations: 1.436 MB / 3.139 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003975/8.911, allocations: 474.5 kB / 3.14 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/8.925, allocations: 5.844 MB / 3.146 GB, free: 224.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003914/8.929, allocations: 210.6 kB / 3.146 GB, free: 224.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005142/8.929, allocations: 90.56 kB / 3.146 GB, free: 224.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/8.929, allocations: 4.375 kB / 3.146 GB, free: 224.1 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01306/8.942, allocations: 3.426 MB / 3.149 GB, free: 224 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.465e-05/8.943, allocations: 14.38 kB / 3.149 GB, free: 224 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005921/8.949, allocations: 0.8972 MB / 3.15 GB, free: 224 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/8.953, allocations: 0.4942 MB / 3.151 GB, free: 224 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/8.965, allocations: 4.856 MB / 3.155 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003497/8.969, allocations: 182 kB / 3.156 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003794/8.969, allocations: 94.61 kB / 3.156 GB, free: 222.7 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.0008586/8.97, allocations: 239.7 kB / 3.156 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007835/8.971, allocations: 222 kB / 3.156 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01519/8.986, allocations: 3.744 MB / 3.16 GB, free: 222.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.842e-05/8.986, allocations: 21.83 kB / 3.16 GB, free: 222.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.102e-05/8.986, allocations: 10.36 kB / 3.16 GB, free: 222.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.713e-05/8.986, allocations: 11.16 kB / 3.16 GB, free: 222.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02649/9.013, allocations: 9.254 MB / 3.169 GB, free: 221.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.499e-05/9.013, allocations: 11.69 kB / 3.169 GB, free: 221.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002667/9.015, allocations: 325.7 kB / 3.169 GB, free: 221.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01111/9.026, allocations: 1.406 MB / 3.17 GB, free: 221.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005283/9.027, allocations: 46.95 kB / 3.171 GB, free: 221.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02476/9.052, allocations: 8.221 MB / 3.179 GB, free: 218.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.446e-05/9.052, allocations: 12.12 kB / 3.179 GB, free: 218.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01831/9.07, allocations: 4.374 MB / 3.183 GB, free: 217.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002948/9.073, allocations: 0.6455 MB / 3.183 GB, free: 217.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008121/9.074, allocations: 43.75 kB / 3.184 GB, free: 217.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003862/9.078, allocations: 181.5 kB / 3.184 GB, free: 217.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006724/9.079, allocations: 156.4 kB / 3.184 GB, free: 217.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000293/9.079, allocations: 62.91 kB / 3.184 GB, free: 217.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.004379/9.083, allocations: 1.426 MB / 3.185 GB, free: 217 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.242e-06/9.083, allocations: 0 / 3.185 GB, free: 217 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.009264/9.093, allocations: 1.266 MB / 3.187 GB, free: 217 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.01855/9.111, allocations: 7.147 MB / 3.194 GB, free: 213.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01413/9.126, allocations: 4.74 MB / 3.198 GB, free: 212.8 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.543e-05/9.126, allocations: 0 / 3.198 GB, free: 212.8 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.005412/9.131, allocations: 1.798 MB / 3.2 GB, free: 212.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004679/9.136, allocations: 0.5591 MB / 3.2 GB, free: 212 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01801/9.154, allocations: 6.088 MB / 3.206 GB, free: 209.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003051/9.157, allocations: 2.461 MB / 3.209 GB, free: 208.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.006679/9.164, allocations: 1.305 MB / 3.21 GB, free: 208.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002578/9.166, allocations: 1.193 MB / 3.211 GB, free: 207.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.933e-06/9.166, allocations: 0 / 3.211 GB, free: 207.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1996/9.366, allocations: 69.27 MB / 3.279 GB, free: 187.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/9.366, allocations: 256.9 kB / 3.279 GB, free: 187.5 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_N.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c:7: In file included from ./Buildings_latest_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 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_N_functions.o' failed make: *** [Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o] Error 1