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.16/2.16, allocations: 251 MB / 265.9 MB, free: 11.7 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.001618/0.001617, allocations: 174.5 kB / 325.5 MB, free: 2.895 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.392/2.392, 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.001202/0.001202, allocations: 99.16 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004877/0.0004877, allocations: 9.875 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2255, allocations: 106.3 MB / 0.8988 GB, free: 65.52 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.505/7.731, allocations: 2.192 GB / 3.091 GB, free: 246.6 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003682/7.731, allocations: 91.75 kB / 3.091 GB, free: 246.6 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.3265/8.058, allocations: 82.18 MB / 3.171 GB, free: 235.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.436e-06/8.058, allocations: 0 / 3.171 GB, free: 235.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001282/8.058, allocations: 27.38 kB / 3.171 GB, free: 235.8 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: 304 * Number of variables: 304 Notification: Performance of Generate backend data structure: time 0.004699/8.062, allocations: 1.435 MB / 3.173 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/8.063, allocations: 7.781 kB / 3.173 GB, free: 234.8 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000687/8.063, allocations: 184.3 kB / 3.173 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/8.065, allocations: 227.2 kB / 3.173 GB, free: 234.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/8.067, allocations: 0.745 MB / 3.174 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/8.067, allocations: 121.1 kB / 3.174 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000236/8.068, allocations: 116.7 kB / 3.174 GB, free: 234.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003359/8.071, allocations: 1.233 MB / 3.175 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.887e-05/8.071, allocations: 7.953 kB / 3.175 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002011/8.071, allocations: 50.34 kB / 3.175 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.827e-05/8.071, allocations: 31.25 kB / 3.176 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003894/8.075, allocations: 1.36 MB / 3.177 GB, free: 233.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009606/8.085, allocations: 3.349 MB / 3.18 GB, free: 231.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002674/8.088, allocations: 0.9092 MB / 3.181 GB, free: 231.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001725/8.088, allocations: 47.91 kB / 3.181 GB, free: 231.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001547/8.089, allocations: 0.549 MB / 3.182 GB, free: 231.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=93): time 4.548e-06/8.089, allocations: 0 / 3.182 GB, free: 231.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=93): time 0.005931/8.095, allocations: 1.395 MB / 3.183 GB, free: 230.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/8.096, allocations: 248.1 kB / 3.183 GB, free: 230.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001604/8.097, allocations: 0.6935 MB / 3.184 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003424/8.098, allocations: 51.61 kB / 3.184 GB, free: 230.4 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005362/8.098, allocations: 0.5069 MB / 3.184 GB, free: 230.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004519/8.099, allocations: 308.6 kB / 3.185 GB, free: 229.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/8.099, allocations: 17.53 kB / 3.185 GB, free: 229.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.719e-05/8.099, allocations: 344.4 kB / 3.185 GB, free: 229.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001033/8.1, allocations: 310.6 kB / 3.185 GB, free: 229.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/8.101, allocations: 434.2 kB / 3.186 GB, free: 229.3 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/8.102, allocations: 378.8 kB / 3.186 GB, free: 229.3 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/8.102, allocations: 7.938 kB / 3.186 GB, free: 229.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=104) (initialization): time 0.003692/8.106, allocations: 0.9697 MB / 3.187 GB, free: 229.1 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/8.106, allocations: 9.5 kB / 3.187 GB, free: 229.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/8.106, allocations: 0 / 3.187 GB, free: 229.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009748/8.107, allocations: 90.45 kB / 3.187 GB, free: 229 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001715/8.109, allocations: 184.2 kB / 3.187 GB, free: 229 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/8.111, allocations: 1.548 MB / 3.189 GB, free: 227.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/8.113, allocations: 100.4 kB / 3.189 GB, free: 227.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/8.113, allocations: 38.94 kB / 3.189 GB, free: 227.5 MB / 0.8855 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 (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.001063/8.114, allocations: 302.3 kB / 3.189 GB, free: 227.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004071/8.115, allocations: 93.38 kB / 3.189 GB, free: 227.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004951/8.12, allocations: 1.318 MB / 3.191 GB, free: 227 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/8.12, allocations: 11.66 kB / 3.191 GB, free: 227 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/8.12, allocations: 0 / 3.191 GB, free: 227 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.999e-05/8.12, allocations: 3.984 kB / 3.191 GB, free: 227 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006904/8.127, allocations: 2.464 MB / 3.193 GB, free: 226.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.579e-06/8.127, allocations: 0 / 3.193 GB, free: 226.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002122/8.129, allocations: 184 kB / 3.193 GB, free: 226 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/8.13, allocations: 82.88 kB / 3.193 GB, free: 226 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002927/8.131, allocations: 30.72 kB / 3.193 GB, free: 226 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002674/8.133, allocations: 1.572 MB / 3.195 GB, free: 224.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/8.133, allocations: 0 / 3.195 GB, free: 224.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/8.138, allocations: 1.113 MB / 3.196 GB, free: 224.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/8.139, allocations: 351.5 kB / 3.196 GB, free: 224.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/8.14, allocations: 25.73 kB / 3.196 GB, free: 224.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001361/8.141, allocations: 76.62 kB / 3.196 GB, free: 224 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002351/8.141, allocations: 71.27 kB / 3.196 GB, free: 224 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/8.141, allocations: 37.98 kB / 3.197 GB, free: 224 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001434/8.143, allocations: 0.5869 MB / 3.197 GB, free: 223.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.31e-07/8.143, allocations: 3.938 kB / 3.197 GB, free: 223.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002279/8.145, allocations: 419.6 kB / 3.197 GB, free: 223.7 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * 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.006609/8.152, allocations: 2.576 MB / 3.2 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003272/8.155, allocations: 0.9334 MB / 3.201 GB, free: 222.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/8.155, allocations: 3.938 kB / 3.201 GB, free: 222.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001613/8.157, allocations: 0.5868 MB / 3.201 GB, free: 222 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/8.159, allocations: 251.8 kB / 3.202 GB, free: 221.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/8.172, allocations: 3.822 MB / 3.205 GB, free: 219.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001241/8.173, allocations: 1.147 MB / 3.207 GB, free: 218.6 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003165/8.177, allocations: 306.9 kB / 3.207 GB, free: 218.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/8.178, allocations: 493.4 kB / 3.207 GB, free: 218.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.914e-06/8.179, allocations: 0 / 3.207 GB, free: 218.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1023/8.281, allocations: 33.38 MB / 3.24 GB, free: 196.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000318/8.281, allocations: 287.3 kB / 3.24 GB, free: 196.3 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_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: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_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: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_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