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.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,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.203/2.203, allocations: 248.5 MB / 261.1 MB, free: 6.031 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.001395/0.001395, allocations: 182.8 kB / 320.4 MB, free: 15.35 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.932/1.932, allocations: 205.1 MB / 0.571 GB, free: 11.84 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.002307/0.002306, allocations: 97.5 kB / 0.6754 GB, free: 0.9258 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.087e-05/4.106e-05, allocations: 4 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2055, allocations: 106.3 MB / 0.8907 GB, free: 7.457 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.401/7.607, allocations: 2.248 GB / 3.139 GB, free: 85.54 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003848/7.607, allocations: 106.6 kB / 3.139 GB, free: 85.48 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.349/8.956, allocations: 155.5 MB / 3.291 GB, free: 253.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.285e-06/8.956, allocations: 0 / 3.291 GB, free: 253.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0004542/8.956, allocations: 86.66 kB / 3.291 GB, free: 253.5 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01269/8.969, allocations: 3.074 MB / 3.294 GB, free: 251.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.168e-05/8.969, allocations: 7.875 kB / 3.294 GB, free: 251.8 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002411/8.971, allocations: 454.6 kB / 3.294 GB, free: 251.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007693/8.979, allocations: 0.8326 MB / 3.295 GB, free: 251.4 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007586/8.987, allocations: 2.279 MB / 3.297 GB, free: 250.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003062/8.987, allocations: 237 kB / 3.298 GB, free: 250.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001587/8.989, allocations: 299.4 kB / 3.298 GB, free: 250 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/9.005, allocations: 4.352 MB / 3.302 GB, free: 248.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001612/9.005, allocations: 7.625 kB / 3.302 GB, free: 248.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001212/9.006, allocations: 133.4 kB / 3.302 GB, free: 248 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002983/9.007, allocations: 176.5 kB / 3.302 GB, free: 247.9 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01278/9.02, allocations: 3.925 MB / 3.306 GB, free: 246.6 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04119/9.061, allocations: 19.86 MB / 3.326 GB, free: 232.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004895/9.066, allocations: 1.826 MB / 3.327 GB, free: 231.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002283/9.068, allocations: 0.9376 MB / 3.328 GB, free: 231 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003978/9.069, allocations: 136 kB / 3.328 GB, free: 230.9 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00264/9.071, allocations: 1.086 MB / 3.329 GB, free: 230.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=150): time 6.102e-06/9.071, allocations: 0 / 3.329 GB, free: 230.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=187): time 0.05099/9.122, allocations: 11.84 MB / 3.341 GB, free: 224.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001812/9.123, allocations: 0.5084 MB / 3.342 GB, free: 224.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004427/9.127, allocations: 2.036 MB / 3.344 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005383/9.128, allocations: 57.7 kB / 3.344 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001654/9.129, allocations: 1.511 MB / 3.345 GB, free: 220.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007754/9.13, allocations: 0.6196 MB / 3.346 GB, free: 220.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002241/9.13, allocations: 44 kB / 3.346 GB, free: 220.2 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.00014/9.13, allocations: 390 kB / 3.346 GB, free: 219.9 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002564/9.133, allocations: 1.093 MB / 3.347 GB, free: 218.8 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002925/9.136, allocations: 1.624 MB / 3.349 GB, free: 216.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/9.139, allocations: 1.357 MB / 3.35 GB, free: 215.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/9.139, allocations: 4 kB / 3.35 GB, free: 215.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.01744/9.156, allocations: 4.551 MB / 3.354 GB, free: 211 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001111/9.158, allocations: 4.659 MB / 3.359 GB, free: 206 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.187e-05/9.158, allocations: 12 kB / 3.359 GB, free: 206 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01346/9.171, allocations: 1.858 MB / 3.361 GB, free: 204.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003795/9.175, allocations: 471.3 kB / 3.361 GB, free: 203.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01617/9.191, allocations: 9.516 MB / 3.371 GB, free: 193.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003928/9.195, allocations: 199.7 kB / 3.371 GB, free: 193.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003389/9.195, allocations: 87.97 kB / 3.371 GB, free: 193.4 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/9.195, allocations: 5.406 kB / 3.371 GB, free: 193.4 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01341/9.209, allocations: 3.699 MB / 3.375 GB, free: 189.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.668e-05/9.209, allocations: 16.03 kB / 3.375 GB, free: 189.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007656/9.217, allocations: 1.181 MB / 3.376 GB, free: 188.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003886/9.221, allocations: 483.2 kB / 3.376 GB, free: 188 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/9.235, allocations: 7.519 MB / 3.383 GB, free: 180.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003696/9.238, allocations: 159.8 kB / 3.384 GB, free: 179.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004905/9.239, allocations: 88.05 kB / 3.384 GB, free: 179.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: 51 * 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 (236): * Single equations (assignments): 230 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0008136/9.24, allocations: 234.9 kB / 3.384 GB, free: 179.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000845/9.241, allocations: 237.1 kB / 3.384 GB, free: 179.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0175/9.258, allocations: 4.35 MB / 3.388 GB, free: 175 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.003e-05/9.258, allocations: 23.95 kB / 3.388 GB, free: 174.9 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.645e-05/9.258, allocations: 4.328 kB / 3.388 GB, free: 174.9 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.212e-05/9.258, allocations: 15.95 kB / 3.388 GB, free: 174.9 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02757/9.286, allocations: 9.409 MB / 3.398 GB, free: 165.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.263e-05/9.286, allocations: 8 kB / 3.398 GB, free: 165.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002961/9.289, allocations: 364 kB / 3.398 GB, free: 165 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01196/9.301, allocations: 1.811 MB / 3.4 GB, free: 163.2 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004736/9.301, allocations: 43.98 kB / 3.4 GB, free: 163.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02217/9.324, allocations: 13.17 MB / 3.413 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/9.324, allocations: 8 kB / 3.413 GB, free: 149.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01659/9.34, allocations: 4.672 MB / 3.417 GB, free: 144.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002419/9.343, allocations: 0.6892 MB / 3.418 GB, free: 143.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007109/9.344, allocations: 44 kB / 3.418 GB, free: 143.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003277/9.347, allocations: 191.7 kB / 3.418 GB, free: 143.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006805/9.348, allocations: 153.7 kB / 3.418 GB, free: 143.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/9.348, allocations: 63.97 kB / 3.418 GB, free: 143.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.003591/9.351, allocations: 1.58 MB / 3.42 GB, free: 141.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7.72e-07/9.351, allocations: 3.938 kB / 3.42 GB, free: 141.5 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006474/9.358, allocations: 1.289 MB / 3.421 GB, free: 140.2 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (184): * Single equations (assignments): 176 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 2,(2,100.0%) 2,(2,100.0%) 2} * Non-linear torn systems: 3 {2 2,2 2,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.01941/9.377, allocations: 7.006 MB / 3.428 GB, free: 133.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01652/9.394, allocations: 5.366 MB / 3.433 GB, free: 127.8 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.515e-05/9.394, allocations: 8 kB / 3.433 GB, free: 127.8 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.006808/9.401, allocations: 2.292 MB / 3.435 GB, free: 125.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005097/9.406, allocations: 0.5822 MB / 3.436 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01956/9.426, allocations: 6.273 MB / 3.442 GB, free: 118.5 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004333/9.43, allocations: 2.536 MB / 3.445 GB, free: 115.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.007698/9.438, allocations: 1.384 MB / 3.446 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002919/9.441, allocations: 1.28 MB / 3.447 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.433e-06/9.441, allocations: 0 / 3.447 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1783/9.619, allocations: 74.47 MB / 3.52 GB, free: 39.05 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002104/9.619, allocations: 257.3 kB / 3.52 GB, free: 38.71 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.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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 -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_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_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_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_WindTurbine_functions.o] Error 1