Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.OnePhase.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.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_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.262/2.262, allocations: 248.5 MB / 261 MB, free: 5.969 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.001456/0.001455, allocations: 182.4 kB / 320.4 MB, free: 15.36 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.111/2.111, 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.001057/0.001057, allocations: 94.47 kB / 0.6754 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.088e-05/5.101e-05, allocations: 4 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2262, allocations: 106.2 MB / 0.8907 GB, free: 7.453 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.462/7.689, allocations: 2.221 GB / 3.111 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003729/7.689, allocations: 103.4 kB / 3.111 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2315/7.921, allocations: 57.55 MB / 3.168 GB, free: 58.67 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.094e-06/7.921, allocations: 0 / 3.168 GB, free: 58.67 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001345/7.921, allocations: 32 kB / 3.168 GB, free: 58.64 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.003457/7.924, allocations: 1.384 MB / 3.169 GB, free: 57.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/7.924, allocations: 8.031 kB / 3.169 GB, free: 57.19 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003647/7.925, allocations: 168.8 kB / 3.169 GB, free: 57.01 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002531/7.927, allocations: 309.8 kB / 3.169 GB, free: 56.71 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002411/7.93, allocations: 0.8262 MB / 3.17 GB, free: 55.84 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.643e-05/7.93, allocations: 74.11 kB / 3.17 GB, free: 55.77 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002273/7.93, allocations: 104 kB / 3.17 GB, free: 55.66 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002955/7.933, allocations: 1.26 MB / 3.172 GB, free: 54.31 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.422e-05/7.933, allocations: 7.938 kB / 3.172 GB, free: 54.3 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001775/7.933, allocations: 48 kB / 3.172 GB, free: 54.26 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-05/7.933, allocations: 53.94 kB / 3.172 GB, free: 54.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003152/7.937, allocations: 1.417 MB / 3.173 GB, free: 52.79 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009219/7.946, allocations: 4.717 MB / 3.178 GB, free: 47.82 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/7.948, allocations: 0.9647 MB / 3.179 GB, free: 46.84 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008981/7.949, allocations: 412 kB / 3.179 GB, free: 46.43 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003008/7.95, allocations: 125.8 kB / 3.179 GB, free: 46.29 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/7.951, allocations: 0.5535 MB / 3.18 GB, free: 45.71 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=94): time 4.268e-06/7.951, allocations: 0 / 3.18 GB, free: 45.71 MB / 0.8698 GB Notification: Performance of matching and sorting (n=95): time 0.004118/7.955, allocations: 1.434 MB / 3.181 GB, free: 44.26 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.665e-05/7.955, allocations: 295.6 kB / 3.181 GB, free: 43.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001719/7.957, allocations: 0.8643 MB / 3.182 GB, free: 43.01 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002074/7.957, allocations: 45.7 kB / 3.182 GB, free: 42.96 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005046/7.957, allocations: 0.5389 MB / 3.183 GB, free: 42.41 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003113/7.958, allocations: 319.4 kB / 3.183 GB, free: 42.1 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.02e-05/7.958, allocations: 16.11 kB / 3.183 GB, free: 42.08 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.777e-05/7.958, allocations: 349.8 kB / 3.183 GB, free: 41.73 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008186/7.959, allocations: 325.9 kB / 3.184 GB, free: 41.41 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009892/7.96, allocations: 0.5138 MB / 3.184 GB, free: 40.83 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009562/7.961, allocations: 413.9 kB / 3.185 GB, free: 40.43 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/7.961, allocations: 0 / 3.185 GB, free: 40.43 MB / 0.8698 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003416/7.964, allocations: 1.14 MB / 3.186 GB, free: 39.28 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002536/7.965, allocations: 1.138 MB / 3.187 GB, free: 38.05 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/7.965, allocations: 4 kB / 3.187 GB, free: 38.05 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/7.966, allocations: 212.6 kB / 3.187 GB, free: 37.84 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001705/7.968, allocations: 207.7 kB / 3.187 GB, free: 37.63 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007582/7.968, allocations: 0.6421 MB / 3.188 GB, free: 36.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/7.97, allocations: 103.3 kB / 3.188 GB, free: 36.86 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001182/7.97, allocations: 43.94 kB / 3.188 GB, free: 36.82 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/7.97, allocations: 8.062 kB / 3.188 GB, free: 36.81 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002027/7.972, allocations: 0.8341 MB / 3.189 GB, free: 35.98 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.365e-06/7.972, allocations: 4 kB / 3.189 GB, free: 35.97 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/7.972, allocations: 8 kB / 3.189 GB, free: 35.96 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/7.974, allocations: 212.2 kB / 3.189 GB, free: 35.76 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/7.974, allocations: 15.92 kB / 3.189 GB, free: 35.74 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/7.975, allocations: 95.39 kB / 3.189 GB, free: 35.65 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/7.975, allocations: 35.97 kB / 3.189 GB, free: 35.61 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (107): * Single equations (assignments): 106 * 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 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003563/7.976, allocations: 161.4 kB / 3.189 GB, free: 35.45 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002717/7.976, allocations: 114.6 kB / 3.189 GB, free: 35.34 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004224/7.98, allocations: 1.357 MB / 3.191 GB, free: 33.97 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/7.98, allocations: 12 kB / 3.191 GB, free: 33.96 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/7.98, allocations: 0 / 3.191 GB, free: 33.96 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/7.98, allocations: 3.984 kB / 3.191 GB, free: 33.95 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00794/7.988, allocations: 2.688 MB / 3.193 GB, free: 31.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.308e-06/7.988, allocations: 4.219 kB / 3.193 GB, free: 31.18 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001526/7.99, allocations: 195.8 kB / 3.194 GB, free: 30.99 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001364/7.991, allocations: 212.5 kB / 3.194 GB, free: 30.78 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001223/7.991, allocations: 27.98 kB / 3.194 GB, free: 30.75 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002754/7.994, allocations: 1.819 MB / 3.196 GB, free: 28.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/7.994, allocations: 0 / 3.196 GB, free: 28.8 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003661/7.998, allocations: 1.437 MB / 3.197 GB, free: 27.29 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008852/7.999, allocations: 363.2 kB / 3.197 GB, free: 26.91 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002368/7.999, allocations: 23.95 kB / 3.197 GB, free: 26.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00144/8, allocations: 99.89 kB / 3.197 GB, free: 26.79 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/8.001, allocations: 72.84 kB / 3.198 GB, free: 26.71 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/8.001, allocations: 35.98 kB / 3.198 GB, free: 26.68 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001343/8.002, allocations: 0.6918 MB / 3.198 GB, free: 25.97 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.31e-07/8.002, allocations: 0 / 3.198 GB, free: 25.97 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.002163/8.004, allocations: 0.4998 MB / 3.199 GB, free: 25.47 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (105): * Single equations (assignments): 102 * 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 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.005495/8.01, allocations: 2.931 MB / 3.202 GB, free: 22.61 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.003726/8.014, allocations: 1.385 MB / 3.203 GB, free: 21.23 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/8.014, allocations: 0 / 3.203 GB, free: 21.23 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001522/8.015, allocations: 0.6289 MB / 3.204 GB, free: 20.59 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002442/8.018, allocations: 310.7 kB / 3.204 GB, free: 20.29 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/8.023, allocations: 2.093 MB / 3.206 GB, free: 18.13 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000821/8.024, allocations: 1.211 MB / 3.207 GB, free: 16.89 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.003197/8.028, allocations: 0.5976 MB / 3.208 GB, free: 16.29 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009185/8.029, allocations: 471.3 kB / 3.208 GB, free: 15.83 MB / 0.8698 GB Notification: Performance of SimCode: time 1.052e-06/8.029, allocations: 0 / 3.208 GB, free: 15.83 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8912/8.92, allocations: 27.87 MB / 3.235 GB, free: 273.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/8.92, allocations: 236.2 kB / 3.236 GB, free: 272.8 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_AC_OnePhase_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_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_AC_OnePhase_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_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_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_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_AC_OnePhase_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o] Error 1