Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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.ZenithAngle,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle",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.156/2.156, 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.001549/0.001549, allocations: 182.6 kB / 325.5 MB, free: 2.902 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.425/2.425, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.001596/0.001595, allocations: 85.78 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000674/0.0006744, allocations: 11.97 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2942, allocations: 106.3 MB / 0.8988 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.342/7.636, allocations: 2.19 GB / 3.088 GB, free: 247.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003234/7.636, allocations: 88.73 kB / 3.088 GB, free: 247.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2356/7.872, allocations: 62.13 MB / 3.149 GB, free: 242.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.617e-06/7.872, allocations: 0 / 3.149 GB, free: 242.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.259e-05/7.872, allocations: 23.53 kB / 3.149 GB, free: 242.5 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: 193 * Number of variables: 193 Notification: Performance of Generate backend data structure: time 0.002949/7.875, allocations: 1.134 MB / 3.15 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/7.875, allocations: 7.812 kB / 3.15 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003332/7.875, allocations: 130.2 kB / 3.15 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001403/7.877, allocations: 180.7 kB / 3.151 GB, free: 241.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/7.878, allocations: 0.6115 MB / 3.151 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.984e-05/7.878, allocations: 58.19 kB / 3.151 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/7.879, allocations: 76.02 kB / 3.151 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002106/7.881, allocations: 0.8347 MB / 3.152 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.577e-05/7.881, allocations: 3.953 kB / 3.152 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001278/7.881, allocations: 33.25 kB / 3.152 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.102e-05/7.881, allocations: 23.58 kB / 3.152 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002509/7.883, allocations: 1.057 MB / 3.153 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005704/7.889, allocations: 2.389 MB / 3.156 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001954/7.891, allocations: 0.7301 MB / 3.156 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001258/7.891, allocations: 27.34 kB / 3.156 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/7.892, allocations: 428.5 kB / 3.157 GB, free: 240.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=70): time 3.376e-06/7.892, allocations: 0 / 3.157 GB, free: 240.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=70): time 0.004727/7.897, allocations: 1.098 MB / 3.158 GB, free: 240 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.745e-05/7.897, allocations: 242.4 kB / 3.158 GB, free: 239.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/7.898, allocations: 0.5659 MB / 3.159 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001588/7.899, allocations: 41.11 kB / 3.159 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000333/7.899, allocations: 359.7 kB / 3.159 GB, free: 239.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002402/7.899, allocations: 232.3 kB / 3.159 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.611e-05/7.899, allocations: 13.97 kB / 3.159 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001261/7.899, allocations: 381 kB / 3.16 GB, free: 238.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007193/7.9, allocations: 220.9 kB / 3.16 GB, free: 238.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007784/7.901, allocations: 331.1 kB / 3.16 GB, free: 238.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008041/7.902, allocations: 265.5 kB / 3.16 GB, free: 238.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/7.902, allocations: 0 / 3.16 GB, free: 238.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002858/7.905, allocations: 0.7268 MB / 3.161 GB, free: 238.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/7.905, allocations: 3.938 kB / 3.161 GB, free: 238.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/7.905, allocations: 0 / 3.161 GB, free: 238.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/7.906, allocations: 86.67 kB / 3.161 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/7.907, allocations: 133.2 kB / 3.161 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002708/7.91, allocations: 1.552 MB / 3.163 GB, free: 237.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/7.911, allocations: 77.5 kB / 3.163 GB, free: 237.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.823e-05/7.911, allocations: 30.75 kB / 3.163 GB, free: 237.1 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 (72): * Single equations (assignments): 71 * 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.0007046/7.912, allocations: 247.9 kB / 3.163 GB, free: 236.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/7.912, allocations: 77.98 kB / 3.163 GB, free: 236.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/7.915, allocations: 1.002 MB / 3.164 GB, free: 236.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.244e-05/7.916, allocations: 7.812 kB / 3.164 GB, free: 236.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/7.916, allocations: 0 / 3.164 GB, free: 236.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/7.916, allocations: 3.984 kB / 3.164 GB, free: 236.6 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/7.917, allocations: 0.8664 MB / 3.165 GB, free: 236.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/7.917, allocations: 0 / 3.165 GB, free: 236.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/7.918, allocations: 137 kB / 3.165 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008591/7.919, allocations: 86.8 kB / 3.165 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.555e-05/7.919, allocations: 19.58 kB / 3.165 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002467/7.922, allocations: 1.565 MB / 3.167 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/7.922, allocations: 0 / 3.167 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003021/7.925, allocations: 0.8506 MB / 3.168 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006324/7.925, allocations: 277.4 kB / 3.168 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001756/7.926, allocations: 15.47 kB / 3.168 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000945/7.927, allocations: 77.92 kB / 3.168 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/7.927, allocations: 54.86 kB / 3.168 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.505e-05/7.927, allocations: 27.27 kB / 3.168 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0008533/7.928, allocations: 480.1 kB / 3.168 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.71e-07/7.928, allocations: 0 / 3.168 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001488/7.929, allocations: 324.3 kB / 3.169 GB, free: 234 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 (81): * Single equations (assignments): 78 * 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.00552/7.935, allocations: 2.316 MB / 3.171 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002387/7.937, allocations: 0.7171 MB / 3.172 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/7.937, allocations: 0 / 3.172 GB, free: 232.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001213/7.938, allocations: 493.4 kB / 3.172 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001777/7.94, allocations: 245.8 kB / 3.172 GB, free: 232.3 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01458/7.955, allocations: 4.916 MB / 3.177 GB, free: 230 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/7.955, allocations: 1.01 MB / 3.178 GB, free: 229.2 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001483/7.957, allocations: 251 kB / 3.178 GB, free: 229 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007666/7.958, allocations: 336.9 kB / 3.179 GB, free: 229 MB / 0.8855 GB Notification: Performance of SimCode: time 1.163e-06/7.958, allocations: 0 / 3.179 GB, free: 229 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08057/8.038, allocations: 28.69 MB / 3.207 GB, free: 215.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002488/8.039, allocations: 267.6 kB / 3.207 GB, free: 214.8 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_ZenithAngle.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_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_ZenithAngle_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_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_ZenithAngle_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_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_ZenithAngle_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_ZenithAngle_functions.o] Error 1