Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness.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.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyBrightness,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness",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.329/2.329, allocations: 251 MB / 265.9 MB, free: 11.68 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.001547/0.001547, allocations: 180.5 kB / 325.5 MB, free: 2.887 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.424/2.424, allocations: 205.4 MB / 0.5764 GB, free: 20.84 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.001179/0.001179, allocations: 87.28 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005355/0.0005355, allocations: 14.97 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.242, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.745/7.987, allocations: 2.19 GB / 3.089 GB, free: 247.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003651/7.988, allocations: 100.7 kB / 3.089 GB, free: 247.5 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2481/8.236, allocations: 63.77 MB / 3.152 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.875e-06/8.236, allocations: 0 / 3.152 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.861e-05/8.236, allocations: 27.31 kB / 3.152 GB, free: 242.2 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003294/8.239, allocations: 1.196 MB / 3.153 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.086e-05/8.239, allocations: 15.66 kB / 3.153 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004436/8.24, allocations: 137.5 kB / 3.153 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002529/8.242, allocations: 277.1 kB / 3.153 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/8.244, allocations: 0.6263 MB / 3.154 GB, free: 241 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.116e-05/8.244, allocations: 65.75 kB / 3.154 GB, free: 241 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/8.244, allocations: 82.94 kB / 3.154 GB, free: 241 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002936/8.247, allocations: 0.965 MB / 3.155 GB, free: 240.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.986e-05/8.247, allocations: 0 / 3.155 GB, free: 240.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/8.248, allocations: 36.56 kB / 3.155 GB, free: 240.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.123e-05/8.248, allocations: 23.41 kB / 3.155 GB, free: 240.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003719/8.251, allocations: 1.178 MB / 3.156 GB, free: 240.6 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007235/8.259, allocations: 2.583 MB / 3.159 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004075/8.263, allocations: 0.8764 MB / 3.159 GB, free: 239 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001445/8.263, allocations: 35.84 kB / 3.159 GB, free: 239 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/8.264, allocations: 480.5 kB / 3.16 GB, free: 238.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=74): time 4.599e-06/8.265, allocations: 0 / 3.16 GB, free: 238.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=74): time 0.005885/8.27, allocations: 1.216 MB / 3.161 GB, free: 238.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001029/8.271, allocations: 243.7 kB / 3.161 GB, free: 238.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001268/8.272, allocations: 0.5745 MB / 3.162 GB, free: 238 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002733/8.272, allocations: 44.98 kB / 3.162 GB, free: 237.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000383/8.273, allocations: 391.9 kB / 3.162 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003238/8.273, allocations: 243.6 kB / 3.163 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.479e-05/8.273, allocations: 14.44 kB / 3.163 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001482/8.273, allocations: 378.6 kB / 3.163 GB, free: 237.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/8.274, allocations: 257.7 kB / 3.163 GB, free: 237.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001143/8.275, allocations: 360.9 kB / 3.164 GB, free: 237 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/8.277, allocations: 305.6 kB / 3.164 GB, free: 237 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/8.277, allocations: 4 kB / 3.164 GB, free: 237 MB / 0.8855 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003514/8.28, allocations: 0.7967 MB / 3.165 GB, free: 236.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/8.28, allocations: 3.906 kB / 3.165 GB, free: 236.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/8.28, allocations: 3.938 kB / 3.165 GB, free: 236.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009742/8.281, allocations: 82.89 kB / 3.165 GB, free: 236.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/8.283, allocations: 156.5 kB / 3.165 GB, free: 236.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/8.285, allocations: 1.532 MB / 3.166 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/8.287, allocations: 95.83 kB / 3.166 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/8.287, allocations: 31.42 kB / 3.166 GB, free: 235.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (76): * Single equations (assignments): 75 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.0007384/8.288, allocations: 256.2 kB / 3.167 GB, free: 235.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/8.288, allocations: 82.23 kB / 3.167 GB, free: 235.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004325/8.292, allocations: 1.097 MB / 3.168 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.488e-05/8.292, allocations: 15.67 kB / 3.168 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/8.292, allocations: 0 / 3.168 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.392e-05/8.292, allocations: 3.984 kB / 3.168 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/8.294, allocations: 0.9034 MB / 3.169 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/8.294, allocations: 0 / 3.169 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/8.296, allocations: 164.4 kB / 3.169 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000897/8.297, allocations: 78.91 kB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/8.297, allocations: 34.55 kB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002495/8.299, allocations: 1.555 MB / 3.171 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/8.299, allocations: 0 / 3.171 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/8.303, allocations: 0.9245 MB / 3.171 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007092/8.304, allocations: 283.7 kB / 3.172 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001965/8.304, allocations: 15.53 kB / 3.172 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/8.305, allocations: 78.62 kB / 3.172 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/8.305, allocations: 63.47 kB / 3.172 GB, free: 232.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.369e-05/8.305, allocations: 30.55 kB / 3.172 GB, free: 232.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001544/8.307, allocations: 483.8 kB / 3.172 GB, free: 232.2 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.212e-06/8.307, allocations: 3.938 kB / 3.172 GB, free: 232.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.004702/8.312, allocations: 352.8 kB / 3.173 GB, free: 232.1 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (86): * Single equations (assignments): 83 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0121/8.324, allocations: 2.386 MB / 3.175 GB, free: 230.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004446/8.328, allocations: 0.8059 MB / 3.176 GB, free: 230.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/8.328, allocations: 4 kB / 3.176 GB, free: 230.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.003304/8.332, allocations: 0.5235 MB / 3.176 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.00429/8.336, allocations: 231.1 kB / 3.177 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02484/8.361, allocations: 5.222 MB / 3.182 GB, free: 227.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006078/8.362, allocations: 1.033 MB / 3.183 GB, free: 227.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001757/8.363, allocations: 270.9 kB / 3.183 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008188/8.364, allocations: 373.7 kB / 3.183 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of SimCode: time 1.212e-06/8.364, allocations: 0 / 3.183 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0869/8.451, allocations: 29.35 MB / 3.212 GB, free: 212.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002887/8.452, allocations: 294.4 kB / 3.212 GB, free: 212.4 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_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_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_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_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_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_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_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyBrightness_functions.o] Error 1