Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.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.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.WindTurbine,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.779/1.779, allocations: 289.7 MB / 302.2 MB, free: 2.148 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.001075/0.001075, allocations: 185.7 kB / 371.6 MB, free: 3.371 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.803/1.803, allocations: 205.1 MB / 0.6309 GB, free: 11.73 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.001015/0.001015, allocations: 91.42 kB / 0.745 GB, free: 54.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.696e-05/4.71e-05, allocations: 7.984 kB / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3088/0.3089, allocations: 116.3 MB / 0.9799 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.555/6.864, allocations: 2.102 GB / 3.082 GB, free: 138.5 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/6.864, allocations: 97.09 kB / 3.082 GB, free: 138.4 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 8.1.4-maint.8.1.x/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 8.1.4-maint.8.1.x/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.1112/6.975, allocations: 50.32 MB / 3.131 GB, free: 88.05 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.733e-06/6.975, allocations: 0 / 3.131 GB, free: 88.05 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.41e-05/6.975, allocations: 31.94 kB / 3.131 GB, free: 88.02 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.002032/6.977, allocations: 1.289 MB / 3.133 GB, free: 86.68 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/6.978, allocations: 12.03 kB / 3.133 GB, free: 86.67 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001723/6.978, allocations: 156.3 kB / 3.133 GB, free: 86.51 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001358/6.979, allocations: 278 kB / 3.133 GB, free: 86.23 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001459/6.981, allocations: 0.7943 MB / 3.134 GB, free: 85.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.784e-05/6.981, allocations: 74 kB / 3.134 GB, free: 85.33 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/6.981, allocations: 92 kB / 3.134 GB, free: 85.24 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001708/6.982, allocations: 1.115 MB / 3.135 GB, free: 84.05 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/6.983, allocations: 3.938 kB / 3.135 GB, free: 84.05 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.494e-05/6.983, allocations: 44 kB / 3.135 GB, free: 84 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.239e-05/6.983, allocations: 45.98 kB / 3.135 GB, free: 83.96 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/6.984, allocations: 1.242 MB / 3.136 GB, free: 82.71 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005857/6.99, allocations: 4.353 MB / 3.141 GB, free: 78.14 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/6.991, allocations: 0.7705 MB / 3.141 GB, free: 77.37 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/6.992, allocations: 319.2 kB / 3.142 GB, free: 77.06 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.615e-05/6.992, allocations: 36.72 kB / 3.142 GB, free: 77.02 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005675/6.993, allocations: 440.6 kB / 3.142 GB, free: 76.57 MB / 0.948 GB Notification: Performance of pre-optimization done (n=80): time 4.048e-06/6.993, allocations: 7.984 kB / 3.142 GB, free: 76.56 MB / 0.948 GB Notification: Performance of matching and sorting (n=80): time 0.001249/6.994, allocations: 0.7068 MB / 3.143 GB, free: 75.84 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.564e-05/6.994, allocations: 346.9 kB / 3.143 GB, free: 75.42 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/6.995, allocations: 0.8706 MB / 3.144 GB, free: 74.52 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 6.312e-05/6.995, allocations: 41.7 kB / 3.144 GB, free: 74.48 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003219/6.995, allocations: 0.527 MB / 3.145 GB, free: 73.94 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/6.996, allocations: 264.2 kB / 3.145 GB, free: 73.68 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/6.996, allocations: 20 kB / 3.145 GB, free: 73.66 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.645e-05/6.996, allocations: 334 kB / 3.145 GB, free: 73.33 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003145/6.996, allocations: 225.5 kB / 3.145 GB, free: 73.11 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/6.996, allocations: 415 kB / 3.146 GB, free: 72.63 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/6.997, allocations: 294 kB / 3.146 GB, free: 72.34 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/6.997, allocations: 0 / 3.146 GB, free: 72.34 MB / 0.948 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00115/6.998, allocations: 0.773 MB / 3.147 GB, free: 71.56 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001983/6.998, allocations: 0.9684 MB / 3.148 GB, free: 70.52 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/6.998, allocations: 3.953 kB / 3.148 GB, free: 70.52 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001912/6.998, allocations: 36.72 kB / 3.148 GB, free: 70.48 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006317/6.999, allocations: 175.8 kB / 3.148 GB, free: 70.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002677/6.999, allocations: 0.5367 MB / 3.149 GB, free: 69.74 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006971/7, allocations: 107.3 kB / 3.149 GB, free: 69.64 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.95e-05/7, allocations: 35.98 kB / 3.149 GB, free: 69.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/7, allocations: 4 kB / 3.149 GB, free: 69.6 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009039/7.001, allocations: 0.6392 MB / 3.149 GB, free: 68.96 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/7.001, allocations: 4.062 kB / 3.149 GB, free: 68.96 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.588e-06/7.001, allocations: 8 kB / 3.149 GB, free: 68.95 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006445/7.002, allocations: 175.7 kB / 3.15 GB, free: 68.78 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.645e-06/7.002, allocations: 7.953 kB / 3.15 GB, free: 68.77 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006284/7.002, allocations: 103.2 kB / 3.15 GB, free: 68.67 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.259e-05/7.002, allocations: 31.98 kB / 3.15 GB, free: 68.64 MB / 0.948 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.0002083/7.003, allocations: 150.5 kB / 3.15 GB, free: 68.48 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/7.003, allocations: 102.8 kB / 3.15 GB, free: 68.38 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/7.004, allocations: 0.9451 MB / 3.151 GB, free: 67.42 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/7.005, allocations: 8 kB / 3.151 GB, free: 67.41 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/7.005, allocations: 4 kB / 3.151 GB, free: 67.41 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.148e-05/7.005, allocations: 7.969 kB / 3.151 GB, free: 67.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002883/7.007, allocations: 2.288 MB / 3.153 GB, free: 65.03 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/7.007, allocations: 3.984 kB / 3.153 GB, free: 65.03 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005638/7.008, allocations: 155.8 kB / 3.153 GB, free: 64.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/7.008, allocations: 28.97 kB / 3.153 GB, free: 64.84 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.791e-05/7.008, allocations: 23.98 kB / 3.153 GB, free: 64.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007075/7.009, allocations: 1.276 MB / 3.155 GB, free: 63.41 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/7.009, allocations: 0 / 3.155 GB, free: 63.41 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/7.01, allocations: 0.9572 MB / 3.155 GB, free: 62.39 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004264/7.011, allocations: 331.3 kB / 3.156 GB, free: 62.05 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001164/7.011, allocations: 24 kB / 3.156 GB, free: 62.03 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005893/7.011, allocations: 71.94 kB / 3.156 GB, free: 61.96 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001249/7.011, allocations: 64.69 kB / 3.156 GB, free: 61.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/7.011, allocations: 35.98 kB / 3.156 GB, free: 61.86 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0008283/7.012, allocations: 0.6835 MB / 3.157 GB, free: 61.16 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.8e-07/7.012, allocations: 3.938 kB / 3.157 GB, free: 61.16 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001368/7.014, allocations: 0.5412 MB / 3.157 GB, free: 60.61 MB / 0.948 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.002469/7.016, allocations: 2.223 MB / 3.159 GB, free: 58.45 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001616/7.018, allocations: 1.012 MB / 3.16 GB, free: 57.44 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 7.795e-06/7.018, allocations: 0 / 3.16 GB, free: 57.44 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0005564/7.018, allocations: 482.8 kB / 3.161 GB, free: 56.95 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/7.02, allocations: 283.8 kB / 3.161 GB, free: 56.68 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003368/7.023, allocations: 1.834 MB / 3.163 GB, free: 54.79 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005263/7.024, allocations: 1.163 MB / 3.164 GB, free: 53.6 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.001597/7.025, allocations: 0.5502 MB / 3.165 GB, free: 53.04 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005099/7.026, allocations: 439.3 kB / 3.165 GB, free: 52.62 MB / 0.948 GB Notification: Performance of SimCode: time 1.273e-06/7.026, allocations: 3.938 kB / 3.165 GB, free: 52.61 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0481/7.074, allocations: 25.23 MB / 3.19 GB, free: 27.59 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001728/7.074, allocations: 222.8 kB / 3.19 GB, free: 27.37 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_DC_Sources_Examples_WindTurbine.o Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_8_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 -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_DC_Sources_Examples_WindTurbine_functions.o Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_8_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_8_Buildings_Electrical_DC_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_DC_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_DC_Sources_Examples_WindTurbine_functions.o] Error 1