Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.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.BaseClasses.Examples.ZenithAngle,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_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.193/2.193, allocations: 251 MB / 265.9 MB, free: 11.7 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.001458/0.001458, allocations: 178.1 kB / 325.5 MB, free: 2.914 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.303/2.303, allocations: 205.4 MB / 0.5764 GB, free: 20.85 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.001186/0.001185, allocations: 98.27 kB / 0.6809 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007603/0.0007603, allocations: 12.66 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2969/0.2977, allocations: 106.3 MB / 0.8988 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.466/7.763, allocations: 2.19 GB / 3.088 GB, free: 247.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003595/7.764, allocations: 97.42 kB / 3.089 GB, free: 247.8 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2205/7.984, allocations: 57.83 MB / 3.145 GB, free: 243 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.886e-06/7.984, allocations: 0 / 3.145 GB, free: 243 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001136/7.985, allocations: 23.53 kB / 3.145 GB, free: 243 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.002935/7.988, allocations: 1.15 MB / 3.146 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/7.988, allocations: 7.656 kB / 3.146 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002614/7.988, allocations: 134.8 kB / 3.146 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001383/7.989, allocations: 178 kB / 3.146 GB, free: 242.1 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/7.991, allocations: 0.6007 MB / 3.147 GB, free: 241.8 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.187e-05/7.991, allocations: 67.03 kB / 3.147 GB, free: 241.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/7.991, allocations: 75.28 kB / 3.147 GB, free: 241.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/7.993, allocations: 0.8387 MB / 3.148 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.265e-05/7.993, allocations: 3.781 kB / 3.148 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001305/7.993, allocations: 37.08 kB / 3.148 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.158e-05/7.993, allocations: 19.44 kB / 3.148 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002487/7.996, allocations: 1.065 MB / 3.149 GB, free: 241.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005619/8.001, allocations: 2.362 MB / 3.151 GB, free: 240.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00203/8.004, allocations: 0.8086 MB / 3.152 GB, free: 240.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/8.004, allocations: 31.08 kB / 3.152 GB, free: 240.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001079/8.005, allocations: 431.8 kB / 3.153 GB, free: 240.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=72): time 3.476e-06/8.005, allocations: 0 / 3.153 GB, free: 240.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=72): time 0.004685/8.009, allocations: 1.094 MB / 3.154 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.817e-05/8.01, allocations: 243.8 kB / 3.154 GB, free: 240.1 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/8.011, allocations: 0.5648 MB / 3.154 GB, free: 240 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001425/8.011, allocations: 47.05 kB / 3.155 GB, free: 240 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003663/8.011, allocations: 360.2 kB / 3.155 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002438/8.012, allocations: 239.6 kB / 3.155 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.681e-05/8.012, allocations: 12.75 kB / 3.155 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001352/8.012, allocations: 375.6 kB / 3.155 GB, free: 239.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007374/8.013, allocations: 223.9 kB / 3.156 GB, free: 239.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007999/8.013, allocations: 327.4 kB / 3.156 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007906/8.014, allocations: 267.2 kB / 3.156 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/8.014, allocations: 0 / 3.156 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002768/8.017, allocations: 0.7198 MB / 3.157 GB, free: 239.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/8.017, allocations: 8 kB / 3.157 GB, free: 239.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/8.017, allocations: 0 / 3.157 GB, free: 239.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/8.018, allocations: 85.88 kB / 3.157 GB, free: 239.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/8.019, allocations: 132.5 kB / 3.157 GB, free: 239.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/8.022, allocations: 1.523 MB / 3.159 GB, free: 237.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/8.023, allocations: 88.45 kB / 3.159 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.584e-05/8.023, allocations: 26.69 kB / 3.159 GB, free: 237.7 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 (74): * Single equations (assignments): 73 * 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.0006976/8.024, allocations: 251.2 kB / 3.159 GB, free: 237.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001887/8.024, allocations: 74.2 kB / 3.159 GB, free: 237.6 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003551/8.028, allocations: 1.024 MB / 3.16 GB, free: 237.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/8.028, allocations: 11.47 kB / 3.16 GB, free: 237.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/8.028, allocations: 0 / 3.16 GB, free: 237.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/8.028, allocations: 3.938 kB / 3.16 GB, free: 237.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004758/8.033, allocations: 1.895 MB / 3.162 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/8.033, allocations: 7.953 kB / 3.162 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/8.034, allocations: 145.3 kB / 3.162 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008472/8.035, allocations: 89.77 kB / 3.162 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.496e-05/8.035, allocations: 25.53 kB / 3.162 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002435/8.037, allocations: 1.552 MB / 3.164 GB, free: 235.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/8.037, allocations: 0 / 3.164 GB, free: 235.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002963/8.04, allocations: 0.9243 MB / 3.165 GB, free: 235.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005993/8.041, allocations: 281 kB / 3.165 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/8.041, allocations: 15.31 kB / 3.165 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009998/8.042, allocations: 67.59 kB / 3.165 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000187/8.042, allocations: 64.83 kB / 3.165 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.399e-05/8.042, allocations: 26.7 kB / 3.165 GB, free: 235.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0008751/8.043, allocations: 472 kB / 3.166 GB, free: 235.2 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.71e-07/8.043, allocations: 7.844 kB / 3.166 GB, free: 235.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001511/8.045, allocations: 330.4 kB / 3.166 GB, free: 235.2 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 (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.005417/8.05, allocations: 2.4 MB / 3.168 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002389/8.052, allocations: 0.7281 MB / 3.169 GB, free: 233.9 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/8.053, allocations: 0 / 3.169 GB, free: 233.9 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001271/8.054, allocations: 497.2 kB / 3.169 GB, free: 233.8 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/8.056, allocations: 236 kB / 3.17 GB, free: 233.8 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/8.069, allocations: 4.926 MB / 3.174 GB, free: 231.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006067/8.07, allocations: 1.017 MB / 3.175 GB, free: 230.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001432/8.071, allocations: 266.2 kB / 3.176 GB, free: 230.8 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006786/8.072, allocations: 348.8 kB / 3.176 GB, free: 230.8 MB / 0.8855 GB Notification: Performance of SimCode: time 9.91e-07/8.072, allocations: 0 / 3.176 GB, free: 230.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08258/8.155, allocations: 28.69 MB / 3.204 GB, free: 216.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002434/8.155, allocations: 288 kB / 3.204 GB, free: 216.6 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_BaseClasses_Examples_ZenithAngle.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_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_BaseClasses_Examples_ZenithAngle_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_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_BaseClasses_Examples_ZenithAngle_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_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_BaseClasses_Examples_ZenithAngle_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_ZenithAngle_functions.o] Error 1