Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.276/4.276, allocations: 464.6 MB / 476.8 MB, free: 2.176 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.551e-05/3.565e-05, allocations: 0 / 0.5732 GB, free: 5.617 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2725/0.2726, allocations: 107.2 MB / 0.6778 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.297/7.57, allocations: 2.239 GB / 2.917 GB, free: 210.3 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003637/7.571, allocations: 102.9 kB / 2.917 GB, free: 210.3 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.6429/8.213, allocations: 162.8 MB / 3.076 GB, free: 57.21 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.574e-06/8.214, allocations: 0 / 3.076 GB, free: 57.21 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003315/8.214, allocations: 91.98 kB / 3.076 GB, free: 57.12 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.01343/8.227, allocations: 3.425 MB / 3.079 GB, free: 53.63 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/8.227, allocations: 19.95 kB / 3.079 GB, free: 53.61 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00209/8.229, allocations: 0.5475 MB / 3.08 GB, free: 53.06 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01969/8.249, allocations: 1.731 MB / 3.082 GB, free: 51.32 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007136/8.256, allocations: 2.207 MB / 3.084 GB, free: 49.06 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003524/8.257, allocations: 299.9 kB / 3.084 GB, free: 48.77 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002024/8.259, allocations: 387.9 kB / 3.084 GB, free: 48.39 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/8.278, allocations: 5.499 MB / 3.09 GB, free: 42.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001822/8.278, allocations: 11.89 kB / 3.09 GB, free: 42.69 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001383/8.28, allocations: 168 kB / 3.09 GB, free: 42.52 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002722/8.28, allocations: 194.9 kB / 3.09 GB, free: 42.33 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/8.296, allocations: 5.202 MB / 3.095 GB, free: 37.12 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05022/8.347, allocations: 22.86 MB / 3.117 GB, free: 12.92 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009138/8.356, allocations: 3.433 MB / 3.121 GB, free: 9.434 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004341/8.36, allocations: 1.59 MB / 3.122 GB, free: 7.836 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001337/8.362, allocations: 0.5112 MB / 3.123 GB, free: 7.23 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00508/8.367, allocations: 1.784 MB / 3.125 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=240): time 9.929e-06/8.367, allocations: 0 / 3.125 GB, free: 5.418 MB / 0.8855 GB Notification: Performance of matching and sorting (n=243): time 0.01436/8.381, allocations: 5.055 MB / 3.13 GB, free: 324 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.6226/9.004, allocations: 445.2 kB / 3.13 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004063/9.008, allocations: 1.497 MB / 3.131 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0008999/9.009, allocations: 68.7 kB / 3.132 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.002036/9.011, allocations: 1.598 MB / 3.133 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001555/9.013, allocations: 0.813 MB / 3.134 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003687/9.013, allocations: 54.28 kB / 3.134 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002251/9.013, allocations: 409.1 kB / 3.134 GB, free: 233.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004313/9.018, allocations: 1.294 MB / 3.136 GB, free: 233.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005314/9.023, allocations: 1.999 MB / 3.138 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004936/9.028, allocations: 1.595 MB / 3.139 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-05/9.028, allocations: 5.344 kB / 3.139 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01319/9.041, allocations: 3.568 MB / 3.143 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001801/9.043, allocations: 7.139 MB / 3.15 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-05/9.043, allocations: 18.56 kB / 3.15 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001228/9.043, allocations: 34.28 kB / 3.15 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008653/9.052, allocations: 0.7968 MB / 3.15 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001161/9.052, allocations: 41.47 kB / 3.15 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006543/9.059, allocations: 376.5 kB / 3.151 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001092/9.06, allocations: 138.5 kB / 3.151 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/9.06, allocations: 6 kB / 3.151 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01191/9.072, allocations: 3.143 MB / 3.154 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.854e-05/9.072, allocations: 18.34 kB / 3.154 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.791e-05/9.072, allocations: 40.27 kB / 3.154 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008187/9.08, allocations: 0.7547 MB / 3.155 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001086/9.08, allocations: 41.56 kB / 3.155 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006005/9.086, allocations: 337.1 kB / 3.155 GB, free: 225 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001056/9.088, allocations: 135 kB / 3.155 GB, free: 225 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.001289/9.089, allocations: 265.2 kB / 3.155 GB, free: 224.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009843/9.09, allocations: 231.6 kB / 3.156 GB, free: 224.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0147/9.105, allocations: 3.643 MB / 3.159 GB, free: 224.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.242e-05/9.105, allocations: 30.17 kB / 3.159 GB, free: 224.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-05/9.105, allocations: 1.281 kB / 3.159 GB, free: 224.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-05/9.105, allocations: 13.55 kB / 3.159 GB, free: 224.6 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02551/9.13, allocations: 8.14 MB / 3.167 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-05/9.13, allocations: 2.406 kB / 3.167 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007806/9.138, allocations: 0.7155 MB / 3.168 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.505e-05/9.138, allocations: 11.97 kB / 3.168 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007364/9.139, allocations: 71.42 kB / 3.168 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.664e-05/9.139, allocations: 11.09 kB / 3.168 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/9.139, allocations: 8.438 kB / 3.168 GB, free: 223.9 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00919/9.148, allocations: 3.591 MB / 3.172 GB, free: 223 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002668/9.151, allocations: 0.7635 MB / 3.172 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/9.152, allocations: 51.77 kB / 3.172 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005625/9.158, allocations: 271.4 kB / 3.173 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000768/9.159, allocations: 152.3 kB / 3.173 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004236/9.159, allocations: 91.61 kB / 3.173 GB, free: 222.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002823/9.162, allocations: 1.226 MB / 3.174 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.132e-06/9.162, allocations: 0 / 3.174 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.008786/9.171, allocations: 1.322 MB / 3.175 GB, free: 222.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 (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.01207/9.183, allocations: 5.269 MB / 3.18 GB, free: 220.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01419/9.197, allocations: 4.907 MB / 3.185 GB, free: 220.5 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/9.197, allocations: 7.703 kB / 3.185 GB, free: 220.5 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.004423/9.202, allocations: 1.57 MB / 3.187 GB, free: 220.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00498/9.207, allocations: 0.5138 MB / 3.187 GB, free: 220.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0222/9.229, allocations: 6.519 MB / 3.194 GB, free: 218.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00395/9.233, allocations: 2.528 MB / 3.196 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01097/9.244, allocations: 1.398 MB / 3.198 GB, free: 217.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004426/9.248, allocations: 1.43 MB / 3.199 GB, free: 216.7 MB / 0.8855 GB Notification: Performance of SimCode: time 1.523e-06/9.248, allocations: 0 / 3.199 GB, free: 216.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1596/9.408, allocations: 65.7 MB / 3.263 GB, free: 205.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002595/9.408, allocations: 243.1 kB / 3.263 GB, free: 205 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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources" -c -o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c In file included from Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:7: In file included from ./Buildings_latest_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 latest/Resources/C-Sources/getTimeSpan.c:12: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings latest/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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o' failed make: *** [Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o] Error 1