Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.791/1.791, allocations: 292.6 MB / 307.5 MB, free: 5.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 177 kB / 377.1 MB, free: 1.531 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.4 MB / 0.6366 GB, free: 8.641 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001055/0.001055, allocations: 92.03 kB / 0.7509 GB, free: 62.94 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004261, allocations: 8 kB / 0.8749 GB, free: 11.13 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3221, allocations: 116.3 MB / 0.9884 GB, free: 6.676 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.436/6.758, allocations: 2.102 GB / 3.091 GB, free: 115.9 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003934/6.759, allocations: 108.6 kB / 3.091 GB, free: 115.8 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1227/6.881, allocations: 50.71 MB / 3.14 GB, free: 65.12 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.306e-06/6.881, allocations: 0 / 3.14 GB, free: 65.12 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001738/6.882, allocations: 28 kB / 3.14 GB, free: 65.09 MB / 0.948 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.003872/6.885, allocations: 1.468 MB / 3.142 GB, free: 63.56 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/6.885, allocations: 12.02 kB / 3.142 GB, free: 63.55 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004671/6.886, allocations: 156.4 kB / 3.142 GB, free: 63.39 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001757/6.888, allocations: 270.1 kB / 3.142 GB, free: 63.12 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001969/6.89, allocations: 0.8061 MB / 3.143 GB, free: 62.28 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.024e-05/6.89, allocations: 74 kB / 3.143 GB, free: 62.21 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/6.89, allocations: 99.92 kB / 3.143 GB, free: 62.11 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002224/6.892, allocations: 1.143 MB / 3.144 GB, free: 60.89 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/6.892, allocations: 4 kB / 3.144 GB, free: 60.89 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001241/6.892, allocations: 43.98 kB / 3.144 GB, free: 60.85 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.215e-05/6.893, allocations: 49.98 kB / 3.144 GB, free: 60.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/6.894, allocations: 1.292 MB / 3.146 GB, free: 59.5 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006657/6.901, allocations: 4.36 MB / 3.15 GB, free: 54.93 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/6.903, allocations: 0.8073 MB / 3.151 GB, free: 54.12 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.747e-05/6.903, allocations: 32.69 kB / 3.151 GB, free: 54.09 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007359/6.903, allocations: 469.8 kB / 3.151 GB, free: 53.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=80): time 4.779e-06/6.904, allocations: 0 / 3.151 GB, free: 53.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=80): time 0.002092/6.906, allocations: 1.089 MB / 3.152 GB, free: 52.48 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/6.906, allocations: 346.8 kB / 3.153 GB, free: 52.07 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/6.907, allocations: 0.8899 MB / 3.154 GB, free: 51.15 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.616e-05/6.907, allocations: 41.7 kB / 3.154 GB, free: 51.11 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003622/6.908, allocations: 0.5154 MB / 3.154 GB, free: 50.58 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001974/6.908, allocations: 276 kB / 3.154 GB, free: 50.31 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/6.908, allocations: 16 kB / 3.154 GB, free: 50.29 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.961e-05/6.908, allocations: 334 kB / 3.155 GB, free: 49.96 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/6.908, allocations: 253.8 kB / 3.155 GB, free: 49.71 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005762/6.909, allocations: 441.4 kB / 3.155 GB, free: 49.21 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005298/6.909, allocations: 314.8 kB / 3.156 GB, free: 48.91 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/6.909, allocations: 3.938 kB / 3.156 GB, free: 48.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001404/6.911, allocations: 0.8289 MB / 3.156 GB, free: 48.07 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002799/6.911, allocations: 0.964 MB / 3.157 GB, free: 47.02 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/6.911, allocations: 7.984 kB / 3.157 GB, free: 47.02 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002128/6.911, allocations: 36.78 kB / 3.157 GB, free: 46.98 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006743/6.912, allocations: 167.7 kB / 3.158 GB, free: 46.81 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003206/6.912, allocations: 0.5407 MB / 3.158 GB, free: 46.25 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007961/6.913, allocations: 103.2 kB / 3.158 GB, free: 46.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.151e-05/6.913, allocations: 35.98 kB / 3.158 GB, free: 46.11 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/6.913, allocations: 8.094 kB / 3.158 GB, free: 46.1 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001097/6.914, allocations: 0.6911 MB / 3.159 GB, free: 45.41 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.505e-06/6.914, allocations: 8.062 kB / 3.159 GB, free: 45.41 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.126e-06/6.914, allocations: 4 kB / 3.159 GB, free: 45.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006799/6.915, allocations: 171.8 kB / 3.159 GB, free: 45.23 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/6.915, allocations: 15.94 kB / 3.159 GB, free: 45.22 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007907/6.916, allocations: 103.2 kB / 3.159 GB, free: 45.12 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.906e-05/6.916, allocations: 31.98 kB / 3.159 GB, free: 45.09 MB / 0.948 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 () * Number of clocked 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.0006073/6.917, allocations: 403 kB / 3.16 GB, free: 44.68 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/6.917, allocations: 102.8 kB / 3.16 GB, free: 44.58 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001814/6.919, allocations: 0.9931 MB / 3.161 GB, free: 43.58 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/6.919, allocations: 8 kB / 3.161 GB, free: 43.57 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/6.919, allocations: 4 kB / 3.161 GB, free: 43.57 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/6.919, allocations: 7.969 kB / 3.161 GB, free: 43.56 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/6.921, allocations: 1.344 MB / 3.162 GB, free: 42.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/6.921, allocations: 0 / 3.162 GB, free: 42.16 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/6.921, allocations: 159.8 kB / 3.162 GB, free: 42 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/6.921, allocations: 28.91 kB / 3.162 GB, free: 41.97 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-05/6.921, allocations: 23.98 kB / 3.162 GB, free: 41.95 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008029/6.922, allocations: 1.288 MB / 3.163 GB, free: 40.52 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/6.922, allocations: 0 / 3.163 GB, free: 40.52 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/6.924, allocations: 0.896 MB / 3.164 GB, free: 39.58 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005526/6.924, allocations: 327.4 kB / 3.165 GB, free: 39.24 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001818/6.924, allocations: 20 kB / 3.165 GB, free: 39.22 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/6.925, allocations: 79.88 kB / 3.165 GB, free: 39.14 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/6.925, allocations: 60.88 kB / 3.165 GB, free: 39.09 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.905e-05/6.925, allocations: 35.97 kB / 3.165 GB, free: 39.05 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0008945/6.926, allocations: 0.695 MB / 3.166 GB, free: 38.34 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.7e-07/6.926, allocations: 0 / 3.166 GB, free: 38.34 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001692/6.928, allocations: 0.5451 MB / 3.166 GB, free: 37.8 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 88 * 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.003002/6.931, allocations: 2.066 MB / 3.168 GB, free: 35.83 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001863/6.933, allocations: 1.053 MB / 3.169 GB, free: 34.79 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/6.933, allocations: 0.875 kB / 3.169 GB, free: 34.79 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.000666/6.933, allocations: 496.7 kB / 3.17 GB, free: 34.29 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001238/6.935, allocations: 294.8 kB / 3.17 GB, free: 34 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009818/6.944, allocations: 7.612 MB / 3.177 GB, free: 26.14 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007145/6.945, allocations: 1.161 MB / 3.178 GB, free: 24.95 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001415/6.947, allocations: 399.7 kB / 3.179 GB, free: 24.55 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006884/6.947, allocations: 459.3 kB / 3.179 GB, free: 24.1 MB / 0.948 GB Notification: Performance of SimCode: time 1.653e-06/6.947, allocations: 0 / 3.179 GB, free: 24.1 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05507/7.003, allocations: 23.89 MB / 3.203 GB, free: 440 kB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/7.003, allocations: 251.3 kB / 3.203 GB, free: 96 kB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine.o Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o] Error 1