Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",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.211/2.211, allocations: 248.5 MB / 261.1 MB, free: 6.027 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 182.2 kB / 320.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.97/1.97, allocations: 205.2 MB / 0.571 GB, free: 11.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.001112/0.001112, allocations: 100.7 kB / 0.6754 GB, free: 0.9062 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.44e-05/5.441e-05, allocations: 4 kB / 0.7869 GB, free: 97.83 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.2287, allocations: 106.2 MB / 0.8907 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.125/7.354, allocations: 2.192 GB / 3.083 GB, free: 156 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003307/7.354, allocations: 84.7 kB / 3.083 GB, free: 155.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.3186/7.673, allocations: 81.86 MB / 3.163 GB, free: 79.56 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.214e-06/7.673, allocations: 0 / 3.163 GB, free: 79.56 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0001128/7.673, allocations: 31.92 kB / 3.163 GB, free: 79.53 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 304 * Number of variables: 304 Notification: Performance of Generate backend data structure: time 0.003271/7.676, allocations: 1.298 MB / 3.164 GB, free: 78.18 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/7.676, allocations: 12.03 kB / 3.164 GB, free: 78.17 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003982/7.676, allocations: 177.6 kB / 3.164 GB, free: 77.98 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001616/7.678, allocations: 226.1 kB / 3.165 GB, free: 77.76 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002003/7.68, allocations: 0.7444 MB / 3.165 GB, free: 76.97 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001859/7.68, allocations: 120.1 kB / 3.165 GB, free: 76.85 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000273/7.681, allocations: 120 kB / 3.166 GB, free: 76.73 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003031/7.684, allocations: 1.186 MB / 3.167 GB, free: 75.48 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/7.684, allocations: 3.953 kB / 3.167 GB, free: 75.48 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001893/7.684, allocations: 52 kB / 3.167 GB, free: 75.43 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.81e-05/7.684, allocations: 28 kB / 3.167 GB, free: 75.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003135/7.687, allocations: 1.309 MB / 3.168 GB, free: 74.08 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009358/7.697, allocations: 3.348 MB / 3.171 GB, free: 70.66 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002456/7.699, allocations: 0.8774 MB / 3.172 GB, free: 69.77 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009483/7.7, allocations: 343.2 kB / 3.173 GB, free: 69.44 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001713/7.7, allocations: 44.69 kB / 3.173 GB, free: 69.39 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/7.702, allocations: 0.5101 MB / 3.173 GB, free: 68.86 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=93): time 6.182e-06/7.702, allocations: 4 kB / 3.173 GB, free: 68.86 MB / 0.8698 GB Notification: Performance of matching and sorting (n=93): time 0.003469/7.705, allocations: 0.8864 MB / 3.174 GB, free: 67.96 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/7.706, allocations: 244 kB / 3.174 GB, free: 67.67 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/7.707, allocations: 0.7034 MB / 3.175 GB, free: 66.96 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003457/7.708, allocations: 45.64 kB / 3.175 GB, free: 66.91 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005289/7.708, allocations: 0.5038 MB / 3.175 GB, free: 66.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003905/7.708, allocations: 311.5 kB / 3.176 GB, free: 66.09 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.075e-05/7.709, allocations: 12 kB / 3.176 GB, free: 66.08 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001003/7.709, allocations: 338 kB / 3.176 GB, free: 65.74 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008451/7.71, allocations: 285.9 kB / 3.176 GB, free: 65.46 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009248/7.711, allocations: 416.4 kB / 3.177 GB, free: 65.02 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009216/7.711, allocations: 352.8 kB / 3.177 GB, free: 64.68 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/7.711, allocations: 0 / 3.177 GB, free: 64.68 MB / 0.8698 GB Notification: Performance of matching and sorting (n=104) (initialization): time 0.003272/7.715, allocations: 0.9345 MB / 3.178 GB, free: 63.73 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/7.715, allocations: 6.656 kB / 3.178 GB, free: 63.73 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/7.715, allocations: 4 kB / 3.178 GB, free: 63.73 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009829/7.716, allocations: 84.86 kB / 3.178 GB, free: 63.64 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00174/7.718, allocations: 187.8 kB / 3.178 GB, free: 63.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002666/7.72, allocations: 1.533 MB / 3.18 GB, free: 61.78 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/7.722, allocations: 103.3 kB / 3.18 GB, free: 61.68 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/7.722, allocations: 40.05 kB / 3.18 GB, free: 61.64 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 101 * 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.0003149/7.722, allocations: 149 kB / 3.18 GB, free: 61.48 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/7.723, allocations: 98.77 kB / 3.18 GB, free: 61.39 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004376/7.727, allocations: 1.266 MB / 3.181 GB, free: 60.11 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/7.727, allocations: 8 kB / 3.181 GB, free: 60.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/7.727, allocations: 0 / 3.181 GB, free: 60.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/7.727, allocations: 3.984 kB / 3.181 GB, free: 60.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005728/7.733, allocations: 2.423 MB / 3.184 GB, free: 57.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/7.733, allocations: 0 / 3.184 GB, free: 57.61 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001465/7.734, allocations: 183.8 kB / 3.184 GB, free: 57.43 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008371/7.735, allocations: 80.78 kB / 3.184 GB, free: 57.35 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.679e-05/7.735, allocations: 27.97 kB / 3.184 GB, free: 57.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002367/7.738, allocations: 1.556 MB / 3.186 GB, free: 55.62 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/7.738, allocations: 7.922 kB / 3.186 GB, free: 55.62 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003177/7.741, allocations: 1.07 MB / 3.187 GB, free: 54.53 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007397/7.742, allocations: 355.3 kB / 3.187 GB, free: 54.16 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/7.742, allocations: 23.94 kB / 3.187 GB, free: 54.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/7.743, allocations: 75.94 kB / 3.187 GB, free: 54.06 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/7.743, allocations: 72.89 kB / 3.187 GB, free: 53.99 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/7.744, allocations: 43.92 kB / 3.187 GB, free: 53.95 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001087/7.745, allocations: 0.5733 MB / 3.188 GB, free: 53.38 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6.41e-07/7.745, allocations: 0 / 3.188 GB, free: 53.38 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001662/7.746, allocations: 414.8 kB / 3.188 GB, free: 52.97 MB / 0.8698 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 104 * 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.005339/7.752, allocations: 2.506 MB / 3.191 GB, free: 50.59 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002593/7.754, allocations: 0.886 MB / 3.191 GB, free: 49.69 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/7.754, allocations: 0 / 3.191 GB, free: 49.69 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/7.756, allocations: 0.5512 MB / 3.192 GB, free: 49.13 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/7.758, allocations: 252.9 kB / 3.192 GB, free: 48.88 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007119/7.765, allocations: 1.946 MB / 3.194 GB, free: 46.89 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007162/7.766, allocations: 1.15 MB / 3.195 GB, free: 45.72 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001626/7.767, allocations: 307.5 kB / 3.195 GB, free: 45.41 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009576/7.768, allocations: 495.2 kB / 3.196 GB, free: 44.93 MB / 0.8698 GB Notification: Performance of SimCode: time 1.292e-06/7.768, allocations: 0 / 3.196 GB, free: 44.93 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09289/7.861, allocations: 35.53 MB / 3.231 GB, free: 9.625 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002624/7.862, allocations: 253.1 kB / 3.231 GB, free: 9.289 MB / 0.8698 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.o Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.c In file included from Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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_Examples_DirectTiltedSurface_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_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_Examples_DirectTiltedSurface_functions.o' failed make: *** [Buildings_7_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.o] Error 1