Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.516/4.516, allocations: 460.4 MB / 472.6 MB, free: 5.383 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.117e-05/4.123e-05, allocations: 4 kB / 0.5682 GB, free: 10.05 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2331, allocations: 106.2 MB / 0.6719 GB, free: 15.65 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.594/7.827, allocations: 2.239 GB / 2.91 GB, free: 231 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003696/7.827, allocations: 106.1 kB / 2.911 GB, free: 230.9 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.6292/8.457, allocations: 162.8 MB / 3.07 GB, free: 78.67 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.144e-06/8.457, allocations: 0 / 3.07 GB, free: 78.67 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.00034/8.457, allocations: 95.92 kB / 3.07 GB, free: 78.57 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: 1041 * Number of variables: 1041 Notification: Performance of Generate backend data structure: time 0.01374/8.471, allocations: 3.429 MB / 3.073 GB, free: 75.08 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.623e-05/8.471, allocations: 12.03 kB / 3.073 GB, free: 75.07 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002573/8.473, allocations: 0.5592 MB / 3.074 GB, free: 74.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01953/8.493, allocations: 1.727 MB / 3.075 GB, free: 72.77 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007513/8.5, allocations: 2.199 MB / 3.077 GB, free: 70.51 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003769/8.501, allocations: 299.9 kB / 3.078 GB, free: 70.22 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001971/8.503, allocations: 395.9 kB / 3.078 GB, free: 69.83 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0189/8.522, allocations: 5.493 MB / 3.083 GB, free: 64.14 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002179/8.522, allocations: 7.938 kB / 3.083 GB, free: 64.14 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001844/8.524, allocations: 172 kB / 3.084 GB, free: 63.97 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000316/8.524, allocations: 186.9 kB / 3.084 GB, free: 63.79 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/8.541, allocations: 5.202 MB / 3.089 GB, free: 58.58 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05068/8.592, allocations: 22.86 MB / 3.111 GB, free: 34.38 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009623/8.601, allocations: 3.437 MB / 3.115 GB, free: 30.89 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004429/8.606, allocations: 1.598 MB / 3.116 GB, free: 29.27 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001218/8.607, allocations: 0.5112 MB / 3.117 GB, free: 28.67 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005128/8.612, allocations: 1.776 MB / 3.118 GB, free: 26.86 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=240): time 9.037e-06/8.612, allocations: 4 kB / 3.118 GB, free: 26.86 MB / 0.8855 GB Notification: Performance of matching and sorting (n=243): time 0.01397/8.626, allocations: 5.055 MB / 3.123 GB, free: 21.76 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001669/8.627, allocations: 445.2 kB / 3.124 GB, free: 21.23 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/8.63, allocations: 1.498 MB / 3.125 GB, free: 19.73 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0009532/8.631, allocations: 69.7 kB / 3.125 GB, free: 19.66 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001964/8.633, allocations: 1.598 MB / 3.127 GB, free: 18.04 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001575/8.635, allocations: 0.8047 MB / 3.128 GB, free: 17.22 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004065/8.635, allocations: 52 kB / 3.128 GB, free: 17.17 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002181/8.636, allocations: 411.3 kB / 3.128 GB, free: 16.77 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003777/8.639, allocations: 1.298 MB / 3.129 GB, free: 15.46 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004676/8.644, allocations: 1.999 MB / 3.131 GB, free: 13.17 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00455/8.649, allocations: 1.592 MB / 3.133 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.997e-05/8.649, allocations: 4 kB / 3.133 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01079/8.66, allocations: 3.573 MB / 3.136 GB, free: 7.992 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001563/8.661, allocations: 7.138 MB / 3.143 GB, free: 476 kB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.432e-05/8.661, allocations: 24.08 kB / 3.143 GB, free: 452 kB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.178e-05/8.661, allocations: 32 kB / 3.143 GB, free: 420 kB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.6297/9.291, allocations: 0.7916 MB / 3.144 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001127/9.291, allocations: 43.97 kB / 3.144 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006587/9.298, allocations: 378.2 kB / 3.144 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/9.299, allocations: 137.1 kB / 3.145 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/9.299, allocations: 6.094 kB / 3.145 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01314/9.312, allocations: 3.146 MB / 3.148 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.487e-05/9.312, allocations: 17.88 kB / 3.148 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.776e-05/9.312, allocations: 33.88 kB / 3.148 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008319/9.321, allocations: 0.7516 MB / 3.148 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001297/9.321, allocations: 40.52 kB / 3.148 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005952/9.327, allocations: 343.2 kB / 3.149 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00098/9.328, allocations: 133.1 kB / 3.149 GB, free: 234.5 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (336): * Single equations (assignments): 336 * 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.001305/9.329, allocations: 274.5 kB / 3.149 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008852/9.33, allocations: 229.6 kB / 3.149 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/9.344, allocations: 3.633 MB / 3.153 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.511e-05/9.344, allocations: 26.03 kB / 3.153 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/9.344, allocations: 6.781 kB / 3.153 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-05/9.344, allocations: 15.64 kB / 3.153 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02571/9.37, allocations: 8.14 MB / 3.161 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.092e-05/9.37, allocations: 2.312 kB / 3.161 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008031/9.378, allocations: 0.7148 MB / 3.162 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.547e-05/9.378, allocations: 12.62 kB / 3.162 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007806/9.379, allocations: 70.89 kB / 3.162 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-05/9.379, allocations: 13.67 kB / 3.162 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.374e-06/9.379, allocations: 2.344 kB / 3.162 GB, free: 233.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01065/9.389, allocations: 3.594 MB / 3.165 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003021/9.392, allocations: 0.772 MB / 3.166 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001235/9.394, allocations: 46.75 kB / 3.166 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006033/9.4, allocations: 269.5 kB / 3.166 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009625/9.401, allocations: 157.2 kB / 3.166 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005067/9.401, allocations: 89.7 kB / 3.167 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.003347/9.405, allocations: 1.222 MB / 3.168 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.91e-07/9.405, allocations: 0 / 3.168 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00938/9.414, allocations: 1.318 MB / 3.169 GB, free: 232.4 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (262): * Single equations (assignments): 260 * 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.01397/9.428, allocations: 5.265 MB / 3.174 GB, free: 230.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01471/9.443, allocations: 4.917 MB / 3.179 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.45e-05/9.443, allocations: 0 / 3.179 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.004976/9.448, allocations: 1.568 MB / 3.181 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005387/9.454, allocations: 0.5052 MB / 3.181 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02396/9.478, allocations: 6.523 MB / 3.187 GB, free: 229.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004095/9.482, allocations: 2.531 MB / 3.19 GB, free: 228.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01255/9.494, allocations: 1.399 MB / 3.191 GB, free: 228.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004304/9.499, allocations: 1.437 MB / 3.193 GB, free: 228.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.562e-06/9.499, allocations: 0 / 3.193 GB, free: 228.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1715/9.67, allocations: 65.7 MB / 3.257 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/9.67, allocations: 226.6 kB / 3.257 GB, free: 222.7 MB / 0.8855 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_PVPanels_N_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_includes.h:4: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/getTimeSpan.c:12: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/getTimeSpan.h:11: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_N_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o] Error 1