Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness.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.BaseClasses.Examples.SkyClearness,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.592/2.592, allocations: 287.3 MB / 302.3 MB, free: 8.371 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.001565/0.001565, allocations: 183.1 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.222/2.222, 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.001109/0.001108, allocations: 95.95 kB / 0.7428 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005291/0.000529, allocations: 11.5 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2449, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.SkyClearness): time 0.005655/0.2507, allocations: 3.534 MB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.9998/1.251, allocations: 127.3 MB / 1.106 GB, free: 1.688 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009539/1.252, allocations: 13.69 kB / 1.106 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0004568/1.252, allocations: 73.73 kB / 1.106 GB, free: 1.648 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.002457/1.254, allocations: 424.8 kB / 1.107 GB, free: 1.609 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003111/1.258, allocations: 0.6065 MB / 1.107 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.002348/1.26, allocations: 0.7418 MB / 1.108 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001248/1.261, allocations: 0.5099 MB / 1.108 GB, free: 1.461 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001046/1.262, allocations: 312.5 kB / 1.109 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006612/1.263, allocations: 299.8 kB / 1.109 GB, free: 1.293 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0001274/1.263, allocations: 21.59 kB / 1.109 GB, free: 1.293 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001197/1.264, allocations: 268.5 kB / 1.109 GB, free: 1.289 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0002929/1.265, allocations: 166.3 kB / 1.109 GB, free: 1.254 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0003998/1.265, allocations: 187.2 kB / 1.11 GB, free: 17.19 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.002654/1.268, allocations: 1.086 MB / 1.111 GB, free: 17.1 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/1.268, allocations: 0 / 1.111 GB, free: 17.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.914e-06/1.268, allocations: 0 / 1.111 GB, free: 17.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.541e-05/1.268, allocations: 0 / 1.111 GB, free: 17.1 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.004017/1.272, allocations: 1.164 MB / 1.112 GB, free: 16.37 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/1.272, allocations: 12.31 kB / 1.112 GB, free: 16.37 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005874/1.273, allocations: 140.2 kB / 1.112 GB, free: 16.33 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/1.275, allocations: 214.8 kB / 1.112 GB, free: 16.27 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002419/1.277, allocations: 0.6946 MB / 1.113 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.853e-05/1.277, allocations: 67.5 kB / 1.113 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/1.278, allocations: 83.72 kB / 1.113 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003442/1.281, allocations: 0.9305 MB / 1.114 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/1.281, allocations: 1.344 kB / 1.114 GB, free: 15.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002045/1.281, allocations: 43.86 kB / 1.114 GB, free: 15.79 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.448e-05/1.281, allocations: 21.03 kB / 1.114 GB, free: 15.79 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005003/1.286, allocations: 1.117 MB / 1.115 GB, free: 15.78 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007686/1.294, allocations: 2.543 MB / 1.117 GB, free: 14.95 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/1.297, allocations: 0.7499 MB / 1.118 GB, free: 14.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001109/1.298, allocations: 471.2 kB / 1.119 GB, free: 14.43 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001436/1.299, allocations: 440.3 kB / 1.119 GB, free: 14.35 MB / 0.698 GB Notification: Performance of pre-optimization done (n=73): time 3.987e-06/1.299, allocations: 0 / 1.119 GB, free: 14.35 MB / 0.698 GB Notification: Performance of matching and sorting (n=73): time 0.005366/1.305, allocations: 1.116 MB / 1.12 GB, free: 14.14 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002033/1.305, allocations: 190.5 kB / 1.12 GB, free: 13.93 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001279/1.306, allocations: 0.5805 MB / 1.121 GB, free: 13.79 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002658/1.307, allocations: 37.98 kB / 1.121 GB, free: 13.76 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000456/1.307, allocations: 404.8 kB / 1.121 GB, free: 13.57 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/1.307, allocations: 236.3 kB / 1.122 GB, free: 13.42 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.011e-05/1.307, allocations: 15.53 kB / 1.122 GB, free: 13.42 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002259/1.308, allocations: 387.1 kB / 1.122 GB, free: 13.1 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008874/1.309, allocations: 225 kB / 1.122 GB, free: 13.09 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/1.31, allocations: 330.4 kB / 1.122 GB, free: 13.01 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009726/1.311, allocations: 272.6 kB / 1.123 GB, free: 13 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/1.311, allocations: 1.859 kB / 1.123 GB, free: 13 MB / 0.698 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003156/1.314, allocations: 0.7461 MB / 1.123 GB, free: 12.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/1.314, allocations: 3.312 kB / 1.123 GB, free: 12.9 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/1.314, allocations: 3.406 kB / 1.123 GB, free: 12.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009604/1.315, allocations: 82.06 kB / 1.124 GB, free: 12.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/1.316, allocations: 147.7 kB / 1.124 GB, free: 12.88 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003113/1.319, allocations: 1.526 MB / 1.125 GB, free: 11.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001333/1.321, allocations: 87.09 kB / 1.125 GB, free: 11.54 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/1.321, allocations: 29.12 kB / 1.125 GB, free: 11.54 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 (76): * Single equations (assignments): 75 * 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.0007726/1.322, allocations: 261.5 kB / 1.126 GB, free: 11.41 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002685/1.322, allocations: 76.44 kB / 1.126 GB, free: 11.38 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003968/1.326, allocations: 1.024 MB / 1.127 GB, free: 11.24 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/1.326, allocations: 12.62 kB / 1.127 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/1.326, allocations: 6.203 kB / 1.127 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/1.326, allocations: 11.67 kB / 1.127 GB, free: 11.23 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/1.328, allocations: 0.8674 MB / 1.127 GB, free: 11 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.328, allocations: 0 / 1.127 GB, free: 11 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001254/1.329, allocations: 144 kB / 1.128 GB, free: 11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009002/1.33, allocations: 90.17 kB / 1.128 GB, free: 10.98 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/1.33, allocations: 22.14 kB / 1.128 GB, free: 10.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002895/1.333, allocations: 1.559 MB / 1.129 GB, free: 9.668 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/1.333, allocations: 3.953 kB / 1.129 GB, free: 9.664 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003519/1.337, allocations: 0.8565 MB / 1.13 GB, free: 9.516 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008081/1.338, allocations: 278.7 kB / 1.13 GB, free: 9.363 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/1.338, allocations: 16.53 kB / 1.13 GB, free: 9.363 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/1.339, allocations: 75.19 kB / 1.13 GB, free: 9.355 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/1.339, allocations: 58.83 kB / 1.13 GB, free: 9.355 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/1.339, allocations: 28.83 kB / 1.13 GB, free: 9.355 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0009145/1.34, allocations: 429 kB / 1.131 GB, free: 9.266 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.31e-07/1.34, allocations: 0 / 1.131 GB, free: 9.266 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001596/1.342, allocations: 295.4 kB / 1.131 GB, free: 9.207 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 (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.005617/1.348, allocations: 1.879 MB / 1.133 GB, free: 8.27 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002918/1.351, allocations: 0.7489 MB / 1.134 GB, free: 8.039 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.351, allocations: 1.469 kB / 1.134 GB, free: 8.039 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001608/1.352, allocations: 500 kB / 1.134 GB, free: 7.855 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/1.354, allocations: 238.8 kB / 1.134 GB, free: 7.773 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01769/1.372, allocations: 5.187 MB / 1.14 GB, free: 5.238 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009618/1.373, allocations: 1.036 MB / 1.141 GB, free: 4.391 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001776/1.375, allocations: 259.6 kB / 1.141 GB, free: 4.262 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008702/1.376, allocations: 372.4 kB / 1.141 GB, free: 4.211 MB / 0.698 GB Notification: Performance of SimCode: time 1.663e-06/1.376, allocations: 0 / 1.141 GB, free: 4.211 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09747/1.473, allocations: 20.03 MB / 1.161 GB, free: 10.57 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004162/1.474, allocations: 293.4 kB / 1.161 GB, free: 10.21 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_BaseClasses_Examples_SkyClearness.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness.c:7: In file included from ./Buildings_8_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: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_BaseClasses_Examples_SkyClearness_functions.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_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_BaseClasses_Examples_SkyClearness_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_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_BaseClasses_Examples_SkyClearness_functions.o' failed make: *** [Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_SkyClearness_functions.o] Error 1