Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sources.Examples.WindTurbine.conf.json 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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_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 7.0.1/package.mo): time 2.287/2.287, allocations: 251 MB / 265.9 MB, free: 11.69 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001643/0.001643, allocations: 181.9 kB / 325.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.405/2.405, allocations: 205.4 MB / 0.5764 GB, free: 21.19 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001199/0.001199, allocations: 93.53 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007271/0.000727, allocations: 17.53 kB / 0.795 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.309, allocations: 106.3 MB / 0.8988 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.62/7.929, allocations: 2.219 GB / 3.118 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003785/7.93, allocations: 105.5 kB / 3.118 GB, free: 241.3 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1/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 7.0.1/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.1972/8.127, allocations: 50.73 MB / 3.168 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.996e-06/8.127, allocations: 0 / 3.168 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001339/8.127, allocations: 35.45 kB / 3.168 GB, free: 234.8 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004316/8.131, allocations: 1.451 MB / 3.169 GB, free: 233.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/8.132, allocations: 11.8 kB / 3.169 GB, free: 233.8 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006324/8.132, allocations: 164.8 kB / 3.169 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002562/8.135, allocations: 278.5 kB / 3.17 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002642/8.137, allocations: 0.7895 MB / 3.17 GB, free: 233.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-05/8.138, allocations: 81.05 kB / 3.171 GB, free: 233.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002191/8.138, allocations: 91.22 kB / 3.171 GB, free: 233.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00327/8.141, allocations: 1.156 MB / 3.172 GB, free: 232.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.014e-05/8.141, allocations: 3.906 kB / 3.172 GB, free: 232.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001935/8.141, allocations: 41.25 kB / 3.172 GB, free: 232.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-05/8.142, allocations: 52.42 kB / 3.172 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003652/8.145, allocations: 1.297 MB / 3.173 GB, free: 232.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009881/8.155, allocations: 4.356 MB / 3.177 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002445/8.158, allocations: 0.8052 MB / 3.178 GB, free: 229.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001231/8.158, allocations: 36.05 kB / 3.178 GB, free: 229.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/8.159, allocations: 471.2 kB / 3.179 GB, free: 229.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=80): time 4.328e-06/8.159, allocations: 0 / 3.179 GB, free: 229.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=80): time 0.00346/8.162, allocations: 1.094 MB / 3.18 GB, free: 228.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/8.163, allocations: 354.4 kB / 3.18 GB, free: 228.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001885/8.164, allocations: 0.8801 MB / 3.181 GB, free: 228.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002283/8.165, allocations: 43.17 kB / 3.181 GB, free: 228.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000572/8.165, allocations: 0.5143 MB / 3.181 GB, free: 227.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003018/8.166, allocations: 267.3 kB / 3.182 GB, free: 227.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/8.166, allocations: 15.97 kB / 3.182 GB, free: 227.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.848e-05/8.166, allocations: 335.1 kB / 3.182 GB, free: 227.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008058/8.167, allocations: 255 kB / 3.182 GB, free: 227.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009405/8.168, allocations: 439.1 kB / 3.183 GB, free: 227.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009187/8.169, allocations: 316.8 kB / 3.183 GB, free: 227.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/8.169, allocations: 3.938 kB / 3.183 GB, free: 227.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002603/8.171, allocations: 0.8304 MB / 3.184 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002487/8.171, allocations: 0.9705 MB / 3.185 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/8.171, allocations: 3.906 kB / 3.185 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002515/8.172, allocations: 28.31 kB / 3.185 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/8.173, allocations: 168.1 kB / 3.185 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003792/8.174, allocations: 0.5387 MB / 3.185 GB, free: 225.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/8.175, allocations: 104.5 kB / 3.186 GB, free: 225.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.743e-05/8.175, allocations: 35.14 kB / 3.186 GB, free: 225.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/8.175, allocations: 10.06 kB / 3.186 GB, free: 225.2 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002034/8.177, allocations: 0.6944 MB / 3.186 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/8.177, allocations: 0 / 3.186 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/8.177, allocations: 15.75 kB / 3.186 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001296/8.178, allocations: 176.3 kB / 3.186 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/8.178, allocations: 3.906 kB / 3.186 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/8.18, allocations: 105.4 kB / 3.187 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-05/8.18, allocations: 34.86 kB / 3.187 GB, free: 225 MB / 0.8855 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.001005/8.181, allocations: 400.9 kB / 3.187 GB, free: 224.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003364/8.181, allocations: 109.5 kB / 3.187 GB, free: 224.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003097/8.184, allocations: 0.9895 MB / 3.188 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/8.184, allocations: 11.81 kB / 3.188 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/8.184, allocations: 3.906 kB / 3.188 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/8.184, allocations: 3.984 kB / 3.188 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/8.187, allocations: 1.344 MB / 3.189 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/8.187, allocations: 0 / 3.189 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/8.188, allocations: 160.2 kB / 3.19 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001625/8.188, allocations: 32.06 kB / 3.19 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.387e-05/8.188, allocations: 22.02 kB / 3.19 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009896/8.189, allocations: 1.277 MB / 3.191 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/8.189, allocations: 3.906 kB / 3.191 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002412/8.192, allocations: 0.8996 MB / 3.192 GB, free: 222.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/8.193, allocations: 326.2 kB / 3.192 GB, free: 221.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/8.193, allocations: 22.98 kB / 3.192 GB, free: 221.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/8.194, allocations: 76.66 kB / 3.192 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/8.194, allocations: 58.94 kB / 3.192 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.61e-05/8.194, allocations: 38.11 kB / 3.192 GB, free: 221.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001331/8.196, allocations: 0.6934 MB / 3.193 GB, free: 221.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.51e-07/8.196, allocations: 0 / 3.193 GB, free: 221.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001958/8.198, allocations: 0.5397 MB / 3.193 GB, free: 221.5 MB / 0.8855 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.004347/8.202, allocations: 2.063 MB / 3.195 GB, free: 220.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003066/8.205, allocations: 1.054 MB / 3.196 GB, free: 220.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 9.067e-06/8.205, allocations: 4.25 kB / 3.196 GB, free: 220.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001088/8.206, allocations: 497.6 kB / 3.197 GB, free: 220 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002184/8.208, allocations: 298.4 kB / 3.197 GB, free: 219.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/8.224, allocations: 7.613 MB / 3.205 GB, free: 215.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008016/8.225, allocations: 1.158 MB / 3.206 GB, free: 214.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002448/8.227, allocations: 403.4 kB / 3.206 GB, free: 214.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/8.228, allocations: 461.8 kB / 3.207 GB, free: 214.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.823e-06/8.228, allocations: 3.938 kB / 3.207 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08018/8.308, allocations: 23.88 MB / 3.23 GB, free: 199.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003103/8.309, allocations: 250.8 kB / 3.23 GB, free: 198.8 MB / 0.8855 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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_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_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.o] Error 1