Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_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.183/2.183, allocations: 251 MB / 265.9 MB, free: 11.68 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.001471/0.001471, allocations: 178.7 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.548/2.548, allocations: 205.4 MB / 0.5764 GB, free: 20.78 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.001085/0.001084, allocations: 91.48 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.0004839, allocations: 11.84 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.2132, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.493/7.706, allocations: 2.225 GB / 3.123 GB, free: 238.2 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004243/7.707, allocations: 112.7 kB / 3.124 GB, free: 238.2 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2379/7.945, allocations: 62.5 MB / 3.185 GB, free: 225.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.745e-06/7.945, allocations: 0 / 3.185 GB, free: 225.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001467/7.945, allocations: 39.27 kB / 3.185 GB, free: 225.5 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.004492/7.95, allocations: 1.542 MB / 3.186 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/7.95, allocations: 7.812 kB / 3.186 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005894/7.95, allocations: 170.9 kB / 3.186 GB, free: 224.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002628/7.953, allocations: 305.2 kB / 3.187 GB, free: 224.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002499/7.956, allocations: 0.8369 MB / 3.187 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.884e-05/7.956, allocations: 81.48 kB / 3.188 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002529/7.956, allocations: 98.22 kB / 3.188 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003603/7.96, allocations: 1.296 MB / 3.189 GB, free: 223.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.284e-05/7.96, allocations: 7.828 kB / 3.189 GB, free: 223.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000195/7.96, allocations: 49.3 kB / 3.189 GB, free: 223.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.262e-05/7.96, allocations: 54.86 kB / 3.189 GB, free: 223.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003796/7.964, allocations: 1.464 MB / 3.19 GB, free: 222.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009641/7.973, allocations: 4.715 MB / 3.195 GB, free: 219.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/7.976, allocations: 1.024 MB / 3.196 GB, free: 219.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/7.976, allocations: 120.5 kB / 3.196 GB, free: 219.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001334/7.978, allocations: 0.5846 MB / 3.197 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=94): time 4.047e-06/7.978, allocations: 0 / 3.197 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=95): time 0.00645/7.984, allocations: 2.03 MB / 3.199 GB, free: 218.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/7.984, allocations: 296.2 kB / 3.199 GB, free: 218.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/7.986, allocations: 0.8803 MB / 3.2 GB, free: 217.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002412/7.987, allocations: 50.22 kB / 3.2 GB, free: 217.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005154/7.987, allocations: 0.544 MB / 3.2 GB, free: 217.5 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003557/7.987, allocations: 316.9 kB / 3.201 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.514e-05/7.988, allocations: 14.75 kB / 3.201 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/7.988, allocations: 339.9 kB / 3.201 GB, free: 216.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/7.989, allocations: 355 kB / 3.201 GB, free: 216.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001209/7.99, allocations: 0.5415 MB / 3.202 GB, free: 216.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/7.991, allocations: 436.6 kB / 3.202 GB, free: 216.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/7.991, allocations: 3.938 kB / 3.202 GB, free: 216.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003839/7.995, allocations: 1.179 MB / 3.203 GB, free: 216.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002569/7.995, allocations: 1.148 MB / 3.205 GB, free: 215.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/7.995, allocations: 3.938 kB / 3.205 GB, free: 215.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001395/7.997, allocations: 213.8 kB / 3.205 GB, free: 215 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/7.999, allocations: 206.4 kB / 3.205 GB, free: 214.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007954/7.999, allocations: 0.6469 MB / 3.206 GB, free: 214.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/8.001, allocations: 100 kB / 3.206 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001914/8.001, allocations: 43.91 kB / 3.206 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/8.001, allocations: 4.438 kB / 3.206 GB, free: 214.3 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002469/8.004, allocations: 0.8785 MB / 3.207 GB, free: 214.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/8.004, allocations: 3.938 kB / 3.207 GB, free: 214.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/8.004, allocations: 16.17 kB / 3.207 GB, free: 214.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001578/8.005, allocations: 208.4 kB / 3.207 GB, free: 214.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/8.006, allocations: 7.75 kB / 3.207 GB, free: 214.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/8.007, allocations: 102.3 kB / 3.207 GB, free: 214.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001307/8.007, allocations: 37.08 kB / 3.207 GB, free: 214.1 MB / 0.8855 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 () * Number of clocked 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.00105/8.008, allocations: 427.8 kB / 3.207 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004144/8.009, allocations: 117.2 kB / 3.208 GB, free: 213.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00463/8.013, allocations: 1.398 MB / 3.209 GB, free: 213.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-05/8.013, allocations: 11.53 kB / 3.209 GB, free: 213.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/8.013, allocations: 3.875 kB / 3.209 GB, free: 213.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.119e-05/8.013, allocations: 3.984 kB / 3.209 GB, free: 213.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006923/8.02, allocations: 2.729 MB / 3.212 GB, free: 212.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.228e-06/8.02, allocations: 0 / 3.212 GB, free: 212.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00148/8.022, allocations: 194.1 kB / 3.212 GB, free: 212.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/8.023, allocations: 210.5 kB / 3.212 GB, free: 212.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001838/8.023, allocations: 26.77 kB / 3.212 GB, free: 212.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002967/8.026, allocations: 1.875 MB / 3.214 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/8.026, allocations: 8 kB / 3.214 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004133/8.031, allocations: 1.482 MB / 3.215 GB, free: 210.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009996/8.032, allocations: 365.4 kB / 3.216 GB, free: 209.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002736/8.032, allocations: 25.06 kB / 3.216 GB, free: 209.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/8.033, allocations: 93.12 kB / 3.216 GB, free: 209.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002594/8.034, allocations: 75.08 kB / 3.216 GB, free: 209.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/8.034, allocations: 34.55 kB / 3.216 GB, free: 209.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001496/8.035, allocations: 0.7012 MB / 3.217 GB, free: 209.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.81e-07/8.035, allocations: 0 / 3.217 GB, free: 209.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00268/8.038, allocations: 0.4956 MB / 3.217 GB, free: 209.6 MB / 0.8855 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) * Number of clocked states: 0 () * 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.006032/8.044, allocations: 3.04 MB / 3.22 GB, free: 207.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004397/8.049, allocations: 1.419 MB / 3.221 GB, free: 207.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.153e-05/8.049, allocations: 0 / 3.221 GB, free: 207.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001758/8.05, allocations: 0.658 MB / 3.222 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002521/8.053, allocations: 301.8 kB / 3.222 GB, free: 206.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0189/8.072, allocations: 8.809 MB / 3.231 GB, free: 198.6 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008483/8.073, allocations: 1.206 MB / 3.232 GB, free: 197.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002633/8.075, allocations: 467.4 kB / 3.233 GB, free: 197 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001418/8.077, allocations: 496.2 kB / 3.233 GB, free: 196.8 MB / 0.8855 GB Notification: Performance of SimCode: time 1.703e-06/8.077, allocations: 4 kB / 3.233 GB, free: 196.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08334/8.16, allocations: 26.53 MB / 3.259 GB, free: 170.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000295/8.161, allocations: 294 kB / 3.259 GB, free: 170.3 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_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_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_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_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_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_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_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_WindTurbine_functions.o] Error 1