Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.491/4.491, allocations: 460.4 MB / 472.6 MB, free: 5.406 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.575e-05/3.587e-05, allocations: 4 kB / 0.5682 GB, free: 10.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3053, allocations: 106.2 MB / 0.6719 GB, free: 15.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.538/7.843, allocations: 2.223 GB / 2.895 GB, free: 158.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003655/7.844, allocations: 103.5 kB / 2.895 GB, free: 158.3 MB / 0.8698 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.276/8.12, allocations: 68.24 MB / 2.962 GB, free: 97.91 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.596e-06/8.12, allocations: 3.984 kB / 2.962 GB, free: 97.9 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001355/8.12, allocations: 39.94 kB / 2.962 GB, free: 97.86 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 372 * Number of variables: 372 Notification: Performance of Generate backend data structure: time 0.004723/8.125, allocations: 1.556 MB / 2.963 GB, free: 96.25 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/8.125, allocations: 8.031 kB / 2.963 GB, free: 96.24 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005861/8.125, allocations: 211.3 kB / 2.964 GB, free: 96.02 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009373/8.135, allocations: 0.8056 MB / 2.964 GB, free: 95.21 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002728/8.137, allocations: 0.8844 MB / 2.965 GB, free: 94.29 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/8.138, allocations: 102.9 kB / 2.965 GB, free: 94.19 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004433/8.138, allocations: 143.9 kB / 2.966 GB, free: 94.05 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004833/8.143, allocations: 1.69 MB / 2.967 GB, free: 92.29 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.933e-05/8.143, allocations: 8 kB / 2.967 GB, free: 92.28 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002887/8.143, allocations: 67.94 kB / 2.967 GB, free: 92.21 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.772e-05/8.143, allocations: 62.75 kB / 2.967 GB, free: 92.15 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005014/8.149, allocations: 1.914 MB / 2.969 GB, free: 90.23 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01631/8.165, allocations: 6.138 MB / 2.975 GB, free: 83.87 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003509/8.168, allocations: 1.287 MB / 2.976 GB, free: 82.56 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001825/8.17, allocations: 0.6128 MB / 2.977 GB, free: 81.95 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001056/8.171, allocations: 490.4 kB / 2.978 GB, free: 81.38 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001976/8.173, allocations: 0.7781 MB / 2.978 GB, free: 80.57 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=128): time 4.499e-06/8.173, allocations: 0 / 2.978 GB, free: 80.57 MB / 0.8698 GB Notification: Performance of matching and sorting (n=128): time 0.003663/8.177, allocations: 1.231 MB / 2.979 GB, free: 79.33 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/8.177, allocations: 355.1 kB / 2.98 GB, free: 78.91 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001813/8.179, allocations: 0.7668 MB / 2.981 GB, free: 78.11 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003212/8.179, allocations: 53.7 kB / 2.981 GB, free: 78.05 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007197/8.18, allocations: 0.5935 MB / 2.981 GB, free: 77.45 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006157/8.181, allocations: 425.8 kB / 2.982 GB, free: 77.03 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/8.181, allocations: 24.06 kB / 2.982 GB, free: 77.01 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001303/8.181, allocations: 353.9 kB / 2.982 GB, free: 76.66 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/8.183, allocations: 458.5 kB / 2.982 GB, free: 76.21 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/8.185, allocations: 0.6507 MB / 2.983 GB, free: 75.49 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001962/8.187, allocations: 0.5242 MB / 2.984 GB, free: 74.97 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/8.187, allocations: 0 / 2.984 GB, free: 74.97 MB / 0.8698 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.005813/8.193, allocations: 1.328 MB / 2.985 GB, free: 73.63 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003263/8.193, allocations: 1.05 MB / 2.986 GB, free: 72.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/8.193, allocations: 4 kB / 2.986 GB, free: 72.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003223/8.194, allocations: 32.84 kB / 2.986 GB, free: 72.46 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004766/8.198, allocations: 331.5 kB / 2.986 GB, free: 72.14 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005007/8.199, allocations: 0.5367 MB / 2.987 GB, free: 71.58 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003519/8.202, allocations: 190.9 kB / 2.987 GB, free: 71.39 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003066/8.203, allocations: 51.95 kB / 2.987 GB, free: 71.34 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/8.203, allocations: 6.344 kB / 2.987 GB, free: 71.34 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004907/8.208, allocations: 1.198 MB / 2.988 GB, free: 70.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/8.208, allocations: 4 kB / 2.988 GB, free: 70.13 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/8.208, allocations: 8 kB / 2.988 GB, free: 70.12 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004674/8.213, allocations: 331.8 kB / 2.988 GB, free: 69.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-05/8.213, allocations: 8 kB / 2.988 GB, free: 69.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003447/8.216, allocations: 178.9 kB / 2.989 GB, free: 69.62 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002682/8.216, allocations: 59.95 kB / 2.989 GB, free: 69.56 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (147): * Single equations (assignments): 146 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006455/8.217, allocations: 178 kB / 2.989 GB, free: 69.38 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004807/8.218, allocations: 114.7 kB / 2.989 GB, free: 69.27 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007391/8.225, allocations: 1.646 MB / 2.991 GB, free: 67.61 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.578e-05/8.225, allocations: 12 kB / 2.991 GB, free: 67.59 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/8.225, allocations: 4 kB / 2.991 GB, free: 67.59 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.801e-05/8.225, allocations: 11.91 kB / 2.991 GB, free: 67.58 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/8.236, allocations: 3.456 MB / 2.994 GB, free: 64.04 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.589e-05/8.236, allocations: 4 kB / 2.994 GB, free: 64.03 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004028/8.24, allocations: 307.7 kB / 2.994 GB, free: 63.73 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002428/8.241, allocations: 28.84 kB / 2.994 GB, free: 63.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003288/8.241, allocations: 43.97 kB / 2.994 GB, free: 63.66 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/8.242, allocations: 1.28 MB / 2.996 GB, free: 62.25 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/8.242, allocations: 3.953 kB / 2.996 GB, free: 62.24 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01935/8.262, allocations: 1.497 MB / 2.997 GB, free: 60.68 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/8.263, allocations: 414.9 kB / 2.997 GB, free: 60.26 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009722/8.277, allocations: 31.98 kB / 2.998 GB, free: 60.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003568/8.28, allocations: 131.9 kB / 2.998 GB, free: 60.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003693/8.281, allocations: 97.06 kB / 2.998 GB, free: 60 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002555/8.281, allocations: 51.97 kB / 2.998 GB, free: 59.95 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001741/8.283, allocations: 0.6334 MB / 2.998 GB, free: 59.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.673e-06/8.283, allocations: 0 / 2.998 GB, free: 59.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01496/8.298, allocations: 0.732 MB / 2.999 GB, free: 58.57 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (142): * Single equations (assignments): 139 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005592/8.303, allocations: 2.815 MB / 3.002 GB, free: 55.82 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.005628/8.309, allocations: 1.894 MB / 3.004 GB, free: 53.93 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/8.309, allocations: 0 / 3.004 GB, free: 53.93 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001852/8.311, allocations: 0.7579 MB / 3.004 GB, free: 53.17 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/8.313, allocations: 303.3 kB / 3.005 GB, free: 52.88 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007472/8.321, allocations: 2.33 MB / 3.007 GB, free: 50.48 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008602/8.322, allocations: 1.262 MB / 3.008 GB, free: 49.19 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.004915/8.327, allocations: 0.6183 MB / 3.009 GB, free: 48.57 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/8.328, allocations: 0.5578 MB / 3.009 GB, free: 48.01 MB / 0.8698 GB Notification: Performance of SimCode: time 1.783e-06/8.328, allocations: 4 kB / 3.009 GB, free: 48.01 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09337/8.422, allocations: 30.89 MB / 3.04 GB, free: 17.33 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002462/8.422, allocations: 234.4 kB / 3.04 GB, free: 17.11 MB / 0.8698 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_DC_Sources_Examples_PVSimple.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_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_DC_Sources_Examples_PVSimple_functions.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_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_DC_Sources_Examples_PVSimple_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_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_DC_Sources_Examples_PVSimple_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.o] Error 1