Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.677/2.677, allocations: 287.3 MB / 302.3 MB, free: 8.355 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.001633/0.001633, allocations: 182.3 kB / 370.8 MB, free: 10.84 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.298/2.298, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001103/0.001103, allocations: 96.98 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004936/0.0004938, allocations: 10.77 kB / 0.8657 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2423, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffusePerez): time 0.0077/0.2501, allocations: 5.098 MB / 0.9833 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.9152/1.165, allocations: 128.1 MB / 1.108 GB, free: 1.633 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/1.167, allocations: 22 kB / 1.108 GB, free: 1.625 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0007083/1.168, allocations: 114.5 kB / 1.108 GB, free: 1.562 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.003333/1.171, allocations: 0.5556 MB / 1.109 GB, free: 1.52 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.004293/1.175, allocations: 0.9066 MB / 1.11 GB, free: 1.484 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.004243/1.179, allocations: 1.352 MB / 1.111 GB, free: 1.414 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002649/1.182, allocations: 1.115 MB / 1.112 GB, free: 1.211 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002335/1.185, allocations: 0.6862 MB / 1.113 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002411/1.187, allocations: 0.7482 MB / 1.114 GB, free: 0.8555 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0007848/1.188, allocations: 59.91 kB / 1.114 GB, free: 0.8516 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/1.19, allocations: 303.7 kB / 1.114 GB, free: 0.8438 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0008246/1.191, allocations: 340.5 kB / 1.114 GB, free: 0.7773 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0009941/1.192, allocations: 353 kB / 1.115 GB, free: 16.68 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.005451/1.197, allocations: 2.299 MB / 1.117 GB, free: 16.54 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/1.197, allocations: 0 / 1.117 GB, free: 16.54 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.655e-06/1.197, allocations: 0 / 1.117 GB, free: 16.54 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001331/1.197, allocations: 0 / 1.117 GB, free: 16.54 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 534 * Number of variables: 534 Notification: Performance of Generate backend data structure: time 0.00892/1.206, allocations: 2.082 MB / 1.119 GB, free: 15.46 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/1.206, allocations: 12.55 kB / 1.119 GB, free: 15.46 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001308/1.208, allocations: 293.2 kB / 1.119 GB, free: 15.41 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02763/1.235, allocations: 2.19 MB / 1.121 GB, free: 15.21 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003799/1.239, allocations: 1.149 MB / 1.123 GB, free: 14.81 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/1.239, allocations: 159.6 kB / 1.123 GB, free: 14.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001074/1.241, allocations: 201.2 kB / 1.123 GB, free: 14.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/1.257, allocations: 3.072 MB / 1.126 GB, free: 13.99 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.834e-05/1.257, allocations: 0 / 1.126 GB, free: 13.99 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000481/1.257, allocations: 85.81 kB / 1.126 GB, free: 13.99 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.593e-05/1.257, allocations: 51.31 kB / 1.126 GB, free: 13.99 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02422/1.282, allocations: 4.077 MB / 1.13 GB, free: 12.99 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0283/1.31, allocations: 6.609 MB / 1.136 GB, free: 10.1 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01779/1.328, allocations: 2.74 MB / 1.139 GB, free: 9.547 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001405/1.329, allocations: 0.5017 MB / 1.14 GB, free: 9.043 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009491/1.339, allocations: 1.625 MB / 1.141 GB, free: 8.492 MB / 0.698 GB Notification: Performance of pre-optimization done (n=192): time 6.412e-06/1.339, allocations: 4.656 kB / 1.141 GB, free: 8.488 MB / 0.698 GB Notification: Performance of matching and sorting (n=192): time 0.02939/1.368, allocations: 4.051 MB / 1.145 GB, free: 7.523 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/1.369, allocations: 201.7 kB / 1.145 GB, free: 7.301 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/1.371, allocations: 0.8265 MB / 1.146 GB, free: 7.023 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0008827/1.372, allocations: 67.53 kB / 1.146 GB, free: 6.984 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009402/1.372, allocations: 0.6908 MB / 1.147 GB, free: 6.566 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001495/1.374, allocations: 0.6154 MB / 1.148 GB, free: 6.109 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00029/1.374, allocations: 32.91 kB / 1.148 GB, free: 6.109 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002552/1.375, allocations: 366.9 kB / 1.148 GB, free: 5.785 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007598/1.382, allocations: 1.117 MB / 1.149 GB, free: 5.566 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008163/1.39, allocations: 1.3 MB / 1.15 GB, free: 5.215 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007744/1.398, allocations: 1.163 MB / 1.151 GB, free: 5.035 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/1.398, allocations: 4 kB / 1.151 GB, free: 5.031 MB / 0.698 GB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01822/1.417, allocations: 2.809 MB / 1.154 GB, free: 4.398 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/1.417, allocations: 9.75 kB / 1.154 GB, free: 4.398 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/1.417, allocations: 0 / 1.154 GB, free: 4.398 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/1.418, allocations: 98.05 kB / 1.154 GB, free: 4.363 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007244/1.425, allocations: 0.5404 MB / 1.155 GB, free: 4.203 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003395/1.428, allocations: 1.523 MB / 1.156 GB, free: 2.84 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005545/1.434, allocations: 321.6 kB / 1.157 GB, free: 2.695 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006582/1.435, allocations: 88.42 kB / 1.157 GB, free: 2.668 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (204): * Single equations (assignments): 203 * 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.001829/1.437, allocations: 401 kB / 1.157 GB, free: 2.52 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006447/1.437, allocations: 141.2 kB / 1.157 GB, free: 2.445 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01926/1.456, allocations: 3.387 MB / 1.16 GB, free: 1.504 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.891e-05/1.457, allocations: 22.2 kB / 1.161 GB, free: 1.504 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/1.457, allocations: 3.953 kB / 1.161 GB, free: 1.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.096e-05/1.457, allocations: 11.95 kB / 1.161 GB, free: 1.488 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02406/1.481, allocations: 5.589 MB / 1.166 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/1.481, allocations: 0 / 1.166 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00677/1.488, allocations: 0.5212 MB / 1.166 GB, free: 15.65 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009334/1.488, allocations: 97.47 kB / 1.167 GB, free: 15.61 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004915/1.489, allocations: 68.33 kB / 1.167 GB, free: 15.59 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002868/1.492, allocations: 1.564 MB / 1.168 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/1.492, allocations: 0 / 1.168 GB, free: 14.22 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01699/1.509, allocations: 2.948 MB / 1.171 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002031/1.511, allocations: 0.5295 MB / 1.172 GB, free: 12.69 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005745/1.512, allocations: 32 kB / 1.172 GB, free: 12.66 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005007/1.517, allocations: 251.7 kB / 1.172 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005009/1.517, allocations: 123.6 kB / 1.172 GB, free: 12.29 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003985/1.518, allocations: 83.91 kB / 1.172 GB, free: 12.21 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001501/1.519, allocations: 0.6107 MB / 1.173 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.11e-07/1.519, allocations: 0 / 1.173 GB, free: 11.59 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002819/1.522, allocations: 0.5569 MB / 1.173 GB, free: 11.03 MB / 0.7136 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 (206): * Single equations (assignments): 203 * 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.02006/1.542, allocations: 3.99 MB / 1.177 GB, free: 7.211 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.01698/1.559, allocations: 2.85 MB / 1.18 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.559, allocations: 0 / 1.18 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.008714/1.568, allocations: 1.603 MB / 1.181 GB, free: 2.734 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/1.57, allocations: 281.1 kB / 1.182 GB, free: 2.457 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05305/1.623, allocations: 12.33 MB / 1.194 GB, free: 5.805 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001479/1.625, allocations: 1.4 MB / 1.195 GB, free: 4.367 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.005804/1.631, allocations: 0.5426 MB / 1.196 GB, free: 3.82 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002861/1.634, allocations: 0.7998 MB / 1.196 GB, free: 3.02 MB / 0.7292 GB Notification: Performance of SimCode: time 1.273e-06/1.634, allocations: 0 / 1.196 GB, free: 3.02 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1599/1.794, allocations: 37.48 MB / 1.233 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004208/1.794, allocations: 276.8 kB / 1.233 GB, free: 13.5 MB / 0.7761 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 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222: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 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.o' failed make: *** [Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffusePerez_functions.o] Error 1