Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.DiffuseIsotropic.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.DiffuseIsotropic,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic",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.407/2.407, allocations: 251 MB / 265.9 MB, free: 11.71 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.00158/0.00158, allocations: 177 kB / 325.5 MB, free: 2.93 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.325/2.325, allocations: 205.4 MB / 0.5764 GB, free: 21.19 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.001119/0.001119, allocations: 99.36 kB / 0.6809 GB, free: 14.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005196/0.0005198, allocations: 11.95 kB / 0.795 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2312, allocations: 106.3 MB / 0.8988 GB, free: 66 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.596/7.827, allocations: 2.19 GB / 3.089 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003941/7.828, allocations: 101 kB / 3.089 GB, free: 247.7 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2348/8.062, allocations: 57.39 MB / 3.145 GB, free: 243.3 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.376e-06/8.063, allocations: 0 / 3.145 GB, free: 243.3 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001173/8.063, allocations: 23.47 kB / 3.145 GB, free: 243.3 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.004002/8.067, allocations: 1.142 MB / 3.146 GB, free: 242.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/8.067, allocations: 11.62 kB / 3.146 GB, free: 242.6 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005368/8.067, allocations: 130.3 kB / 3.146 GB, free: 242.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00168/8.069, allocations: 175.8 kB / 3.146 GB, free: 242.5 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/8.071, allocations: 0.6021 MB / 3.147 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.182e-05/8.071, allocations: 58.22 kB / 3.147 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/8.071, allocations: 75.94 kB / 3.147 GB, free: 242.2 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002623/8.074, allocations: 0.8403 MB / 3.148 GB, free: 242 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.066e-05/8.074, allocations: 3.953 kB / 3.148 GB, free: 242 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/8.074, allocations: 33.62 kB / 3.148 GB, free: 242 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/8.074, allocations: 19.56 kB / 3.148 GB, free: 242 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003131/8.077, allocations: 1.057 MB / 3.149 GB, free: 242 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006835/8.084, allocations: 2.345 MB / 3.151 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/8.087, allocations: 0.7166 MB / 3.152 GB, free: 241.1 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001497/8.087, allocations: 34.98 kB / 3.152 GB, free: 241.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0012/8.088, allocations: 414.9 kB / 3.152 GB, free: 241.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=71): time 3.817e-06/8.088, allocations: 0 / 3.152 GB, free: 241.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=71): time 0.005365/8.093, allocations: 1.091 MB / 3.153 GB, free: 240.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/8.094, allocations: 239.9 kB / 3.154 GB, free: 240.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/8.095, allocations: 0.5707 MB / 3.154 GB, free: 240.5 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002889/8.095, allocations: 39.8 kB / 3.154 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/8.096, allocations: 363.4 kB / 3.155 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/8.096, allocations: 240.3 kB / 3.155 GB, free: 240.1 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.878e-05/8.096, allocations: 10.06 kB / 3.155 GB, free: 240.1 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001844/8.096, allocations: 384.7 kB / 3.155 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007859/8.097, allocations: 212 kB / 3.155 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008592/8.098, allocations: 325.1 kB / 3.156 GB, free: 239.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008387/8.099, allocations: 264.8 kB / 3.156 GB, free: 239.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/8.099, allocations: 0 / 3.156 GB, free: 239.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.002991/8.102, allocations: 0.7202 MB / 3.157 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/8.102, allocations: 5.625 kB / 3.157 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/8.102, allocations: 0 / 3.157 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/8.103, allocations: 85.94 kB / 3.157 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/8.104, allocations: 132.8 kB / 3.157 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002871/8.107, allocations: 1.533 MB / 3.158 GB, free: 238.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001296/8.109, allocations: 80.64 kB / 3.158 GB, free: 238.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001794/8.109, allocations: 29.77 kB / 3.158 GB, free: 238.2 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.0007743/8.11, allocations: 246.7 kB / 3.159 GB, free: 238.1 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003445/8.11, allocations: 86.2 kB / 3.159 GB, free: 238.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003824/8.114, allocations: 0.9754 MB / 3.16 GB, free: 237.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/8.114, allocations: 7.844 kB / 3.16 GB, free: 237.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/8.114, allocations: 0 / 3.16 GB, free: 237.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/8.114, allocations: 7.406 kB / 3.16 GB, free: 237.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/8.116, allocations: 0.8395 MB / 3.161 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/8.116, allocations: 4 kB / 3.161 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/8.117, allocations: 139.7 kB / 3.161 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009031/8.118, allocations: 85.42 kB / 3.161 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001819/8.118, allocations: 21.83 kB / 3.161 GB, free: 237.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/8.121, allocations: 1.553 MB / 3.162 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/8.121, allocations: 64 / 3.162 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003235/8.124, allocations: 0.8335 MB / 3.163 GB, free: 236.2 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009002/8.125, allocations: 279 kB / 3.163 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002726/8.125, allocations: 18.91 kB / 3.163 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001155/8.126, allocations: 72.81 kB / 3.164 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002633/8.127, allocations: 57.98 kB / 3.164 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/8.127, allocations: 27.06 kB / 3.164 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0009978/8.128, allocations: 471.4 kB / 3.164 GB, free: 236 MB / 0.8855 GB Notification: Performance of sort global known variables: time 7.62e-07/8.128, allocations: 0 / 3.164 GB, free: 236 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001866/8.13, allocations: 325.6 kB / 3.164 GB, free: 235.9 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 (82): * Single equations (assignments): 79 * 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.005984/8.136, allocations: 2.315 MB / 3.167 GB, free: 234.9 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002618/8.139, allocations: 0.7124 MB / 3.167 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/8.139, allocations: 0 / 3.167 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001536/8.14, allocations: 488 kB / 3.168 GB, free: 234.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/8.142, allocations: 233.4 kB / 3.168 GB, free: 234.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01566/8.158, allocations: 4.885 MB / 3.173 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005956/8.159, allocations: 1.01 MB / 3.174 GB, free: 232.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001665/8.16, allocations: 249.5 kB / 3.174 GB, free: 232 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000963/8.161, allocations: 332.1 kB / 3.174 GB, free: 232 MB / 0.8855 GB Notification: Performance of SimCode: time 1.533e-06/8.161, allocations: 0 / 3.174 GB, free: 232 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08314/8.245, allocations: 28.45 MB / 3.202 GB, free: 218.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002834/8.245, allocations: 292.6 kB / 3.202 GB, free: 218.2 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_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_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_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_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_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_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_DiffuseIsotropic_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_DiffuseIsotropic_functions.o] Error 1