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.22/2.22, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002312/0.002312, allocations: 173.7 kB / 325.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.39/2.39, allocations: 205.4 MB / 0.5764 GB, free: 20.8 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.001106/0.001106, allocations: 95.72 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004682/0.0004681, allocations: 9.781 kB / 0.7951 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2509/0.2514, allocations: 106.3 MB / 0.8988 GB, free: 65.47 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.391/7.642, allocations: 2.248 GB / 3.147 GB, free: 230.1 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003513/7.643, allocations: 114 kB / 3.147 GB, free: 230.1 MB / 0.8855 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 0.5733/8.216, allocations: 156.2 MB / 3.3 GB, free: 128.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.555e-06/8.216, allocations: 0 / 3.3 GB, free: 128.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004261/8.216, allocations: 91.92 kB / 3.3 GB, free: 128 MB / 0.8855 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.01328/8.23, allocations: 3.427 MB / 3.303 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/8.23, allocations: 8.031 kB / 3.303 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002348/8.232, allocations: 466.8 kB / 3.303 GB, free: 124 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007879/8.24, allocations: 0.8382 MB / 3.304 GB, free: 123.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007404/8.248, allocations: 2.273 MB / 3.307 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002769/8.248, allocations: 234.1 kB / 3.307 GB, free: 120.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001453/8.249, allocations: 315.8 kB / 3.307 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01416/8.264, allocations: 4.415 MB / 3.311 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001642/8.264, allocations: 4 kB / 3.311 GB, free: 115.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001192/8.265, allocations: 132 kB / 3.312 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002945/8.265, allocations: 174 kB / 3.312 GB, free: 115.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/8.278, allocations: 4.024 MB / 3.316 GB, free: 111.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03754/8.315, allocations: 19.87 MB / 3.335 GB, free: 89.96 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004992/8.32, allocations: 1.882 MB / 3.337 GB, free: 88.09 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004338/8.321, allocations: 130.4 kB / 3.337 GB, free: 87.94 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002932/8.324, allocations: 1.109 MB / 3.338 GB, free: 86.79 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=150): time 6.382e-06/8.324, allocations: 0 / 3.338 GB, free: 86.79 MB / 0.8855 GB Notification: Performance of matching and sorting (n=187): time 0.0568/8.381, allocations: 13.42 MB / 3.351 GB, free: 73.23 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001886/8.381, allocations: 0.5178 MB / 3.352 GB, free: 72.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005012/8.386, allocations: 2.06 MB / 3.354 GB, free: 70.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0005623/8.387, allocations: 61.7 kB / 3.354 GB, free: 70.44 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001835/8.388, allocations: 1.515 MB / 3.355 GB, free: 68.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001006/8.39, allocations: 0.6122 MB / 3.356 GB, free: 68.28 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/8.39, allocations: 40 kB / 3.356 GB, free: 68.24 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000161/8.39, allocations: 385.9 kB / 3.356 GB, free: 67.86 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002961/8.393, allocations: 1.128 MB / 3.357 GB, free: 66.73 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003592/8.397, allocations: 1.655 MB / 3.359 GB, free: 64.88 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0037/8.4, allocations: 1.387 MB / 3.36 GB, free: 63.49 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.509e-05/8.4, allocations: 4 kB / 3.36 GB, free: 63.49 MB / 0.8855 GB Notification: Performance of matching and sorting (n=254) (initialization): time 0.02006/8.42, allocations: 4.726 MB / 3.365 GB, free: 58.73 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009706/8.422, allocations: 4.667 MB / 3.369 GB, free: 53.72 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-05/8.422, allocations: 12 kB / 3.369 GB, free: 53.71 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01477/8.436, allocations: 2.049 MB / 3.371 GB, free: 51.64 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/8.44, allocations: 479.2 kB / 3.372 GB, free: 51.17 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02256/8.463, allocations: 9.852 MB / 3.382 GB, free: 40.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004272/8.467, allocations: 195.7 kB / 3.382 GB, free: 40.64 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007437/8.468, allocations: 87.97 kB / 3.382 GB, free: 40.55 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/8.468, allocations: 4 kB / 3.382 GB, free: 40.55 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01683/8.485, allocations: 3.867 MB / 3.386 GB, free: 36.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-05/8.485, allocations: 12 kB / 3.386 GB, free: 36.66 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01005/8.495, allocations: 1.384 MB / 3.387 GB, free: 35.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003853/8.499, allocations: 487.2 kB / 3.387 GB, free: 34.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01513/8.514, allocations: 7.84 MB / 3.395 GB, free: 26.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003548/8.518, allocations: 167.7 kB / 3.395 GB, free: 26.39 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004236/8.518, allocations: 87.97 kB / 3.395 GB, free: 26.3 MB / 0.8855 GB Warning: Assuming fixed start value for the following 2 variables: line.commercialCable.RCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "Characteristic resistance of the cable" type: Real line.commercialCable.XCha:VARIABLE(start = 0.0 unit = "Ohm/m" fixed = true ) "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 () * Number of clocked 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.003467/8.522, allocations: 1.273 MB / 3.397 GB, free: 25.02 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009044/8.523, allocations: 233.2 kB / 3.397 GB, free: 24.79 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0191/8.542, allocations: 4.526 MB / 3.401 GB, free: 20.23 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.183e-05/8.542, allocations: 20 kB / 3.401 GB, free: 20.21 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.85e-05/8.542, allocations: 4 kB / 3.401 GB, free: 20.21 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.148e-05/8.542, allocations: 11.97 kB / 3.401 GB, free: 20.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02951/8.571, allocations: 9.589 MB / 3.411 GB, free: 10.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.977e-05/8.571, allocations: 8.094 kB / 3.411 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002916/8.574, allocations: 359.4 kB / 3.411 GB, free: 10.09 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01409/8.588, allocations: 2.002 MB / 3.413 GB, free: 8.062 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004833/8.589, allocations: 47.94 kB / 3.413 GB, free: 8.016 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6508/9.24, allocations: 13.65 MB / 3.426 GB, free: 231.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/9.24, allocations: 6.969 kB / 3.426 GB, free: 231.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01941/9.259, allocations: 4.849 MB / 3.431 GB, free: 230.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002792/9.262, allocations: 0.6934 MB / 3.432 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009708/9.263, allocations: 43.34 kB / 3.432 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003476/9.267, allocations: 194.2 kB / 3.432 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008734/9.268, allocations: 147.5 kB / 3.432 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000286/9.268, allocations: 65.19 kB / 3.432 GB, free: 230.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.005116/9.273, allocations: 1.602 MB / 3.434 GB, free: 230.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.342e-06/9.273, allocations: 0.8125 kB / 3.434 GB, free: 230.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.008496/9.282, allocations: 1.285 MB / 3.435 GB, free: 230.5 MB / 0.8855 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) * Number of clocked states: 0 () * 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.02968/9.311, allocations: 7.242 MB / 3.442 GB, free: 228 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01748/9.329, allocations: 5.425 MB / 3.447 GB, free: 227.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.5e-05/9.329, allocations: 3.312 kB / 3.447 GB, free: 227.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.007285/9.336, allocations: 2.327 MB / 3.45 GB, free: 226.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005607/9.342, allocations: 0.5847 MB / 3.45 GB, free: 226.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02655/9.368, allocations: 17.65 MB / 3.467 GB, free: 214.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004797/9.373, allocations: 2.534 MB / 3.47 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.00552/9.379, allocations: 0.9968 MB / 3.471 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003498/9.382, allocations: 1.321 MB / 3.472 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of SimCode: time 1.443e-06/9.382, allocations: 0 / 3.472 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.175/9.557, allocations: 70.99 MB / 3.541 GB, free: 207.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002407/9.558, allocations: 283.1 kB / 3.542 GB, free: 207 MB / 0.8855 GB Error: Error building simulator. Build log: clang -Os -fPIC -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 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: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 -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 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: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_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