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.557/1.557, allocations: 289.7 MB / 302.2 MB, free: 2.164 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.001084/0.001085, allocations: 176.2 kB / 371.6 MB, free: 3.391 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.1 MB / 0.6309 GB, free: 11.77 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.00112/0.00112, allocations: 95.17 kB / 0.745 GB, free: 54.59 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.391e-05/3.393e-05, allocations: 4 kB / 0.8663 GB, free: 15 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.236, allocations: 116.3 MB / 0.9799 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.272/5.508, allocations: 2.073 GB / 3.053 GB, free: 167.8 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/5.508, allocations: 96.78 kB / 3.053 GB, free: 167.7 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.1416/5.65, allocations: 66.63 MB / 3.118 GB, free: 101 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.144e-06/5.65, allocations: 0 / 3.118 GB, free: 101 MB / 0.948 GB Notification: Performance of Transformations before backend: time 7.28e-05/5.65, allocations: 24 kB / 3.119 GB, free: 101 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.001718/5.652, allocations: 1.082 MB / 3.12 GB, free: 99.86 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/5.652, allocations: 12.03 kB / 3.12 GB, free: 99.84 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/5.652, allocations: 139.4 kB / 3.12 GB, free: 99.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001019/5.653, allocations: 222.4 kB / 3.12 GB, free: 99.48 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000898/5.654, allocations: 0.6308 MB / 3.121 GB, free: 98.81 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.074e-05/5.654, allocations: 66 kB / 3.121 GB, free: 98.75 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-05/5.654, allocations: 84 kB / 3.121 GB, free: 98.66 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001235/5.655, allocations: 0.8873 MB / 3.122 GB, free: 97.73 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/5.655, allocations: 0 / 3.122 GB, free: 97.73 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.658e-05/5.655, allocations: 39.98 kB / 3.122 GB, free: 97.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/5.655, allocations: 27.95 kB / 3.122 GB, free: 97.67 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/5.657, allocations: 1.062 MB / 3.123 GB, free: 96.61 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003255/5.66, allocations: 2.544 MB / 3.125 GB, free: 93.99 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009736/5.661, allocations: 0.7035 MB / 3.126 GB, free: 93.27 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003455/5.661, allocations: 269.2 kB / 3.126 GB, free: 93.01 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005647/5.662, allocations: 474.3 kB / 3.127 GB, free: 92.46 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006197/5.662, allocations: 426.5 kB / 3.127 GB, free: 92.02 MB / 0.948 GB Notification: Performance of pre-optimization done (n=73): time 3.126e-06/5.662, allocations: 0 / 3.127 GB, free: 92.02 MB / 0.948 GB Notification: Performance of matching and sorting (n=73): time 0.001507/5.664, allocations: 0.6915 MB / 3.128 GB, free: 91.32 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/5.664, allocations: 244.1 kB / 3.128 GB, free: 91.03 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006242/5.665, allocations: 0.5815 MB / 3.128 GB, free: 90.45 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 5.362e-05/5.665, allocations: 37.7 kB / 3.128 GB, free: 90.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000207/5.665, allocations: 392.2 kB / 3.129 GB, free: 90.01 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/5.665, allocations: 240.5 kB / 3.129 GB, free: 89.77 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/5.665, allocations: 16 kB / 3.129 GB, free: 89.76 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001032/5.665, allocations: 378.8 kB / 3.129 GB, free: 89.38 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/5.665, allocations: 205.5 kB / 3.13 GB, free: 89.18 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003697/5.666, allocations: 317 kB / 3.13 GB, free: 88.84 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/5.666, allocations: 246 kB / 3.13 GB, free: 88.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/5.666, allocations: 4 kB / 3.13 GB, free: 88.59 MB / 0.948 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001326/5.668, allocations: 0.6954 MB / 3.131 GB, free: 87.89 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/5.668, allocations: 5.312 kB / 3.131 GB, free: 87.88 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/5.668, allocations: 64 / 3.131 GB, free: 87.88 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005896/5.668, allocations: 88.72 kB / 3.131 GB, free: 87.79 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005773/5.669, allocations: 139.8 kB / 3.131 GB, free: 87.66 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/5.67, allocations: 1.513 MB / 3.133 GB, free: 86 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/5.671, allocations: 83.47 kB / 3.133 GB, free: 85.92 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.452e-05/5.671, allocations: 27.97 kB / 3.133 GB, free: 85.89 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 () * 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.0001492/5.671, allocations: 149.5 kB / 3.133 GB, free: 85.74 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/5.671, allocations: 75.09 kB / 3.133 GB, free: 85.66 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001856/5.673, allocations: 0.9924 MB / 3.134 GB, free: 84.66 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/5.673, allocations: 12 kB / 3.134 GB, free: 84.65 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/5.673, allocations: 0 / 3.134 GB, free: 84.65 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/5.673, allocations: 3.984 kB / 3.134 GB, free: 84.64 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000821/5.674, allocations: 0.8874 MB / 3.135 GB, free: 83.71 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/5.674, allocations: 3.938 kB / 3.135 GB, free: 83.71 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005476/5.675, allocations: 143.8 kB / 3.135 GB, free: 83.57 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004584/5.675, allocations: 84.77 kB / 3.135 GB, free: 83.48 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.798e-05/5.675, allocations: 23.98 kB / 3.135 GB, free: 83.46 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001446/5.677, allocations: 1.54 MB / 3.136 GB, free: 81.77 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/5.677, allocations: 3.984 kB / 3.136 GB, free: 81.77 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/5.678, allocations: 0.809 MB / 3.137 GB, free: 80.95 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003129/5.678, allocations: 279.7 kB / 3.138 GB, free: 80.65 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.5e-05/5.678, allocations: 19.95 kB / 3.138 GB, free: 80.63 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000516/5.679, allocations: 71.94 kB / 3.138 GB, free: 80.56 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/5.679, allocations: 56.7 kB / 3.138 GB, free: 80.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/5.679, allocations: 31.97 kB / 3.138 GB, free: 80.47 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0005198/5.68, allocations: 483.1 kB / 3.138 GB, free: 80 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.9e-07/5.68, allocations: 0 / 3.138 GB, free: 80 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001098/5.681, allocations: 363.1 kB / 3.138 GB, free: 79.65 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) * 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.003165/5.684, allocations: 2.262 MB / 3.141 GB, free: 77.46 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.001076/5.685, allocations: 0.6904 MB / 3.141 GB, free: 76.76 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/5.685, allocations: 0 / 3.141 GB, free: 76.76 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0006198/5.686, allocations: 471 kB / 3.142 GB, free: 76.29 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009447/5.687, allocations: 236.6 kB / 3.142 GB, free: 76.06 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00337/5.69, allocations: 1.591 MB / 3.144 GB, free: 74.43 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/5.69, allocations: 1.039 MB / 3.145 GB, free: 73.36 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0007642/5.691, allocations: 269.9 kB / 3.145 GB, free: 73.09 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004491/5.692, allocations: 367.3 kB / 3.145 GB, free: 72.73 MB / 0.948 GB Notification: Performance of SimCode: time 5.51e-07/5.692, allocations: 0 / 3.145 GB, free: 72.73 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04804/5.74, allocations: 31.09 MB / 3.176 GB, free: 41.88 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/5.74, allocations: 248 kB / 3.176 GB, free: 41.55 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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 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: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 -falign-functions -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 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: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_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