Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic.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.DiffuseIsotropic,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic",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.639/2.639, allocations: 287.3 MB / 302.3 MB, free: 8.312 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.00162/0.00162, allocations: 182 kB / 370.8 MB, free: 10.86 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.329/2.329, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001105/0.001105, allocations: 94.84 kB / 0.7428 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007472/0.0007474, allocations: 11.73 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3066, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DiffuseIsotropic): time 0.005997/0.3126, allocations: 3.795 MB / 0.982 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.9541/1.267, allocations: 127.3 MB / 1.106 GB, free: 1.363 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/1.268, allocations: 14.16 kB / 1.106 GB, free: 1.359 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0004943/1.268, allocations: 80.42 kB / 1.106 GB, free: 1.32 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.002591/1.271, allocations: 452.2 kB / 1.107 GB, free: 1.277 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003205/1.274, allocations: 0.6113 MB / 1.107 GB, free: 1.246 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.002544/1.277, allocations: 0.8114 MB / 1.108 GB, free: 1.199 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001617/1.278, allocations: 0.6614 MB / 1.109 GB, free: 1.078 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/1.28, allocations: 343.3 kB / 1.109 GB, free: 0.9844 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/1.281, allocations: 343.3 kB / 1.11 GB, free: 0.8711 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002706/1.281, allocations: 23.5 kB / 1.11 GB, free: 0.8711 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001486/1.283, allocations: 248.8 kB / 1.11 GB, free: 0.8672 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004361/1.283, allocations: 186 kB / 1.11 GB, free: 0.8242 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0005203/1.284, allocations: 221.6 kB / 1.11 GB, free: 16.75 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.003412/1.287, allocations: 1.262 MB / 1.111 GB, free: 16.66 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/1.287, allocations: 0 / 1.111 GB, free: 16.66 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.564e-06/1.287, allocations: 0 / 1.111 GB, free: 16.66 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.823e-05/1.287, allocations: 5.797 kB / 1.111 GB, free: 16.65 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: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.004957/1.292, allocations: 1.311 MB / 1.113 GB, free: 15.86 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/1.292, allocations: 10.03 kB / 1.113 GB, free: 15.86 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007704/1.293, allocations: 174.6 kB / 1.113 GB, free: 15.82 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001856/1.295, allocations: 222.3 kB / 1.113 GB, free: 15.74 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002616/1.298, allocations: 0.7711 MB / 1.114 GB, free: 15.41 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001567/1.298, allocations: 85.31 kB / 1.114 GB, free: 15.41 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004087/1.298, allocations: 108 kB / 1.114 GB, free: 15.41 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004473/1.303, allocations: 1.11 MB / 1.115 GB, free: 15.22 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.731e-05/1.303, allocations: 5.141 kB / 1.115 GB, free: 15.21 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/1.303, allocations: 47.48 kB / 1.115 GB, free: 15.21 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.13e-05/1.303, allocations: 27.25 kB / 1.115 GB, free: 15.21 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004493/1.308, allocations: 1.217 MB / 1.116 GB, free: 15.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009487/1.317, allocations: 2.999 MB / 1.119 GB, free: 14.28 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0025/1.32, allocations: 0.7772 MB / 1.12 GB, free: 14.23 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/1.32, allocations: 33.31 kB / 1.12 GB, free: 14.23 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001311/1.321, allocations: 446.4 kB / 1.121 GB, free: 14.16 MB / 0.698 GB Notification: Performance of pre-optimization done (n=78): time 4.027e-06/1.321, allocations: 0 / 1.121 GB, free: 14.16 MB / 0.698 GB Notification: Performance of matching and sorting (n=78): time 0.005297/1.327, allocations: 1.14 MB / 1.122 GB, free: 13.94 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/1.327, allocations: 197.8 kB / 1.122 GB, free: 13.72 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001539/1.328, allocations: 0.6631 MB / 1.122 GB, free: 13.59 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002844/1.329, allocations: 39.02 kB / 1.123 GB, free: 13.55 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005648/1.329, allocations: 497.9 kB / 1.123 GB, free: 13.32 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004202/1.33, allocations: 261.8 kB / 1.123 GB, free: 13.16 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.412e-05/1.33, allocations: 10.84 kB / 1.123 GB, free: 13.16 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002553/1.33, allocations: 395.3 kB / 1.124 GB, free: 12.84 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009031/1.331, allocations: 238.4 kB / 1.124 GB, free: 12.84 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/1.332, allocations: 352.2 kB / 1.124 GB, free: 12.75 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/1.333, allocations: 287.8 kB / 1.124 GB, free: 12.73 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.223e-06/1.333, allocations: 4 kB / 1.124 GB, free: 12.73 MB / 0.698 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003344/1.336, allocations: 0.7903 MB / 1.125 GB, free: 12.62 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/1.336, allocations: 4.656 kB / 1.125 GB, free: 12.62 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/1.337, allocations: 1.75 kB / 1.125 GB, free: 12.62 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009956/1.338, allocations: 83.41 kB / 1.125 GB, free: 12.61 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/1.339, allocations: 159.3 kB / 1.125 GB, free: 12.59 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/1.342, allocations: 1.526 MB / 1.127 GB, free: 11.29 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/1.344, allocations: 85.67 kB / 1.127 GB, free: 11.26 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001756/1.344, allocations: 36.98 kB / 1.127 GB, free: 11.25 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (84): * Single equations (assignments): 83 * 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.0009388/1.345, allocations: 274.4 kB / 1.127 GB, free: 11.13 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003399/1.345, allocations: 88.86 kB / 1.127 GB, free: 11.08 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004177/1.35, allocations: 1.038 MB / 1.128 GB, free: 10.94 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-05/1.35, allocations: 9 kB / 1.128 GB, free: 10.94 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/1.35, allocations: 7.438 kB / 1.128 GB, free: 10.93 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.844e-05/1.35, allocations: 4.312 kB / 1.128 GB, free: 10.93 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002484/1.352, allocations: 0.9846 MB / 1.129 GB, free: 10.68 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/1.352, allocations: 4 kB / 1.129 GB, free: 10.68 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/1.354, allocations: 150.8 kB / 1.13 GB, free: 10.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009654/1.355, allocations: 83.8 kB / 1.13 GB, free: 10.62 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002184/1.355, allocations: 22.42 kB / 1.13 GB, free: 10.61 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003075/1.358, allocations: 1.557 MB / 1.131 GB, free: 9.246 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.358, allocations: 4.062 kB / 1.131 GB, free: 9.242 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003737/1.362, allocations: 0.8892 MB / 1.132 GB, free: 8.992 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000989/1.363, allocations: 282.2 kB / 1.132 GB, free: 8.797 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002563/1.363, allocations: 17.91 kB / 1.132 GB, free: 8.797 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/1.364, allocations: 72.12 kB / 1.132 GB, free: 8.773 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/1.365, allocations: 61.25 kB / 1.132 GB, free: 8.75 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/1.365, allocations: 31.52 kB / 1.133 GB, free: 8.746 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001229/1.366, allocations: 478.6 kB / 1.133 GB, free: 8.586 MB / 0.698 GB Notification: Performance of sort global known variables: time 7.51e-07/1.366, allocations: 0 / 1.133 GB, free: 8.586 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001822/1.368, allocations: 317.9 kB / 1.133 GB, free: 8.508 MB / 0.698 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 (89): * Single equations (assignments): 86 * 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.005966/1.374, allocations: 1.887 MB / 1.135 GB, free: 7.586 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003066/1.377, allocations: 0.7794 MB / 1.136 GB, free: 7.359 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.377, allocations: 0 / 1.136 GB, free: 7.359 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001799/1.379, allocations: 0.4998 MB / 1.136 GB, free: 7.172 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002306/1.381, allocations: 244.9 kB / 1.137 GB, free: 7.102 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02118/1.403, allocations: 5.819 MB / 1.142 GB, free: 4.188 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/1.404, allocations: 1.101 MB / 1.143 GB, free: 3.312 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001846/1.406, allocations: 263.3 kB / 1.144 GB, free: 3.18 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001276/1.407, allocations: 443.6 kB / 1.144 GB, free: 3.129 MB / 0.698 GB Notification: Performance of SimCode: time 1.452e-06/1.407, allocations: 3.938 kB / 1.144 GB, free: 3.125 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08273/1.49, allocations: 21.16 MB / 1.165 GB, free: 8.992 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003812/1.49, allocations: 281.9 kB / 1.165 GB, free: 8.633 MB / 0.7136 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_DiffuseIsotropic.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_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: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_DiffuseIsotropic_functions.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_functions.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_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_DiffuseIsotropic_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_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_DiffuseIsotropic_functions.o' failed make: *** [Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DiffuseIsotropic_functions.o] Error 1