Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.756/1.756, allocations: 292.6 MB / 307.5 MB, free: 5.188 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.001682/0.001683, allocations: 185 kB / 377.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.78/1.78, allocations: 205.4 MB / 0.6366 GB, free: 8.602 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009086/0.0009088, allocations: 88.2 kB / 0.7509 GB, free: 63.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003631, allocations: 12 kB / 0.8749 GB, free: 11.08 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2769, allocations: 116.3 MB / 0.9884 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.832/6.109, allocations: 2.104 GB / 3.092 GB, free: 77.47 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/6.109, allocations: 108.6 kB / 3.092 GB, free: 77.41 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.127/6.236, allocations: 57.96 MB / 3.149 GB, free: 19.41 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.094e-06/6.236, allocations: 0 / 3.149 GB, free: 19.41 MB / 0.948 GB Notification: Performance of Transformations before backend: time 8.914e-05/6.237, allocations: 35.94 kB / 3.149 GB, free: 19.38 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: 277 * Number of variables: 277 Notification: Performance of Generate backend data structure: time 0.002379/6.239, allocations: 1.536 MB / 3.15 GB, free: 17.78 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/6.239, allocations: 12.02 kB / 3.15 GB, free: 17.77 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001759/6.239, allocations: 168.9 kB / 3.15 GB, free: 17.59 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/6.241, allocations: 304 kB / 3.151 GB, free: 17.3 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/6.242, allocations: 0.8416 MB / 3.152 GB, free: 16.41 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.174e-05/6.242, allocations: 81.53 kB / 3.152 GB, free: 16.34 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/6.242, allocations: 104 kB / 3.152 GB, free: 16.23 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/6.244, allocations: 1.295 MB / 3.153 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.791e-05/6.244, allocations: 0 / 3.153 GB, free: 14.85 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001042/6.244, allocations: 44 kB / 3.153 GB, free: 14.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.58e-05/6.244, allocations: 57.97 kB / 3.153 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00196/6.246, allocations: 1.467 MB / 3.155 GB, free: 13.28 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005322/6.251, allocations: 4.725 MB / 3.159 GB, free: 8.309 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001447/6.253, allocations: 1.019 MB / 3.16 GB, free: 7.266 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001913/6.253, allocations: 118.1 kB / 3.16 GB, free: 7.133 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007494/6.254, allocations: 0.5767 MB / 3.161 GB, free: 6.539 MB / 0.948 GB Notification: Performance of pre-optimization done (n=94): time 2.655e-06/6.254, allocations: 0 / 3.161 GB, free: 6.539 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.00371/6.258, allocations: 2.034 MB / 3.163 GB, free: 4.469 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/6.258, allocations: 303.7 kB / 3.163 GB, free: 4.105 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/6.259, allocations: 0.8758 MB / 3.164 GB, free: 3.207 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 7.162e-05/6.259, allocations: 41.7 kB / 3.164 GB, free: 3.16 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003411/6.259, allocations: 0.5466 MB / 3.165 GB, free: 2.605 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001901/6.259, allocations: 315.4 kB / 3.165 GB, free: 2.293 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.369e-05/6.259, allocations: 20 kB / 3.165 GB, free: 2.273 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.344e-05/6.26, allocations: 337.9 kB / 3.165 GB, free: 1.938 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005162/6.26, allocations: 361.7 kB / 3.166 GB, free: 1.582 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006396/6.261, allocations: 0.5373 MB / 3.166 GB, free: 0.9805 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005989/6.261, allocations: 430.8 kB / 3.166 GB, free: 0.5625 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/6.261, allocations: 0 / 3.166 GB, free: 0.5625 MB / 0.948 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.5335/6.795, allocations: 1.184 MB / 3.168 GB, free: 250.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002967/6.795, allocations: 1.144 MB / 3.169 GB, free: 249.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/6.795, allocations: 5.906 kB / 3.169 GB, free: 249.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009427/6.796, allocations: 210.9 kB / 3.169 GB, free: 249.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/6.797, allocations: 210.6 kB / 3.169 GB, free: 249.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005733/6.798, allocations: 0.6414 MB / 3.17 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/6.799, allocations: 100.6 kB / 3.17 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/6.799, allocations: 45.8 kB / 3.17 GB, free: 249.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/6.799, allocations: 3.281 kB / 3.17 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001754/6.801, allocations: 0.8876 MB / 3.171 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/6.801, allocations: 3.062 kB / 3.171 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/6.801, allocations: 8.156 kB / 3.171 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008161/6.802, allocations: 207.3 kB / 3.171 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/6.802, allocations: 13.3 kB / 3.171 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009134/6.803, allocations: 102.8 kB / 3.171 GB, free: 249.2 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-05/6.803, allocations: 37.58 kB / 3.171 GB, free: 249.2 MB / 0.948 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.0008262/6.804, allocations: 428.4 kB / 3.172 GB, free: 249 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002103/6.804, allocations: 110.3 kB / 3.172 GB, free: 249 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002864/6.807, allocations: 1.396 MB / 3.173 GB, free: 249 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/6.807, allocations: 11.84 kB / 3.173 GB, free: 249 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/6.807, allocations: 0.5625 kB / 3.173 GB, free: 249 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/6.807, allocations: 8.391 kB / 3.173 GB, free: 249 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004453/6.811, allocations: 2.721 MB / 3.176 GB, free: 248.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/6.811, allocations: 8.062 kB / 3.176 GB, free: 248.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000786/6.812, allocations: 192.3 kB / 3.176 GB, free: 248.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008738/6.813, allocations: 214.8 kB / 3.176 GB, free: 248.5 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/6.813, allocations: 26.92 kB / 3.176 GB, free: 248.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00187/6.815, allocations: 1.88 MB / 3.178 GB, free: 247.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/6.815, allocations: 0 / 3.178 GB, free: 247.2 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002549/6.817, allocations: 1.49 MB / 3.179 GB, free: 246.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006696/6.818, allocations: 358.5 kB / 3.18 GB, free: 246.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/6.818, allocations: 23.03 kB / 3.18 GB, free: 246.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007994/6.819, allocations: 96.28 kB / 3.18 GB, free: 246.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/6.819, allocations: 78.34 kB / 3.18 GB, free: 246.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.636e-05/6.819, allocations: 41.19 kB / 3.18 GB, free: 246.6 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00126/6.821, allocations: 0.6964 MB / 3.181 GB, free: 246.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.3e-07/6.821, allocations: 0 / 3.181 GB, free: 246.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002373/6.823, allocations: 0.4972 MB / 3.181 GB, free: 246.5 MB / 0.948 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.004988/6.828, allocations: 3.025 MB / 3.184 GB, free: 245 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003303/6.831, allocations: 1.427 MB / 3.185 GB, free: 245 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/6.831, allocations: 1.469 kB / 3.185 GB, free: 245 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001314/6.833, allocations: 0.6512 MB / 3.186 GB, free: 244.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002076/6.835, allocations: 298.5 kB / 3.186 GB, free: 244.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/6.85, allocations: 8.816 MB / 3.195 GB, free: 240.7 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001103/6.851, allocations: 1.208 MB / 3.196 GB, free: 240 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001888/6.853, allocations: 458.5 kB / 3.197 GB, free: 239.9 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007696/6.854, allocations: 499.8 kB / 3.197 GB, free: 239.9 MB / 0.948 GB Notification: Performance of SimCode: time 1.483e-06/6.854, allocations: 0 / 3.197 GB, free: 239.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07163/6.926, allocations: 26.54 MB / 3.223 GB, free: 238.3 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001889/6.926, allocations: 261.9 kB / 3.223 GB, free: 238 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.o Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c In file included from Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_8_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: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 -falign-functions -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.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c In file included from Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_8_Buildings_Electrical_AC_OnePhase_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_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Electrical_AC_OnePhase_Sources_Examples_WindTurbine_functions.o] Error 1