Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.SkyClearness,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.274/2.274, allocations: 248.5 MB / 261 MB, free: 6.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002224/0.002224, allocations: 178.4 kB / 320.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.916/1.916, allocations: 205.2 MB / 0.571 GB, free: 11.73 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.001118/0.001118, allocations: 107.4 kB / 0.6754 GB, free: 0.8125 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.326e-05/3.336e-05, allocations: 0 / 0.7869 GB, free: 97.78 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1985, allocations: 106.3 MB / 0.8907 GB, free: 7.438 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.344/7.542, allocations: 2.19 GB / 3.081 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003356/7.543, allocations: 91.88 kB / 3.081 GB, free: 143.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2491/7.792, allocations: 66.27 MB / 3.146 GB, free: 81.68 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.575e-06/7.792, allocations: 0 / 3.146 GB, free: 81.68 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.581e-05/7.792, allocations: 35.92 kB / 3.146 GB, free: 81.64 MB / 0.8698 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.002398/7.794, allocations: 1.079 MB / 3.147 GB, free: 80.51 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/7.794, allocations: 12.03 kB / 3.147 GB, free: 80.5 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002266/7.795, allocations: 135.5 kB / 3.147 GB, free: 80.36 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001648/7.796, allocations: 218.4 kB / 3.147 GB, free: 80.14 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/7.798, allocations: 0.6153 MB / 3.148 GB, free: 79.49 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.508e-05/7.798, allocations: 66 kB / 3.148 GB, free: 79.43 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/7.798, allocations: 87.94 kB / 3.148 GB, free: 79.34 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/7.8, allocations: 0.8951 MB / 3.149 GB, free: 78.4 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.021e-05/7.8, allocations: 7.891 kB / 3.149 GB, free: 78.39 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/7.801, allocations: 36 kB / 3.149 GB, free: 78.36 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/7.801, allocations: 24 kB / 3.149 GB, free: 78.34 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00241/7.803, allocations: 1.062 MB / 3.15 GB, free: 77.28 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006101/7.809, allocations: 2.551 MB / 3.153 GB, free: 74.66 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001772/7.811, allocations: 0.7074 MB / 3.153 GB, free: 73.94 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006105/7.812, allocations: 267.1 kB / 3.153 GB, free: 73.68 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008799/7.813, allocations: 474.3 kB / 3.154 GB, free: 73.12 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009631/7.813, allocations: 417.3 kB / 3.154 GB, free: 72.7 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=73): time 3.677e-06/7.814, allocations: 0 / 3.154 GB, free: 72.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=73): time 0.002677/7.816, allocations: 0.6992 MB / 3.155 GB, free: 71.99 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/7.816, allocations: 240.1 kB / 3.155 GB, free: 71.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/7.818, allocations: 0.5777 MB / 3.156 GB, free: 71.12 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002761/7.818, allocations: 37.7 kB / 3.156 GB, free: 71.07 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000376/7.818, allocations: 396.1 kB / 3.156 GB, free: 70.68 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/7.819, allocations: 236.5 kB / 3.156 GB, free: 70.45 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/7.819, allocations: 19.94 kB / 3.156 GB, free: 70.43 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001285/7.819, allocations: 382.8 kB / 3.157 GB, free: 70.04 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005746/7.819, allocations: 205.5 kB / 3.157 GB, free: 69.84 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006572/7.82, allocations: 313.1 kB / 3.157 GB, free: 69.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006537/7.821, allocations: 250 kB / 3.158 GB, free: 69.26 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/7.821, allocations: 0 / 3.158 GB, free: 69.26 MB / 0.8698 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002551/7.823, allocations: 0.7031 MB / 3.158 GB, free: 68.55 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/7.823, allocations: 7.984 kB / 3.158 GB, free: 68.54 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/7.823, allocations: 80 / 3.158 GB, free: 68.54 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009815/7.824, allocations: 84.84 kB / 3.158 GB, free: 68.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/7.826, allocations: 139.8 kB / 3.158 GB, free: 68.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002626/7.828, allocations: 1.517 MB / 3.16 GB, free: 66.66 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/7.83, allocations: 79.41 kB / 3.16 GB, free: 66.58 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001035/7.83, allocations: 23.98 kB / 3.16 GB, free: 66.56 MB / 0.8698 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 () * 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.0002942/7.83, allocations: 152.9 kB / 3.16 GB, free: 66.4 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/7.83, allocations: 79.05 kB / 3.16 GB, free: 66.32 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003442/7.834, allocations: 0.973 MB / 3.161 GB, free: 65.33 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/7.834, allocations: 12 kB / 3.161 GB, free: 65.32 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/7.834, allocations: 3.953 kB / 3.161 GB, free: 65.32 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.681e-05/7.834, allocations: 3.984 kB / 3.161 GB, free: 65.31 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/7.835, allocations: 0.8919 MB / 3.162 GB, free: 64.37 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/7.835, allocations: 0 / 3.162 GB, free: 64.37 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/7.837, allocations: 151.7 kB / 3.162 GB, free: 64.22 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008582/7.837, allocations: 80.78 kB / 3.162 GB, free: 64.14 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.725e-05/7.838, allocations: 23.98 kB / 3.162 GB, free: 64.12 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002384/7.84, allocations: 1.544 MB / 3.164 GB, free: 62.43 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/7.84, allocations: 0 / 3.164 GB, free: 62.43 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0027/7.843, allocations: 0.8129 MB / 3.165 GB, free: 61.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006198/7.843, allocations: 287.7 kB / 3.165 GB, free: 61.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001804/7.844, allocations: 16 kB / 3.165 GB, free: 61.28 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/7.845, allocations: 72.02 kB / 3.165 GB, free: 61.21 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/7.845, allocations: 60.69 kB / 3.165 GB, free: 61.15 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.076e-05/7.845, allocations: 35.92 kB / 3.165 GB, free: 61.12 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0008688/7.846, allocations: 483.1 kB / 3.166 GB, free: 60.65 MB / 0.8698 GB Notification: Performance of sort global known variables: time 4.6e-07/7.846, allocations: 0 / 3.166 GB, free: 60.65 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001457/7.847, allocations: 359.1 kB / 3.166 GB, free: 60.3 MB / 0.8698 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) * 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.004987/7.852, allocations: 2.25 MB / 3.168 GB, free: 58.16 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002114/7.854, allocations: 0.6902 MB / 3.169 GB, free: 57.46 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/7.855, allocations: 7.938 kB / 3.169 GB, free: 57.45 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001127/7.856, allocations: 471.1 kB / 3.169 GB, free: 56.98 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001818/7.857, allocations: 228.6 kB / 3.169 GB, free: 56.76 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006092/7.864, allocations: 1.583 MB / 3.171 GB, free: 55.13 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005615/7.864, allocations: 1.039 MB / 3.172 GB, free: 54.07 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001449/7.866, allocations: 269.9 kB / 3.172 GB, free: 53.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007723/7.866, allocations: 371.3 kB / 3.173 GB, free: 53.44 MB / 0.8698 GB Notification: Performance of SimCode: time 1.403e-06/7.867, allocations: 0 / 3.173 GB, free: 53.44 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1096/7.976, allocations: 31.09 MB / 3.203 GB, free: 22.59 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002732/7.976, allocations: 255.1 kB / 3.203 GB, free: 22.26 MB / 0.8698 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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_SkyClearness.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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_SkyClearness_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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_SkyClearness_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_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_SkyClearness_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.o] Error 1