Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.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.PVPanels,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels",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.308/2.308, allocations: 251 MB / 265.9 MB, free: 11.7 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.001563/0.001563, allocations: 178.5 kB / 325.5 MB, free: 2.891 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.58/2.58, allocations: 205.4 MB / 0.5764 GB, free: 21.17 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.001253/0.001252, allocations: 96.25 kB / 0.6809 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004711/0.0004711, allocations: 11.97 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2073, allocations: 106.3 MB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.665/7.872, allocations: 2.238 GB / 3.137 GB, free: 232.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/7.873, allocations: 108.5 kB / 3.137 GB, free: 232.5 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.7042/8.577, allocations: 186.4 MB / 3.319 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.885e-06/8.577, allocations: 4 kB / 3.319 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000371/8.577, allocations: 107.9 kB / 3.319 GB, free: 109.4 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: 1124 * Number of variables: 1124 Notification: Performance of Generate backend data structure: time 0.01626/8.594, allocations: 3.93 MB / 3.323 GB, free: 105.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/8.594, allocations: 12.03 kB / 3.323 GB, free: 105.4 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002982/8.597, allocations: 0.5965 MB / 3.324 GB, free: 104.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02128/8.618, allocations: 1.805 MB / 3.325 GB, free: 102.9 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007565/8.626, allocations: 2.411 MB / 3.328 GB, free: 100.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003719/8.626, allocations: 324.5 kB / 3.328 GB, free: 100.2 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002052/8.628, allocations: 420 kB / 3.328 GB, free: 99.75 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0239/8.652, allocations: 6.449 MB / 3.335 GB, free: 93.07 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002159/8.652, allocations: 11.88 kB / 3.335 GB, free: 93.05 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001444/8.654, allocations: 180 kB / 3.335 GB, free: 92.88 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002956/8.654, allocations: 223.4 kB / 3.335 GB, free: 92.66 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02628/8.68, allocations: 6.461 MB / 3.341 GB, free: 86.19 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05552/8.736, allocations: 26.18 MB / 3.367 GB, free: 58.4 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01733/8.753, allocations: 4.281 MB / 3.371 GB, free: 54.08 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001245/8.755, allocations: 0.5075 MB / 3.372 GB, free: 53.48 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008726/8.763, allocations: 2.236 MB / 3.374 GB, free: 51.22 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=254): time 6.973e-06/8.763, allocations: 0 / 3.374 GB, free: 51.22 MB / 0.8855 GB Notification: Performance of matching and sorting (n=257): time 0.03046/8.794, allocations: 7.709 MB / 3.381 GB, free: 43.46 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001513/8.794, allocations: 449.2 kB / 3.382 GB, free: 42.93 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003688/8.798, allocations: 1.577 MB / 3.383 GB, free: 41.31 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0009402/8.799, allocations: 73.7 kB / 3.383 GB, free: 41.23 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001911/8.801, allocations: 1.72 MB / 3.385 GB, free: 39.49 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001562/8.802, allocations: 0.8548 MB / 3.386 GB, free: 38.62 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005352/8.803, allocations: 55.94 kB / 3.386 GB, free: 38.57 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002326/8.803, allocations: 415.5 kB / 3.386 GB, free: 38.16 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007402/8.811, allocations: 1.657 MB / 3.388 GB, free: 36.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008623/8.819, allocations: 2.371 MB / 3.39 GB, free: 33.83 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008139/8.827, allocations: 1.949 MB / 3.392 GB, free: 31.86 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.995e-05/8.828, allocations: 4 kB / 3.392 GB, free: 31.86 MB / 0.8855 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.0187/8.846, allocations: 4.367 MB / 3.396 GB, free: 27.44 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.00146/8.848, allocations: 6.821 MB / 3.403 GB, free: 19.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-05/8.848, allocations: 16 kB / 3.403 GB, free: 19.97 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.57e-05/8.848, allocations: 35.98 kB / 3.403 GB, free: 19.94 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008389/8.856, allocations: 0.8307 MB / 3.404 GB, free: 19.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.475e-05/8.856, allocations: 43.86 kB / 3.404 GB, free: 19.06 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006371/8.863, allocations: 398.1 kB / 3.404 GB, free: 18.67 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009859/8.864, allocations: 143.9 kB / 3.405 GB, free: 18.53 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/8.864, allocations: 4 kB / 3.405 GB, free: 18.53 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01661/8.881, allocations: 3.822 MB / 3.408 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.631e-05/8.881, allocations: 19.98 kB / 3.408 GB, free: 14.64 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.939e-05/8.881, allocations: 36 kB / 3.408 GB, free: 14.61 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007754/8.888, allocations: 0.78 MB / 3.409 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.119e-05/8.889, allocations: 43.86 kB / 3.409 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005831/8.894, allocations: 350.2 kB / 3.409 GB, free: 13.44 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009638/8.895, allocations: 135.9 kB / 3.41 GB, free: 13.31 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (346): * Single equations (assignments): 346 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004142/8.9, allocations: 1.313 MB / 3.411 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009566/8.901, allocations: 245 kB / 3.411 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01964/8.92, allocations: 4.525 MB / 3.416 GB, free: 7.156 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-05/8.92, allocations: 27.95 kB / 3.416 GB, free: 7.129 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-05/8.92, allocations: 4 kB / 3.416 GB, free: 7.125 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.828e-05/8.92, allocations: 15.94 kB / 3.416 GB, free: 7.109 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6748/9.595, allocations: 9.485 MB / 3.425 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.787e-05/9.595, allocations: 3.062 kB / 3.425 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008075/9.603, allocations: 0.7785 MB / 3.426 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-05/9.603, allocations: 11.59 kB / 3.426 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006713/9.604, allocations: 73.47 kB / 3.426 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.31e-05/9.604, allocations: 17.7 kB / 3.426 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/9.604, allocations: 4.188 kB / 3.426 GB, free: 229.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01802/9.622, allocations: 4.45 MB / 3.43 GB, free: 228.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003442/9.626, allocations: 0.821 MB / 3.431 GB, free: 228.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/9.627, allocations: 51.83 kB / 3.431 GB, free: 228.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005973/9.633, allocations: 292.8 kB / 3.431 GB, free: 228.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009244/9.634, allocations: 165 kB / 3.431 GB, free: 228.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005406/9.635, allocations: 95.27 kB / 3.431 GB, free: 228.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.003924/9.638, allocations: 1.3 MB / 3.433 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 7.41e-07/9.638, allocations: 2.938 kB / 3.433 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.009416/9.648, allocations: 1.404 MB / 3.434 GB, free: 228.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (276): * Single equations (assignments): 274 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02095/9.669, allocations: 6.148 MB / 3.44 GB, free: 226.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02547/9.694, allocations: 6.061 MB / 3.446 GB, free: 226.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/9.695, allocations: 2.156 kB / 3.446 GB, free: 226.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0089/9.703, allocations: 2.006 MB / 3.448 GB, free: 226.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00575/9.709, allocations: 0.5747 MB / 3.449 GB, free: 226.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07127/9.781, allocations: 33.03 MB / 3.481 GB, free: 207.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004703/9.785, allocations: 2.687 MB / 3.483 GB, free: 207.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01032/9.796, allocations: 1.28 MB / 3.485 GB, free: 207 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005379/9.801, allocations: 1.6 MB / 3.486 GB, free: 207 MB / 0.8855 GB Notification: Performance of SimCode: time 9.92e-07/9.801, allocations: 3.281 kB / 3.486 GB, free: 207 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/9.999, allocations: 68.18 MB / 3.553 GB, free: 198.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/10, allocations: 251 kB / 3.553 GB, free: 198.5 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_PVPanels.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_PVPanels_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_PVPanels_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_PVPanels_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o] Error 1