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.345/2.345, allocations: 251 MB / 265.9 MB, free: 11.67 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.001556/0.001556, allocations: 185.8 kB / 325.5 MB, free: 2.879 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.433/2.433, allocations: 205.4 MB / 0.5764 GB, free: 21.14 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.001162/0.001162, allocations: 99.78 kB / 0.6809 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005028/0.0005031, allocations: 13.75 kB / 0.795 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2352/0.2358, allocations: 106.3 MB / 0.8988 GB, free: 65.89 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.465/7.701, allocations: 2.25 GB / 3.149 GB, free: 230.6 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004027/7.702, allocations: 114.7 kB / 3.149 GB, free: 230.6 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.5458/8.247, allocations: 146.8 MB / 3.292 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.825e-06/8.248, allocations: 4 kB / 3.292 GB, free: 136.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0004254/8.248, allocations: 83.94 kB / 3.292 GB, free: 136.6 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: 808 * Number of variables: 808 Notification: Performance of Generate backend data structure: time 0.01358/8.262, allocations: 3.323 MB / 3.295 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/8.262, allocations: 8.031 kB / 3.295 GB, free: 133.2 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002405/8.264, allocations: 454.6 kB / 3.296 GB, free: 132.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007979/8.272, allocations: 0.8384 MB / 3.297 GB, free: 131.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00742/8.28, allocations: 2.134 MB / 3.299 GB, free: 129.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003243/8.28, allocations: 226.1 kB / 3.299 GB, free: 129.4 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/8.282, allocations: 307.9 kB / 3.299 GB, free: 129.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01513/8.297, allocations: 4.342 MB / 3.304 GB, free: 124.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000188/8.297, allocations: 11.94 kB / 3.304 GB, free: 124.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001384/8.298, allocations: 128 kB / 3.304 GB, free: 124.5 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002752/8.299, allocations: 173.9 kB / 3.304 GB, free: 124.4 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01264/8.311, allocations: 3.977 MB / 3.308 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0378/8.349, allocations: 18.57 MB / 3.326 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00519/8.354, allocations: 1.806 MB / 3.328 GB, free: 98.52 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000401/8.355, allocations: 130.4 kB / 3.328 GB, free: 98.38 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003046/8.358, allocations: 1.095 MB / 3.329 GB, free: 97.23 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=147): time 6.663e-06/8.358, allocations: 0 / 3.329 GB, free: 97.23 MB / 0.8855 GB Notification: Performance of matching and sorting (n=182): time 0.05878/8.417, allocations: 13.45 MB / 3.342 GB, free: 83.65 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/8.417, allocations: 0.5847 MB / 3.343 GB, free: 82.93 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005174/8.422, allocations: 1.858 MB / 3.344 GB, free: 81.03 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000533/8.423, allocations: 65.7 kB / 3.344 GB, free: 80.96 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001904/8.425, allocations: 1.467 MB / 3.346 GB, free: 79.47 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001025/8.426, allocations: 0.6084 MB / 3.346 GB, free: 78.85 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000393/8.426, allocations: 44 kB / 3.346 GB, free: 78.81 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002297/8.426, allocations: 386 kB / 3.347 GB, free: 78.43 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003599/8.43, allocations: 1.109 MB / 3.348 GB, free: 77.31 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004792/8.435, allocations: 1.686 MB / 3.35 GB, free: 75.38 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00397/8.439, allocations: 1.391 MB / 3.351 GB, free: 73.99 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.837e-05/8.439, allocations: 4 kB / 3.351 GB, free: 73.98 MB / 0.8855 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01765/8.457, allocations: 4.326 MB / 3.355 GB, free: 69.64 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001409/8.458, allocations: 5.87 MB / 3.361 GB, free: 63.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.826e-05/8.458, allocations: 19.98 kB / 3.361 GB, free: 63.25 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01104/8.469, allocations: 1.574 MB / 3.362 GB, free: 61.67 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003857/8.473, allocations: 487.2 kB / 3.363 GB, free: 61.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/8.487, allocations: 6.117 MB / 3.369 GB, free: 54.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003746/8.491, allocations: 215.5 kB / 3.369 GB, free: 54.71 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005132/8.491, allocations: 87.98 kB / 3.369 GB, free: 54.62 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/8.491, allocations: 4 kB / 3.369 GB, free: 54.62 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01289/8.504, allocations: 3.604 MB / 3.373 GB, free: 51.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.053e-05/8.504, allocations: 16 kB / 3.373 GB, free: 51 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007139/8.512, allocations: 1.031 MB / 3.374 GB, free: 49.96 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003822/8.515, allocations: 0.4914 MB / 3.374 GB, free: 49.47 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01185/8.527, allocations: 5.139 MB / 3.379 GB, free: 44.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003446/8.531, allocations: 175.8 kB / 3.379 GB, free: 44.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000589/8.531, allocations: 95.97 kB / 3.379 GB, free: 43.93 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: 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 () * Number of clocked 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.003455/8.535, allocations: 1.244 MB / 3.381 GB, free: 42.68 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008199/8.536, allocations: 221.3 kB / 3.381 GB, free: 42.46 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01612/8.552, allocations: 3.877 MB / 3.385 GB, free: 38.56 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.362e-05/8.552, allocations: 24 kB / 3.385 GB, free: 38.54 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.569e-05/8.552, allocations: 4 kB / 3.385 GB, free: 38.54 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.449e-05/8.552, allocations: 15.95 kB / 3.385 GB, free: 38.52 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02656/8.579, allocations: 9.401 MB / 3.394 GB, free: 28.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/8.579, allocations: 8.078 kB / 3.394 GB, free: 28.95 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002658/8.581, allocations: 335.5 kB / 3.394 GB, free: 28.62 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01036/8.592, allocations: 1.513 MB / 3.396 GB, free: 27.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004535/8.592, allocations: 55.98 kB / 3.396 GB, free: 27.04 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01896/8.611, allocations: 8.657 MB / 3.404 GB, free: 18.12 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/8.611, allocations: 11.94 kB / 3.404 GB, free: 18.11 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01483/8.626, allocations: 4.515 MB / 3.409 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002196/8.629, allocations: 0.6348 MB / 3.409 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008569/8.629, allocations: 43.98 kB / 3.409 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00322/8.633, allocations: 187.8 kB / 3.409 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000706/8.633, allocations: 145.7 kB / 3.41 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002533/8.634, allocations: 75.92 kB / 3.41 GB, free: 12.17 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.003605/8.637, allocations: 1.443 MB / 3.411 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.51e-07/8.637, allocations: 0 / 3.411 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.007124/8.644, allocations: 1.269 MB / 3.412 GB, free: 9.438 MB / 0.8855 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) * Number of clocked states: 0 () * 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.01828/8.663, allocations: 7.295 MB / 3.419 GB, free: 2.145 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.6386/9.302, allocations: 4.88 MB / 3.424 GB, free: 243.8 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/9.302, allocations: 2.781 kB / 3.424 GB, free: 243.8 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.00613/9.308, allocations: 1.874 MB / 3.426 GB, free: 243.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004934/9.313, allocations: 0.5498 MB / 3.427 GB, free: 243.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03028/9.343, allocations: 19.43 MB / 3.446 GB, free: 229.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009919/9.353, allocations: 2.468 MB / 3.448 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01177/9.365, allocations: 1.012 MB / 3.449 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005879/9.371, allocations: 1.234 MB / 3.45 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of SimCode: time 2.415e-06/9.371, allocations: 3.062 kB / 3.45 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1634/9.534, allocations: 66.26 MB / 3.515 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002686/9.535, allocations: 289 kB / 3.515 GB, free: 225.6 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_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: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_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: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_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