Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,fileNamePrefix="Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,fileNamePrefix="Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.725/1.725, allocations: 292.6 MB / 307.5 MB, free: 5.172 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001325/0.001325, allocations: 193 kB / 377.1 MB, free: 1.488 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.4 MB / 0.6366 GB, free: 8.602 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009111/0.000911, allocations: 93.89 kB / 0.7509 GB, free: 62.95 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.000411, allocations: 12 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3208, allocations: 116.3 MB / 0.9884 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.353/6.674, allocations: 2.074 GB / 3.062 GB, free: 107.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004725/6.675, allocations: 99.95 kB / 3.062 GB, free: 107.6 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.1798/6.855, allocations: 66.95 MB / 3.127 GB, free: 41.89 MB / 0.948 GB Notification: Performance of FrontEnd: time 6.282e-06/6.855, allocations: 0 / 3.127 GB, free: 41.89 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0002408/6.855, allocations: 31.92 kB / 3.127 GB, free: 41.86 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.005694/6.861, allocations: 1.204 MB / 3.129 GB, free: 40.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 8.341e-05/6.861, allocations: 8.031 kB / 3.129 GB, free: 40.59 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006031/6.861, allocations: 147.5 kB / 3.129 GB, free: 40.44 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002264/6.864, allocations: 210.4 kB / 3.129 GB, free: 40.23 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002443/6.866, allocations: 0.6347 MB / 3.13 GB, free: 39.55 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001084/6.866, allocations: 62 kB / 3.13 GB, free: 39.5 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003101/6.867, allocations: 91.98 kB / 3.13 GB, free: 39.41 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003587/6.87, allocations: 0.9262 MB / 3.131 GB, free: 38.44 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.003e-05/6.87, allocations: 0 / 3.131 GB, free: 38.44 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002282/6.871, allocations: 40 kB / 3.131 GB, free: 38.4 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.541e-05/6.871, allocations: 23.95 kB / 3.131 GB, free: 38.38 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003473/6.874, allocations: 1.12 MB / 3.132 GB, free: 37.25 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008741/6.883, allocations: 2.547 MB / 3.134 GB, free: 34.64 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/6.886, allocations: 0.7531 MB / 3.135 GB, free: 33.88 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001153/6.887, allocations: 478.2 kB / 3.135 GB, free: 33.32 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001488/6.888, allocations: 440.5 kB / 3.136 GB, free: 32.87 MB / 0.948 GB Notification: Performance of pre-optimization done (n=73): time 1.271e-05/6.888, allocations: 0 / 3.136 GB, free: 32.87 MB / 0.948 GB Notification: Performance of matching and sorting (n=73): time 0.005769/6.894, allocations: 1.132 MB / 3.137 GB, free: 31.71 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/6.895, allocations: 240 kB / 3.137 GB, free: 31.42 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002194/6.897, allocations: 0.5854 MB / 3.138 GB, free: 30.83 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001728/6.897, allocations: 41.7 kB / 3.138 GB, free: 30.79 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006119/6.898, allocations: 392.2 kB / 3.138 GB, free: 30.39 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/6.898, allocations: 244.5 kB / 3.138 GB, free: 30.15 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.461e-05/6.898, allocations: 12 kB / 3.138 GB, free: 30.14 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002539/6.898, allocations: 374.8 kB / 3.139 GB, free: 29.77 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008387/6.899, allocations: 229.2 kB / 3.139 GB, free: 29.54 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001022/6.9, allocations: 343.5 kB / 3.139 GB, free: 29.18 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/6.901, allocations: 275.1 kB / 3.14 GB, free: 28.91 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/6.901, allocations: 0 / 3.14 GB, free: 28.91 MB / 0.948 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003154/6.905, allocations: 0.747 MB / 3.14 GB, free: 28.15 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.416e-05/6.905, allocations: 8 kB / 3.14 GB, free: 28.14 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/6.905, allocations: 0 / 3.14 GB, free: 28.14 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009787/6.906, allocations: 84.83 kB / 3.14 GB, free: 28.05 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/6.907, allocations: 139.8 kB / 3.141 GB, free: 27.92 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003247/6.91, allocations: 1.528 MB / 3.142 GB, free: 26.25 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/6.911, allocations: 87.33 kB / 3.142 GB, free: 26.16 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/6.912, allocations: 27.98 kB / 3.142 GB, free: 26.14 MB / 0.948 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 (75): * Single equations (assignments): 74 * 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.001072/6.913, allocations: 255.6 kB / 3.142 GB, free: 25.88 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/6.913, allocations: 83.02 kB / 3.142 GB, free: 25.8 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/6.917, allocations: 1.041 MB / 3.143 GB, free: 24.73 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/6.917, allocations: 8 kB / 3.144 GB, free: 24.73 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/6.917, allocations: 0 / 3.144 GB, free: 24.73 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/6.917, allocations: 3.984 kB / 3.144 GB, free: 24.72 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/6.919, allocations: 0.8956 MB / 3.144 GB, free: 23.78 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.562e-05/6.919, allocations: 4 kB / 3.144 GB, free: 23.77 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/6.921, allocations: 147.8 kB / 3.145 GB, free: 23.63 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009192/6.922, allocations: 84.77 kB / 3.145 GB, free: 23.54 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/6.922, allocations: 19.98 kB / 3.145 GB, free: 23.52 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002675/6.924, allocations: 1.555 MB / 3.146 GB, free: 21.83 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/6.924, allocations: 0 / 3.146 GB, free: 21.83 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003402/6.928, allocations: 0.858 MB / 3.147 GB, free: 20.95 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009799/6.929, allocations: 291.6 kB / 3.147 GB, free: 20.64 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000374/6.929, allocations: 19.95 kB / 3.147 GB, free: 20.62 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/6.931, allocations: 68.02 kB / 3.147 GB, free: 20.56 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/6.931, allocations: 64.89 kB / 3.147 GB, free: 20.49 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/6.931, allocations: 31.98 kB / 3.147 GB, free: 20.46 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001413/6.932, allocations: 487 kB / 3.148 GB, free: 19.99 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.81e-07/6.932, allocations: 0 / 3.148 GB, free: 19.99 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.002234/6.935, allocations: 363 kB / 3.148 GB, free: 19.63 MB / 0.948 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 (84): * Single equations (assignments): 81 * 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.008367/6.943, allocations: 2.358 MB / 3.151 GB, free: 17.38 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.003407/6.947, allocations: 0.7439 MB / 3.151 GB, free: 16.62 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/6.947, allocations: 0 / 3.151 GB, free: 16.62 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001666/6.948, allocations: 0.5002 MB / 3.152 GB, free: 16.11 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002473/6.951, allocations: 230.4 kB / 3.152 GB, free: 15.88 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/6.969, allocations: 5.114 MB / 3.157 GB, free: 10.71 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00118/6.97, allocations: 1.039 MB / 3.158 GB, free: 9.648 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.00217/6.973, allocations: 258.1 kB / 3.158 GB, free: 9.395 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001099/6.974, allocations: 371.3 kB / 3.159 GB, free: 9.031 MB / 0.948 GB Notification: Performance of SimCode: time 2.034e-06/6.974, allocations: 4 kB / 3.159 GB, free: 9.027 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7259/7.7, allocations: 29.36 MB / 3.187 GB, free: 247.6 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002797/7.7, allocations: 288 kB / 3.188 GB, free: 247.3 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.o Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.c In file included from Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.c:7: In file included from ./Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_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 -falign-functions -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 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.o Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c In file included from Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c:2: In file included from ./Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_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_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c:7: In file included from ./Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.o] Error 1