Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N.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.ThreePhasesUnbalanced.Sources.Examples.WindTurbine_N,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N",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.447/2.447, allocations: 248.5 MB / 261.1 MB, free: 6.098 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.001464/0.001464, allocations: 176.8 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.934/1.934, allocations: 205.2 MB / 0.571 GB, free: 11.75 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.0012/0.0012, allocations: 94.48 kB / 0.6754 GB, free: 0.832 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.522e-05/4.542e-05, allocations: 7.984 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2082, allocations: 106.3 MB / 0.8907 GB, free: 7.434 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.243/7.451, allocations: 2.25 GB / 3.14 GB, free: 85.02 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004184/7.452, allocations: 108 kB / 3.141 GB, free: 84.96 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.RCha to false. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialBaseLine.mo:26:3-33:42:writable] Notification: Moving binding to initial equation section and setting fixed attribute of line.commercialCable.XCha to false. Notification: Performance of FrontEnd - DAE generated: time 1.293/8.745, allocations: 146.2 MB / 3.283 GB, free: 254.7 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.036e-06/8.745, allocations: 4 kB / 3.283 GB, free: 254.7 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0005937/8.746, allocations: 85.66 kB / 3.283 GB, free: 254.7 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: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.01969/8.765, allocations: 2.989 MB / 3.286 GB, free: 253 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.417e-05/8.765, allocations: 7.906 kB / 3.286 GB, free: 253 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004344/8.77, allocations: 459.4 kB / 3.287 GB, free: 252.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01623/8.786, allocations: 0.8385 MB / 3.288 GB, free: 252.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00802/8.794, allocations: 2.123 MB / 3.29 GB, free: 251.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002885/8.795, allocations: 226.5 kB / 3.29 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001495/8.796, allocations: 299.8 kB / 3.29 GB, free: 251.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01445/8.81, allocations: 4.281 MB / 3.294 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001692/8.811, allocations: 3.969 kB / 3.294 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008904/8.812, allocations: 127.1 kB / 3.294 GB, free: 249.3 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002672/8.812, allocations: 179.2 kB / 3.295 GB, free: 249.3 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/8.825, allocations: 3.878 MB / 3.298 GB, free: 248 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03898/8.864, allocations: 18.59 MB / 3.317 GB, free: 234.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004585/8.868, allocations: 1.757 MB / 3.318 GB, free: 234 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002203/8.87, allocations: 0.9237 MB / 3.319 GB, free: 233.7 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003603/8.871, allocations: 127.4 kB / 3.319 GB, free: 233.6 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002458/8.873, allocations: 1.07 MB / 3.32 GB, free: 233.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=147): time 6.402e-06/8.873, allocations: 0 / 3.32 GB, free: 233.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=182): time 0.04478/8.918, allocations: 12.02 MB / 3.332 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001952/8.918, allocations: 0.5815 MB / 3.333 GB, free: 226.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004387/8.923, allocations: 1.843 MB / 3.334 GB, free: 225.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005182/8.923, allocations: 63.8 kB / 3.335 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001832/8.925, allocations: 1.464 MB / 3.336 GB, free: 224.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001011/8.926, allocations: 0.6136 MB / 3.337 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000269/8.927, allocations: 42.88 kB / 3.337 GB, free: 224 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001871/8.927, allocations: 387 kB / 3.337 GB, free: 223.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002935/8.93, allocations: 1.066 MB / 3.338 GB, free: 223.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003479/8.933, allocations: 1.657 MB / 3.34 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003432/8.937, allocations: 1.359 MB / 3.341 GB, free: 221.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.969e-05/8.937, allocations: 7.938 kB / 3.341 GB, free: 221.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01528/8.952, allocations: 4.187 MB / 3.345 GB, free: 219.7 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001248/8.953, allocations: 5.87 MB / 3.351 GB, free: 213.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.478e-05/8.954, allocations: 20 kB / 3.351 GB, free: 213.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009349/8.963, allocations: 1.435 MB / 3.352 GB, free: 212.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/8.967, allocations: 489.8 kB / 3.353 GB, free: 211.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01503/8.982, allocations: 5.841 MB / 3.358 GB, free: 206.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003884/8.986, allocations: 213.3 kB / 3.359 GB, free: 206.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006031/8.986, allocations: 95.69 kB / 3.359 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/8.986, allocations: 4 kB / 3.359 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01159/8.998, allocations: 3.461 MB / 3.362 GB, free: 203.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.574e-05/8.998, allocations: 12.66 kB / 3.362 GB, free: 203.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00545/9.004, allocations: 0.8932 MB / 3.363 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003938/9.008, allocations: 0.4953 MB / 3.363 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/9.019, allocations: 4.869 MB / 3.368 GB, free: 197.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003367/9.022, allocations: 179.8 kB / 3.368 GB, free: 196.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003177/9.022, allocations: 91.97 kB / 3.368 GB, free: 196.8 MB / 0.8698 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = false ) "Characteristic reactance of the cable" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (234): * Single equations (assignments): 232 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 12} * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0007862/9.023, allocations: 236.4 kB / 3.369 GB, free: 196.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006629/9.024, allocations: 225.3 kB / 3.369 GB, free: 196.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01388/9.038, allocations: 3.744 MB / 3.373 GB, free: 192.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.145e-05/9.038, allocations: 20 kB / 3.373 GB, free: 192.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.556e-05/9.038, allocations: 12 kB / 3.373 GB, free: 192.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.399e-05/9.038, allocations: 11.95 kB / 3.373 GB, free: 192.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02489/9.063, allocations: 9.27 MB / 3.382 GB, free: 183.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-05/9.063, allocations: 4.75 kB / 3.382 GB, free: 183.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002763/9.066, allocations: 347.4 kB / 3.382 GB, free: 182.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008667/9.074, allocations: 1.393 MB / 3.383 GB, free: 181.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004387/9.075, allocations: 47.98 kB / 3.383 GB, free: 181.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01752/9.092, allocations: 8.215 MB / 3.391 GB, free: 172.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.539e-06/9.092, allocations: 11.94 kB / 3.391 GB, free: 172.9 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/9.106, allocations: 4.383 MB / 3.396 GB, free: 168.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002287/9.109, allocations: 0.6387 MB / 3.396 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006429/9.109, allocations: 43.98 kB / 3.396 GB, free: 167.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002952/9.112, allocations: 179.8 kB / 3.396 GB, free: 167.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005796/9.113, allocations: 149.7 kB / 3.397 GB, free: 167.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/9.113, allocations: 67.97 kB / 3.397 GB, free: 167.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.003116/9.116, allocations: 1.42 MB / 3.398 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 5.82e-07/9.116, allocations: 4 kB / 3.398 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006086/9.122, allocations: 1.265 MB / 3.399 GB, free: 164.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (166): * Single equations (assignments): 162 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,80.0%) 11} * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01579/9.138, allocations: 7.108 MB / 3.406 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01527/9.154, allocations: 4.835 MB / 3.411 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.731e-05/9.154, allocations: 4 kB / 3.411 GB, free: 152.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.005674/9.159, allocations: 1.838 MB / 3.413 GB, free: 150.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004926/9.164, allocations: 0.5579 MB / 3.413 GB, free: 150 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/9.183, allocations: 6.102 MB / 3.419 GB, free: 143.8 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003212/9.186, allocations: 2.46 MB / 3.422 GB, free: 141.3 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.006653/9.193, allocations: 1.304 MB / 3.423 GB, free: 140 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002725/9.196, allocations: 1.194 MB / 3.424 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of SimCode: time 1.283e-06/9.196, allocations: 0 / 3.424 GB, free: 138.8 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1736/9.369, allocations: 69.6 MB / 3.492 GB, free: 69.55 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/9.37, allocations: 262.6 kB / 3.492 GB, free: 69.21 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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_N_functions.o] Error 1