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 loadModel(Buildings): time 4.348/4.348, allocations: 460.5 MB / 472.6 MB, free: 5.387 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.417e-05/3.423e-05, allocations: 4 kB / 0.5682 GB, free: 10.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2296, allocations: 106.2 MB / 0.6719 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.609/7.839, allocations: 2.238 GB / 2.91 GB, free: 231.9 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003859/7.84, allocations: 111.7 kB / 2.91 GB, free: 231.9 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.7513/8.591, allocations: 185.5 MB / 3.091 GB, free: 56.64 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.385e-06/8.591, allocations: 4 kB / 3.091 GB, free: 56.64 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003737/8.591, allocations: 107.9 kB / 3.091 GB, free: 56.53 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.01495/8.606, allocations: 3.64 MB / 3.095 GB, free: 52.82 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/8.606, allocations: 12.02 kB / 3.095 GB, free: 52.8 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002803/8.609, allocations: 0.5926 MB / 3.095 GB, free: 52.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02064/8.63, allocations: 1.805 MB / 3.097 GB, free: 50.39 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01088/8.641, allocations: 2.399 MB / 3.1 GB, free: 47.93 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006888/8.641, allocations: 324.5 kB / 3.1 GB, free: 47.61 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003068/8.645, allocations: 423.9 kB / 3.1 GB, free: 47.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.021/8.666, allocations: 5.954 MB / 3.106 GB, free: 41.02 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001836/8.666, allocations: 15.78 kB / 3.106 GB, free: 41 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001388/8.667, allocations: 188 kB / 3.106 GB, free: 40.82 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003135/8.668, allocations: 215.4 kB / 3.106 GB, free: 40.61 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01732/8.685, allocations: 5.558 MB / 3.112 GB, free: 35.04 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05566/8.741, allocations: 26.17 MB / 3.137 GB, free: 7.254 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/8.751, allocations: 3.728 MB / 3.141 GB, free: 3.488 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004778/8.756, allocations: 1.817 MB / 3.143 GB, free: 1.66 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/8.757, allocations: 0.5232 MB / 3.143 GB, free: 1.043 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.6186/9.376, allocations: 1.96 MB / 3.145 GB, free: 227.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=254): time 1.236e-05/9.376, allocations: 0 / 3.145 GB, free: 227.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=257): time 0.0211/9.397, allocations: 5.598 MB / 3.151 GB, free: 225.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001702/9.397, allocations: 446.1 kB / 3.151 GB, free: 225.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004573/9.402, allocations: 1.569 MB / 3.153 GB, free: 225 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000921/9.403, allocations: 71.23 kB / 3.153 GB, free: 225 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.002304/9.405, allocations: 1.705 MB / 3.154 GB, free: 224.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001666/9.407, allocations: 0.8631 MB / 3.155 GB, free: 224 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005386/9.407, allocations: 51.81 kB / 3.155 GB, free: 224 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002484/9.408, allocations: 408.6 kB / 3.156 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004556/9.412, allocations: 1.412 MB / 3.157 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005622/9.418, allocations: 2.111 MB / 3.159 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005519/9.423, allocations: 1.698 MB / 3.161 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.243e-05/9.424, allocations: 10.36 kB / 3.161 GB, free: 222.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.0157/9.439, allocations: 3.819 MB / 3.165 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001719/9.441, allocations: 6.837 MB / 3.171 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.713e-05/9.441, allocations: 16.38 kB / 3.171 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001318/9.441, allocations: 34.53 kB / 3.171 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009127/9.45, allocations: 0.83 MB / 3.172 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001165/9.451, allocations: 40.98 kB / 3.172 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007064/9.458, allocations: 404.8 kB / 3.173 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001088/9.459, allocations: 136.3 kB / 3.173 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/9.459, allocations: 6.312 kB / 3.173 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01143/9.47, allocations: 3.285 MB / 3.176 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.621e-05/9.47, allocations: 16.59 kB / 3.176 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.93e-05/9.471, allocations: 33.7 kB / 3.176 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008419/9.479, allocations: 0.7804 MB / 3.177 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001097/9.479, allocations: 46.98 kB / 3.177 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/9.485, allocations: 344.3 kB / 3.177 GB, free: 215.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/9.486, allocations: 138.8 kB / 3.177 GB, free: 215.2 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 () * 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.001381/9.488, allocations: 269.2 kB / 3.177 GB, free: 215.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001108/9.489, allocations: 244.3 kB / 3.178 GB, free: 215 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/9.503, allocations: 4.037 MB / 3.182 GB, free: 214.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.455e-05/9.503, allocations: 27.61 kB / 3.182 GB, free: 214.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.725e-05/9.503, allocations: 9.391 kB / 3.182 GB, free: 214.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.155e-05/9.503, allocations: 13.45 kB / 3.182 GB, free: 214.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02478/9.528, allocations: 8.998 MB / 3.19 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/9.528, allocations: 3.938 kB / 3.19 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008219/9.536, allocations: 0.785 MB / 3.191 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.725e-05/9.536, allocations: 11.81 kB / 3.191 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008041/9.537, allocations: 67.33 kB / 3.191 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.738e-05/9.537, allocations: 15.53 kB / 3.191 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/9.537, allocations: 7.406 kB / 3.191 GB, free: 213.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/9.548, allocations: 3.961 MB / 3.195 GB, free: 213 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003321/9.551, allocations: 0.8223 MB / 3.196 GB, free: 212.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/9.553, allocations: 46.41 kB / 3.196 GB, free: 212.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005724/9.558, allocations: 295.3 kB / 3.196 GB, free: 212.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006214/9.559, allocations: 160.7 kB / 3.197 GB, free: 212.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004123/9.56, allocations: 96.56 kB / 3.197 GB, free: 212.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002892/9.562, allocations: 1.276 MB / 3.198 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.71e-07/9.562, allocations: 3.75 kB / 3.198 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.00865/9.571, allocations: 1.405 MB / 3.199 GB, free: 212.5 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 (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.01283/9.584, allocations: 5.649 MB / 3.205 GB, free: 210.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01554/9.6, allocations: 5.299 MB / 3.21 GB, free: 210.5 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/9.6, allocations: 3.562 kB / 3.21 GB, free: 210.5 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.005025/9.605, allocations: 1.751 MB / 3.212 GB, free: 210.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00562/9.61, allocations: 0.5762 MB / 3.212 GB, free: 210.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02549/9.636, allocations: 7.122 MB / 3.219 GB, free: 207.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004652/9.641, allocations: 2.688 MB / 3.222 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01206/9.653, allocations: 1.427 MB / 3.223 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004793/9.658, allocations: 1.568 MB / 3.225 GB, free: 205.5 MB / 0.8855 GB Notification: Performance of SimCode: time 1.874e-06/9.658, allocations: 4 kB / 3.225 GB, free: 205.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2189/9.877, allocations: 70.9 MB / 3.294 GB, free: 190.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002315/9.877, allocations: 224.6 kB / 3.294 GB, free: 190.1 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.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: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_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: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_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o] Error 1