Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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.RelativeAirMass,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",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.118/2.118, 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.001644/0.001644, allocations: 180.1 kB / 325.5 MB, free: 2.898 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.355/2.355, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.00113/0.00113, allocations: 99.67 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004981/0.0004982, allocations: 12 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2568, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.646/7.903, allocations: 2.19 GB / 3.089 GB, free: 247.6 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000364/7.903, allocations: 96.11 kB / 3.089 GB, free: 247.6 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2449/8.148, allocations: 62.48 MB / 3.15 GB, free: 242.7 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.945e-06/8.148, allocations: 0 / 3.15 GB, free: 242.7 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.342e-05/8.148, allocations: 23.53 kB / 3.15 GB, free: 242.7 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: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.003209/8.151, allocations: 1.148 MB / 3.151 GB, free: 241.9 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/8.151, allocations: 11.72 kB / 3.151 GB, free: 241.9 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003462/8.152, allocations: 124 kB / 3.151 GB, free: 241.9 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001779/8.154, allocations: 209 kB / 3.151 GB, free: 241.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001679/8.155, allocations: 0.6145 MB / 3.152 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.393e-05/8.155, allocations: 59 kB / 3.152 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/8.156, allocations: 76.38 kB / 3.152 GB, free: 241.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/8.158, allocations: 0.86 MB / 3.153 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/8.158, allocations: 0 / 3.153 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001376/8.158, allocations: 32 kB / 3.153 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/8.158, allocations: 19.62 kB / 3.153 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002763/8.161, allocations: 1.094 MB / 3.154 GB, free: 241.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006263/8.167, allocations: 2.405 MB / 3.156 GB, free: 240.5 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003525/8.171, allocations: 0.8237 MB / 3.157 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/8.171, allocations: 35.02 kB / 3.157 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/8.172, allocations: 448.4 kB / 3.158 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=73): time 5.3e-06/8.172, allocations: 0 / 3.158 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=73): time 0.005173/8.178, allocations: 1.143 MB / 3.159 GB, free: 240.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001361/8.178, allocations: 247.7 kB / 3.159 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/8.179, allocations: 0.5639 MB / 3.16 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002176/8.179, allocations: 42.98 kB / 3.16 GB, free: 239.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003495/8.18, allocations: 365.6 kB / 3.16 GB, free: 239.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/8.18, allocations: 250.5 kB / 3.16 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.109e-05/8.18, allocations: 11 kB / 3.16 GB, free: 239.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001344/8.18, allocations: 382.2 kB / 3.161 GB, free: 238.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008189/8.181, allocations: 231.3 kB / 3.161 GB, free: 238.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000921/8.182, allocations: 338.9 kB / 3.161 GB, free: 238.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009117/8.183, allocations: 280.6 kB / 3.161 GB, free: 238.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/8.183, allocations: 3.938 kB / 3.161 GB, free: 238.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.003144/8.186, allocations: 0.7496 MB / 3.162 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/8.186, allocations: 15.73 kB / 3.162 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/8.186, allocations: 3.938 kB / 3.162 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009811/8.187, allocations: 83.27 kB / 3.162 GB, free: 238.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/8.188, allocations: 139.9 kB / 3.162 GB, free: 238.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002746/8.191, allocations: 1.54 MB / 3.164 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/8.192, allocations: 73.12 kB / 3.164 GB, free: 237 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/8.193, allocations: 34.47 kB / 3.164 GB, free: 237 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 (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.0007274/8.193, allocations: 254.4 kB / 3.164 GB, free: 236.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002276/8.194, allocations: 78.31 kB / 3.164 GB, free: 236.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003947/8.197, allocations: 1.041 MB / 3.165 GB, free: 236.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/8.198, allocations: 7.812 kB / 3.165 GB, free: 236.5 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/8.198, allocations: 4 kB / 3.165 GB, free: 236.5 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/8.198, allocations: 11.88 kB / 3.165 GB, free: 236.5 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/8.199, allocations: 0.8806 MB / 3.166 GB, free: 236 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/8.199, allocations: 4 kB / 3.166 GB, free: 236 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/8.201, allocations: 147.8 kB / 3.166 GB, free: 236 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008651/8.201, allocations: 82.73 kB / 3.166 GB, free: 236 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.218e-05/8.202, allocations: 22.67 kB / 3.166 GB, free: 236 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/8.204, allocations: 1.574 MB / 3.168 GB, free: 234.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/8.204, allocations: 8.016 kB / 3.168 GB, free: 234.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003365/8.207, allocations: 0.8764 MB / 3.169 GB, free: 234.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006876/8.208, allocations: 285.2 kB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001852/8.208, allocations: 15.41 kB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/8.209, allocations: 72.78 kB / 3.169 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/8.21, allocations: 59.42 kB / 3.169 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/8.21, allocations: 26.92 kB / 3.169 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0008731/8.211, allocations: 480.3 kB / 3.17 GB, free: 233.9 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.91e-07/8.211, allocations: 0 / 3.17 GB, free: 233.9 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001486/8.212, allocations: 319.7 kB / 3.17 GB, free: 233.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 (85): * Single equations (assignments): 82 * 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.005692/8.218, allocations: 2.348 MB / 3.172 GB, free: 232.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002526/8.22, allocations: 0.7586 MB / 3.173 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/8.22, allocations: 0 / 3.173 GB, free: 232.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001369/8.222, allocations: 0.5036 MB / 3.174 GB, free: 232.2 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/8.224, allocations: 238.6 kB / 3.174 GB, free: 232.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/8.238, allocations: 5.003 MB / 3.179 GB, free: 229.8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/8.239, allocations: 1.017 MB / 3.18 GB, free: 229 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001617/8.241, allocations: 262.6 kB / 3.18 GB, free: 228.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007581/8.241, allocations: 334.9 kB / 3.18 GB, free: 228.8 MB / 0.8855 GB Notification: Performance of SimCode: time 1.493e-06/8.241, allocations: 3.938 kB / 3.18 GB, free: 228.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0835/8.325, allocations: 29.08 MB / 3.209 GB, free: 214.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003231/8.325, allocations: 291.9 kB / 3.209 GB, free: 214.5 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_RelativeAirMass.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_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_RelativeAirMass_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_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_RelativeAirMass_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_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_RelativeAirMass_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass_functions.o] Error 1