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.739/1.739, allocations: 289.7 MB / 302.2 MB, free: 2.172 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.001139/0.001139, allocations: 183.1 kB / 371.6 MB, free: 3.391 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.527/1.527, allocations: 205.2 MB / 0.6309 GB, free: 11.78 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.0009359/0.0009357, allocations: 94.98 kB / 0.745 GB, free: 54.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.439e-05/4.447e-05, allocations: 4 kB / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2593, allocations: 116.3 MB / 0.9799 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.5/5.759, allocations: 2.104 GB / 3.083 GB, free: 93.29 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000385/5.759, allocations: 99.06 kB / 3.084 GB, free: 93.24 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.134/5.893, allocations: 57.53 MB / 3.14 GB, free: 41.64 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.743e-06/5.893, allocations: 0 / 3.14 GB, free: 41.64 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0001048/5.894, allocations: 39.94 kB / 3.14 GB, free: 41.6 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.002275/5.896, allocations: 1.38 MB / 3.141 GB, free: 40.17 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/5.896, allocations: 8.031 kB / 3.141 GB, free: 40.16 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001834/5.896, allocations: 160.9 kB / 3.141 GB, free: 39.99 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/5.898, allocations: 307.6 kB / 3.142 GB, free: 39.69 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001332/5.899, allocations: 0.8294 MB / 3.142 GB, free: 38.82 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.469e-05/5.899, allocations: 78.11 kB / 3.142 GB, free: 38.75 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/5.899, allocations: 100 kB / 3.143 GB, free: 38.65 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001775/5.901, allocations: 1.26 MB / 3.144 GB, free: 37.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.695e-05/5.901, allocations: 7.938 kB / 3.144 GB, free: 37.29 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-05/5.901, allocations: 51.98 kB / 3.144 GB, free: 37.24 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.684e-05/5.901, allocations: 53.98 kB / 3.144 GB, free: 37.18 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001752/5.903, allocations: 1.409 MB / 3.145 GB, free: 35.77 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005327/5.908, allocations: 4.725 MB / 3.15 GB, free: 30.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/5.91, allocations: 0.9691 MB / 3.151 GB, free: 29.82 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/5.91, allocations: 408 kB / 3.151 GB, free: 29.42 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002484/5.91, allocations: 125.8 kB / 3.151 GB, free: 29.28 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007263/5.911, allocations: 0.5496 MB / 3.152 GB, free: 28.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=94): time 3.506e-06/5.911, allocations: 112 / 3.152 GB, free: 28.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=95): time 0.002417/5.913, allocations: 1.434 MB / 3.153 GB, free: 27.25 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/5.914, allocations: 303.5 kB / 3.154 GB, free: 26.89 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/5.915, allocations: 0.8643 MB / 3.154 GB, free: 26 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.747e-05/5.915, allocations: 41.7 kB / 3.154 GB, free: 25.95 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002942/5.915, allocations: 0.5388 MB / 3.155 GB, free: 25.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/5.915, allocations: 319.4 kB / 3.155 GB, free: 25.09 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/5.915, allocations: 16 kB / 3.155 GB, free: 25.07 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.011e-05/5.915, allocations: 349.9 kB / 3.156 GB, free: 24.72 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004458/5.916, allocations: 325.9 kB / 3.156 GB, free: 24.41 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005608/5.916, allocations: 0.5138 MB / 3.156 GB, free: 23.82 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005456/5.917, allocations: 417.9 kB / 3.157 GB, free: 23.42 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/5.917, allocations: 0 / 3.157 GB, free: 23.42 MB / 0.948 GB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001872/5.919, allocations: 1.128 MB / 3.158 GB, free: 22.28 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002495/5.919, allocations: 1.142 MB / 3.159 GB, free: 21.05 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/5.919, allocations: 4 kB / 3.159 GB, free: 21.04 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008399/5.92, allocations: 216.5 kB / 3.159 GB, free: 20.83 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/5.921, allocations: 203.7 kB / 3.159 GB, free: 20.63 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000489/5.921, allocations: 0.6499 MB / 3.16 GB, free: 19.95 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007522/5.922, allocations: 99.41 kB / 3.16 GB, free: 19.86 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.408e-05/5.922, allocations: 44.05 kB / 3.16 GB, free: 19.81 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/5.922, allocations: 4 kB / 3.16 GB, free: 19.81 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001168/5.923, allocations: 0.8342 MB / 3.161 GB, free: 18.97 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/5.923, allocations: 7.938 kB / 3.161 GB, free: 18.96 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/5.923, allocations: 7.953 kB / 3.161 GB, free: 18.96 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000765/5.924, allocations: 216.1 kB / 3.161 GB, free: 18.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/5.924, allocations: 7.984 kB / 3.161 GB, free: 18.74 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/5.925, allocations: 95.39 kB / 3.161 GB, free: 18.64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.236e-05/5.925, allocations: 39.97 kB / 3.161 GB, free: 18.61 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 () * 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.0002157/5.925, allocations: 162.4 kB / 3.162 GB, free: 18.44 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/5.925, allocations: 114.6 kB / 3.162 GB, free: 18.33 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002564/5.928, allocations: 1.349 MB / 3.163 GB, free: 16.96 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/5.928, allocations: 12 kB / 3.163 GB, free: 16.95 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/5.928, allocations: 0 / 3.163 GB, free: 16.95 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/5.928, allocations: 7.984 kB / 3.163 GB, free: 16.95 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/5.932, allocations: 2.684 MB / 3.166 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/5.932, allocations: 4 kB / 3.166 GB, free: 14.18 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007087/5.932, allocations: 195.7 kB / 3.166 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000746/5.933, allocations: 212.7 kB / 3.166 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-05/5.933, allocations: 31.98 kB / 3.166 GB, free: 13.75 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001639/5.935, allocations: 1.815 MB / 3.168 GB, free: 11.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/5.935, allocations: 4 kB / 3.168 GB, free: 11.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/5.937, allocations: 1.433 MB / 3.169 GB, free: 10.28 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006794/5.937, allocations: 363.2 kB / 3.17 GB, free: 9.906 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/5.938, allocations: 24 kB / 3.17 GB, free: 9.883 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008203/5.938, allocations: 99.84 kB / 3.17 GB, free: 9.785 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/5.939, allocations: 72.84 kB / 3.17 GB, free: 9.715 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.816e-05/5.939, allocations: 39.98 kB / 3.17 GB, free: 9.676 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0008342/5.94, allocations: 0.6918 MB / 3.17 GB, free: 8.969 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.7e-07/5.94, allocations: 0 / 3.17 GB, free: 8.969 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001537/5.941, allocations: 0.4998 MB / 3.171 GB, free: 8.469 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) * 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.003493/5.945, allocations: 2.948 MB / 3.174 GB, free: 5.555 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002217/5.947, allocations: 1.386 MB / 3.175 GB, free: 4.172 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/5.947, allocations: 0 / 3.175 GB, free: 4.172 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008403/5.948, allocations: 0.6288 MB / 3.176 GB, free: 3.527 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/5.949, allocations: 304.9 kB / 3.176 GB, free: 3.234 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003872/5.953, allocations: 2.1 MB / 3.178 GB, free: 1.074 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.5469/6.5, allocations: 1.205 MB / 3.179 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.00237/6.502, allocations: 0.5922 MB / 3.18 GB, free: 250.6 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006339/6.503, allocations: 480.4 kB / 3.18 GB, free: 250.6 MB / 0.948 GB Notification: Performance of SimCode: time 1.553e-06/6.503, allocations: 1.406 kB / 3.18 GB, free: 250.6 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05934/6.562, allocations: 27.87 MB / 3.208 GB, free: 249.2 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/6.563, allocations: 243.6 kB / 3.208 GB, free: 248.9 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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 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: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 -falign-functions -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 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: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_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