Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngle,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle",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.179/2.179, 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.001715/0.001715, allocations: 179.2 kB / 325.5 MB, free: 2.898 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.429/2.429, allocations: 205.4 MB / 0.5764 GB, free: 21.17 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.001208/0.001208, allocations: 86.36 kB / 0.6809 GB, free: 14.07 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000685/0.0006854, allocations: 9.281 kB / 0.795 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2247, allocations: 106.3 MB / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.237/7.462, allocations: 2.191 GB / 3.09 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/7.463, allocations: 90.72 kB / 3.09 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.3968/7.859, allocations: 92.45 MB / 3.18 GB, free: 229.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.945e-06/7.86, allocations: 0 / 3.18 GB, free: 229.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001306/7.86, allocations: 39.31 kB / 3.18 GB, free: 229.4 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: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.00456/7.864, allocations: 1.508 MB / 3.182 GB, free: 228.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/7.864, allocations: 7.812 kB / 3.182 GB, free: 228.3 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007128/7.865, allocations: 202.8 kB / 3.182 GB, free: 228.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001655/7.867, allocations: 246.3 kB / 3.182 GB, free: 228.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002174/7.869, allocations: 0.773 MB / 3.183 GB, free: 227.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.968e-05/7.869, allocations: 99.77 kB / 3.183 GB, free: 227.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002774/7.869, allocations: 131.7 kB / 3.183 GB, free: 227.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003798/7.873, allocations: 1.37 MB / 3.185 GB, free: 227.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-05/7.873, allocations: 0 / 3.185 GB, free: 227.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/7.873, allocations: 64.27 kB / 3.185 GB, free: 227.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.93e-05/7.874, allocations: 35.19 kB / 3.185 GB, free: 227.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004126/7.878, allocations: 1.475 MB / 3.186 GB, free: 226.9 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009543/7.887, allocations: 3.608 MB / 3.19 GB, free: 225.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/7.89, allocations: 0.9583 MB / 3.191 GB, free: 224.9 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001823/7.89, allocations: 51.69 kB / 3.191 GB, free: 224.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001484/7.892, allocations: 0.5756 MB / 3.191 GB, free: 224.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=104): time 4.94e-06/7.892, allocations: 7.922 kB / 3.191 GB, free: 224.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=104): time 0.0059/7.898, allocations: 1.49 MB / 3.193 GB, free: 224.3 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.52e-05/7.898, allocations: 248 kB / 3.193 GB, free: 224 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001531/7.899, allocations: 0.7164 MB / 3.194 GB, free: 223.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003232/7.9, allocations: 47.89 kB / 3.194 GB, free: 223.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005226/7.9, allocations: 0.5513 MB / 3.194 GB, free: 223.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004422/7.901, allocations: 348.6 kB / 3.195 GB, free: 223.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/7.901, allocations: 29.47 kB / 3.195 GB, free: 223.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 8.944e-05/7.901, allocations: 336 kB / 3.195 GB, free: 222.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/7.902, allocations: 341.6 kB / 3.195 GB, free: 222.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001156/7.903, allocations: 469.7 kB / 3.196 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/7.904, allocations: 411 kB / 3.196 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/7.904, allocations: 0 / 3.196 GB, free: 222.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003839/7.908, allocations: 1.062 MB / 3.197 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/7.908, allocations: 9.656 kB / 3.197 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/7.908, allocations: 3.953 kB / 3.197 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009919/7.909, allocations: 85.61 kB / 3.197 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/7.911, allocations: 211.8 kB / 3.197 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/7.914, allocations: 1.542 MB / 3.199 GB, free: 220.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/7.916, allocations: 112.4 kB / 3.199 GB, free: 220.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/7.916, allocations: 39 kB / 3.199 GB, free: 220.8 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 (116): * Single equations (assignments): 115 * 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.0009622/7.917, allocations: 312.4 kB / 3.199 GB, free: 220.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003607/7.917, allocations: 101.3 kB / 3.2 GB, free: 220.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005077/7.922, allocations: 1.417 MB / 3.201 GB, free: 220.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/7.922, allocations: 11.5 kB / 3.201 GB, free: 220.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/7.922, allocations: 0 / 3.201 GB, free: 220.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/7.922, allocations: 11.91 kB / 3.201 GB, free: 220.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006965/7.929, allocations: 2.603 MB / 3.203 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/7.93, allocations: 0 / 3.203 GB, free: 219.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001679/7.931, allocations: 201 kB / 3.204 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008606/7.932, allocations: 83.28 kB / 3.204 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/7.932, allocations: 37.25 kB / 3.204 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002469/7.935, allocations: 1.573 MB / 3.205 GB, free: 217.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/7.935, allocations: 0 / 3.205 GB, free: 217.8 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004058/7.939, allocations: 1.169 MB / 3.206 GB, free: 217.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/7.94, allocations: 368.6 kB / 3.207 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/7.94, allocations: 22.25 kB / 3.207 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/7.942, allocations: 69.33 kB / 3.207 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002502/7.942, allocations: 80 kB / 3.207 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/7.942, allocations: 38.8 kB / 3.207 GB, free: 217.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001284/7.943, allocations: 0.617 MB / 3.208 GB, free: 217 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.21e-07/7.944, allocations: 0 / 3.208 GB, free: 217 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002068/7.946, allocations: 444 kB / 3.208 GB, free: 216.9 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.006334/7.952, allocations: 2.645 MB / 3.211 GB, free: 215.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003388/7.955, allocations: 1.007 MB / 3.212 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/7.955, allocations: 0 / 3.212 GB, free: 215.3 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001795/7.957, allocations: 0.6168 MB / 3.212 GB, free: 215.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/7.959, allocations: 247.4 kB / 3.212 GB, free: 215.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/7.979, allocations: 6.828 MB / 3.219 GB, free: 211.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008298/7.98, allocations: 1.185 MB / 3.22 GB, free: 210.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001894/7.982, allocations: 314.6 kB / 3.221 GB, free: 210.7 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001353/7.983, allocations: 0.5323 MB / 3.221 GB, free: 210.7 MB / 0.8855 GB Notification: Performance of SimCode: time 1.513e-06/7.983, allocations: 0 / 3.221 GB, free: 210.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09231/8.076, allocations: 34.9 MB / 3.255 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002222/8.076, allocations: 270.1 kB / 3.255 GB, free: 178 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_SolarGeometry_Examples_IncidenceAngle.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.o] Error 1