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.203/2.203, allocations: 248.5 MB / 261 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001438/0.001438, allocations: 178.7 kB / 320.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.2 MB / 0.571 GB, free: 11.84 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.001189/0.001189, allocations: 90.5 kB / 0.6754 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.942e-05/3.961e-05, allocations: 0 / 0.7869 GB, free: 97.84 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2073, allocations: 106.2 MB / 0.8907 GB, free: 7.496 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.195/7.402, allocations: 2.219 GB / 3.11 GB, free: 115.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003433/7.402, allocations: 99.12 kB / 3.11 GB, free: 115.4 MB / 0.8698 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.1953/7.598, allocations: 50.32 MB / 3.159 GB, free: 68.05 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.124e-06/7.598, allocations: 0 / 3.159 GB, free: 68.05 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001349/7.598, allocations: 39.92 kB / 3.159 GB, free: 68.01 MB / 0.8698 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.003089/7.601, allocations: 1.286 MB / 3.16 GB, free: 66.67 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.334e-05/7.601, allocations: 12.03 kB / 3.161 GB, free: 66.66 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003032/7.601, allocations: 148.7 kB / 3.161 GB, free: 66.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002196/7.604, allocations: 289.7 kB / 3.161 GB, free: 66.22 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/7.606, allocations: 0.7912 MB / 3.162 GB, free: 65.38 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.19e-05/7.606, allocations: 77.94 kB / 3.162 GB, free: 65.31 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/7.606, allocations: 96 kB / 3.162 GB, free: 65.21 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/7.609, allocations: 1.104 MB / 3.163 GB, free: 64.04 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.403e-05/7.609, allocations: 7.938 kB / 3.163 GB, free: 64.03 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/7.609, allocations: 43.98 kB / 3.163 GB, free: 63.99 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.521e-05/7.609, allocations: 57.97 kB / 3.163 GB, free: 63.93 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/7.612, allocations: 1.241 MB / 3.164 GB, free: 62.69 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008671/7.621, allocations: 4.356 MB / 3.169 GB, free: 58.12 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002032/7.623, allocations: 0.7654 MB / 3.169 GB, free: 57.34 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008446/7.623, allocations: 323.1 kB / 3.17 GB, free: 57.03 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/7.624, allocations: 32.8 kB / 3.17 GB, free: 57 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009013/7.625, allocations: 455.9 kB / 3.17 GB, free: 56.52 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=80): time 3.867e-06/7.625, allocations: 0 / 3.17 GB, free: 56.52 MB / 0.8698 GB Notification: Performance of matching and sorting (n=80): time 0.001991/7.627, allocations: 0.7029 MB / 3.171 GB, free: 55.81 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/7.627, allocations: 346.9 kB / 3.171 GB, free: 55.39 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001748/7.628, allocations: 0.8745 MB / 3.172 GB, free: 54.49 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001584/7.629, allocations: 37.7 kB / 3.172 GB, free: 54.45 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004924/7.629, allocations: 0.5232 MB / 3.172 GB, free: 53.91 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/7.629, allocations: 264.2 kB / 3.173 GB, free: 53.65 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/7.629, allocations: 12 kB / 3.173 GB, free: 53.64 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.973e-05/7.63, allocations: 337.9 kB / 3.173 GB, free: 53.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005922/7.63, allocations: 229.5 kB / 3.173 GB, free: 53.08 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007572/7.631, allocations: 415 kB / 3.174 GB, free: 52.61 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007475/7.632, allocations: 293.9 kB / 3.174 GB, free: 52.32 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/7.632, allocations: 0 / 3.174 GB, free: 52.32 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002005/7.634, allocations: 0.773 MB / 3.175 GB, free: 51.54 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002078/7.634, allocations: 0.9671 MB / 3.176 GB, free: 50.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/7.634, allocations: 4 kB / 3.176 GB, free: 50.49 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002311/7.634, allocations: 32.84 kB / 3.176 GB, free: 50.46 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001319/7.636, allocations: 163.8 kB / 3.176 GB, free: 50.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003526/7.636, allocations: 0.5445 MB / 3.176 GB, free: 49.73 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/7.637, allocations: 107.3 kB / 3.176 GB, free: 49.62 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.731e-05/7.637, allocations: 35.97 kB / 3.176 GB, free: 49.59 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.145e-05/7.637, allocations: 4 kB / 3.176 GB, free: 49.58 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00157/7.639, allocations: 0.6429 MB / 3.177 GB, free: 48.94 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/7.639, allocations: 3.953 kB / 3.177 GB, free: 48.93 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/7.639, allocations: 11.94 kB / 3.177 GB, free: 48.92 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/7.64, allocations: 183.6 kB / 3.177 GB, free: 48.74 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/7.64, allocations: 4 kB / 3.177 GB, free: 48.74 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/7.641, allocations: 99.52 kB / 3.177 GB, free: 48.64 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/7.642, allocations: 35.98 kB / 3.177 GB, free: 48.61 MB / 0.8698 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 () * 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.0002863/7.642, allocations: 151 kB / 3.178 GB, free: 48.45 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000255/7.642, allocations: 106.7 kB / 3.178 GB, free: 48.35 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/7.645, allocations: 0.9451 MB / 3.179 GB, free: 47.39 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.249e-05/7.645, allocations: 8 kB / 3.179 GB, free: 47.38 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/7.645, allocations: 0 / 3.179 GB, free: 47.38 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/7.645, allocations: 7.984 kB / 3.179 GB, free: 47.38 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/7.65, allocations: 2.29 MB / 3.181 GB, free: 45 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/7.65, allocations: 0 / 3.181 GB, free: 45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/7.651, allocations: 151.8 kB / 3.181 GB, free: 44.85 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001624/7.651, allocations: 32.97 kB / 3.181 GB, free: 44.82 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.165e-05/7.651, allocations: 23.98 kB / 3.181 GB, free: 44.79 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009664/7.652, allocations: 1.276 MB / 3.182 GB, free: 43.38 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/7.652, allocations: 4.031 kB / 3.182 GB, free: 43.38 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/7.654, allocations: 0.9494 MB / 3.183 GB, free: 42.37 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006689/7.655, allocations: 327.4 kB / 3.184 GB, free: 42.03 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/7.655, allocations: 23.98 kB / 3.184 GB, free: 42 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/7.656, allocations: 75.89 kB / 3.184 GB, free: 41.93 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001833/7.656, allocations: 68.67 kB / 3.184 GB, free: 41.86 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.066e-05/7.657, allocations: 35.94 kB / 3.184 GB, free: 41.83 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001282/7.658, allocations: 0.6835 MB / 3.184 GB, free: 41.13 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.21e-07/7.658, allocations: 0 / 3.184 GB, free: 41.13 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002023/7.66, allocations: 0.5489 MB / 3.185 GB, free: 40.58 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 89 * 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.003675/7.664, allocations: 2.206 MB / 3.187 GB, free: 38.46 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002567/7.666, allocations: 1.014 MB / 3.188 GB, free: 37.44 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/7.666, allocations: 0 / 3.188 GB, free: 37.44 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0009254/7.667, allocations: 470.9 kB / 3.189 GB, free: 36.97 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002213/7.669, allocations: 303.7 kB / 3.189 GB, free: 36.68 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005056/7.674, allocations: 1.841 MB / 3.191 GB, free: 34.78 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007625/7.675, allocations: 1.161 MB / 3.192 GB, free: 33.59 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.002717/7.678, allocations: 0.5502 MB / 3.192 GB, free: 33.04 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007719/7.679, allocations: 435.3 kB / 3.193 GB, free: 32.61 MB / 0.8698 GB Notification: Performance of SimCode: time 1.142e-06/7.679, allocations: 0 / 3.193 GB, free: 32.61 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07242/7.751, allocations: 25.22 MB / 3.217 GB, free: 7.629 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000237/7.752, allocations: 226 kB / 3.218 GB, free: 7.402 MB / 0.8698 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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: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_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