Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_0_0_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.0.0/package.mo): time 2.705/2.705, allocations: 287.3 MB / 302.3 MB, free: 8.301 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.002259/0.002259, allocations: 193.3 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.4 MB / 0.6295 GB, free: 10.64 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001277/0.001276, allocations: 96.34 kB / 0.7428 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006601/0.0006602, allocations: 10.25 kB / 0.8657 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2316, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.061/7.292, allocations: 2.101 GB / 3.08 GB, free: 168.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003745/7.293, allocations: 108.8 kB / 3.08 GB, free: 168.5 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0/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.0.0/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.1973/7.49, allocations: 50.7 MB / 3.129 GB, free: 125.4 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.615e-06/7.49, allocations: 0 / 3.129 GB, free: 125.4 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001238/7.49, allocations: 31.98 kB / 3.129 GB, free: 125.3 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.003631/7.494, allocations: 1.456 MB / 3.131 GB, free: 123.8 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/7.494, allocations: 12.02 kB / 3.131 GB, free: 123.8 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004427/7.494, allocations: 165 kB / 3.131 GB, free: 123.6 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002228/7.497, allocations: 282 kB / 3.131 GB, free: 123.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002251/7.499, allocations: 0.8027 MB / 3.132 GB, free: 122.5 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.841e-05/7.499, allocations: 73.98 kB / 3.132 GB, free: 122.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/7.499, allocations: 96 kB / 3.132 GB, free: 122.3 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002824/7.502, allocations: 1.139 MB / 3.133 GB, free: 121.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.194e-05/7.502, allocations: 4 kB / 3.133 GB, free: 121.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001656/7.502, allocations: 44 kB / 3.133 GB, free: 121.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-05/7.502, allocations: 49.98 kB / 3.133 GB, free: 121 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003136/7.506, allocations: 1.292 MB / 3.134 GB, free: 119.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009455/7.515, allocations: 4.367 MB / 3.139 GB, free: 115.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/7.518, allocations: 0.8071 MB / 3.14 GB, free: 114.3 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001531/7.518, allocations: 36.67 kB / 3.14 GB, free: 114.3 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/7.519, allocations: 473.8 kB / 3.14 GB, free: 113.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=80): time 4.128e-06/7.519, allocations: 0 / 3.14 GB, free: 113.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=80): time 0.003392/7.522, allocations: 1.085 MB / 3.141 GB, free: 112.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/7.523, allocations: 350.8 kB / 3.141 GB, free: 112.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001869/7.524, allocations: 0.8743 MB / 3.142 GB, free: 111.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002387/7.525, allocations: 45.77 kB / 3.142 GB, free: 111.3 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005072/7.525, allocations: 0.5231 MB / 3.143 GB, free: 110.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003063/7.526, allocations: 272 kB / 3.143 GB, free: 110.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/7.526, allocations: 16 kB / 3.143 GB, free: 110.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001179/7.526, allocations: 334 kB / 3.143 GB, free: 110.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008175/7.527, allocations: 257.8 kB / 3.144 GB, free: 109.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009491/7.528, allocations: 441.4 kB / 3.144 GB, free: 109.4 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009013/7.528, allocations: 316.5 kB / 3.144 GB, free: 109.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/7.528, allocations: 4 kB / 3.144 GB, free: 109.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00244/7.531, allocations: 0.825 MB / 3.145 GB, free: 108.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002223/7.531, allocations: 0.97 MB / 3.146 GB, free: 107.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/7.531, allocations: 11.98 kB / 3.146 GB, free: 107.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002395/7.531, allocations: 24.84 kB / 3.146 GB, free: 107.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001344/7.533, allocations: 175.7 kB / 3.146 GB, free: 107 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003783/7.533, allocations: 0.5329 MB / 3.147 GB, free: 106.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/7.535, allocations: 99.25 kB / 3.147 GB, free: 106.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/7.535, allocations: 35.98 kB / 3.147 GB, free: 106.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/7.535, allocations: 4 kB / 3.147 GB, free: 106.3 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001998/7.537, allocations: 0.6949 MB / 3.148 GB, free: 105.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/7.537, allocations: 4 kB / 3.148 GB, free: 105.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/7.537, allocations: 8.312 kB / 3.148 GB, free: 105.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/7.538, allocations: 183.7 kB / 3.148 GB, free: 105.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/7.538, allocations: 4 kB / 3.148 GB, free: 105.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001257/7.54, allocations: 99.19 kB / 3.148 GB, free: 105.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/7.54, allocations: 35.98 kB / 3.148 GB, free: 105.3 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.0009561/7.541, allocations: 406.7 kB / 3.148 GB, free: 104.9 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004025/7.541, allocations: 106.8 kB / 3.148 GB, free: 104.8 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/7.544, allocations: 0.9931 MB / 3.149 GB, free: 103.8 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/7.544, allocations: 8 kB / 3.149 GB, free: 103.8 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.328e-06/7.544, allocations: 0 / 3.149 GB, free: 103.8 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/7.544, allocations: 7.984 kB / 3.149 GB, free: 103.8 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00245/7.547, allocations: 1.347 MB / 3.151 GB, free: 102.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.535e-06/7.547, allocations: 0 / 3.151 GB, free: 102.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001244/7.548, allocations: 159.8 kB / 3.151 GB, free: 102.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001712/7.548, allocations: 24.84 kB / 3.151 GB, free: 102.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.708e-05/7.548, allocations: 28.05 kB / 3.151 GB, free: 102.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009672/7.549, allocations: 1.28 MB / 3.152 GB, free: 100.7 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/7.549, allocations: 4.031 kB / 3.152 GB, free: 100.7 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/7.552, allocations: 0.8997 MB / 3.153 GB, free: 99.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007261/7.553, allocations: 323.4 kB / 3.153 GB, free: 99.46 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/7.553, allocations: 20 kB / 3.153 GB, free: 99.45 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/7.554, allocations: 75.94 kB / 3.154 GB, free: 99.37 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/7.554, allocations: 68.86 kB / 3.154 GB, free: 99.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.894e-05/7.554, allocations: 27.98 kB / 3.154 GB, free: 99.28 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001326/7.556, allocations: 0.6911 MB / 3.154 GB, free: 98.57 MB / 0.948 GB Notification: Performance of sort global known variables: time 4.61e-07/7.556, allocations: 0 / 3.154 GB, free: 98.57 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002111/7.558, allocations: 0.5451 MB / 3.155 GB, free: 98.03 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.004274/7.562, allocations: 2.08 MB / 3.157 GB, free: 96.08 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003247/7.565, allocations: 1.057 MB / 3.158 GB, free: 95.03 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/7.566, allocations: 0 / 3.158 GB, free: 95.03 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00122/7.567, allocations: 497.2 kB / 3.158 GB, free: 94.54 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002295/7.569, allocations: 285.9 kB / 3.159 GB, free: 94.25 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/7.585, allocations: 7.608 MB / 3.166 GB, free: 86.39 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/7.585, allocations: 1.169 MB / 3.167 GB, free: 85.19 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002305/7.588, allocations: 407.6 kB / 3.168 GB, free: 84.79 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/7.589, allocations: 459.3 kB / 3.168 GB, free: 84.34 MB / 0.948 GB Notification: Performance of SimCode: time 1.503e-06/7.589, allocations: 3.938 kB / 3.168 GB, free: 84.33 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07347/7.662, allocations: 23.88 MB / 3.191 GB, free: 60.74 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/7.663, allocations: 254.6 kB / 3.192 GB, free: 60.41 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -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.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.o Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c In file included from Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_8_0_0_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 -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.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c In file included from Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_8_0_0_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_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Resources/C-Sources/getTimeSpan.c:6:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_8_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o] Error 1