Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle.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.SolarGeometry.Examples.IncidenceAngle,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle",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.547/2.547, allocations: 287.3 MB / 302.3 MB, free: 8.242 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.001539/0.001539, allocations: 184.7 kB / 370.8 MB, free: 10.88 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.218/2.218, allocations: 205.4 MB / 0.6295 GB, free: 10.65 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: 97.55 kB / 0.7428 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004864/0.0004866, allocations: 10.34 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2091, allocations: 115.3 MB / 0.9783 GB, free: 28.33 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.Examples.IncidenceAngle): time 0.006119/0.2153, allocations: 4.173 MB / 0.9824 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.8536/1.069, allocations: 127.6 MB / 1.107 GB, free: 1.656 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/1.07, allocations: 21.09 kB / 1.107 GB, free: 1.648 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0004793/1.071, allocations: 90.55 kB / 1.107 GB, free: 1.605 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.002608/1.073, allocations: 0.5218 MB / 1.108 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003062/1.076, allocations: 0.6589 MB / 1.108 GB, free: 1.531 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.002778/1.079, allocations: 0.9742 MB / 1.109 GB, free: 1.484 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001658/1.081, allocations: 0.7726 MB / 1.11 GB, free: 1.344 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/1.082, allocations: 480.7 kB / 1.11 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/1.083, allocations: 456.2 kB / 1.111 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0002703/1.084, allocations: 30.03 kB / 1.111 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001315/1.085, allocations: 256.6 kB / 1.111 GB, free: 1.082 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0003755/1.085, allocations: 226.2 kB / 1.111 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0004925/1.086, allocations: 251.5 kB / 1.112 GB, free: 16.95 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.003476/1.089, allocations: 1.526 MB / 1.113 GB, free: 16.83 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/1.089, allocations: 0 / 1.113 GB, free: 16.83 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.635e-06/1.089, allocations: 0 / 1.113 GB, free: 16.83 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.783e-05/1.09, allocations: 1.812 kB / 1.113 GB, free: 16.83 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: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.005159/1.095, allocations: 1.458 MB / 1.114 GB, free: 15.97 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.312e-05/1.095, allocations: 18.2 kB / 1.114 GB, free: 15.96 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007314/1.096, allocations: 208.6 kB / 1.115 GB, free: 15.91 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/1.097, allocations: 242 kB / 1.115 GB, free: 15.83 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/1.1, allocations: 0.8446 MB / 1.116 GB, free: 15.48 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/1.1, allocations: 105.5 kB / 1.116 GB, free: 15.47 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003569/1.101, allocations: 132.4 kB / 1.116 GB, free: 15.47 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004248/1.105, allocations: 1.373 MB / 1.117 GB, free: 15.29 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.907e-05/1.105, allocations: 0 / 1.117 GB, free: 15.29 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/1.105, allocations: 56.88 kB / 1.117 GB, free: 15.29 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.839e-05/1.105, allocations: 37.3 kB / 1.117 GB, free: 15.29 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004346/1.11, allocations: 1.474 MB / 1.119 GB, free: 15.26 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01052/1.12, allocations: 3.598 MB / 1.122 GB, free: 14.28 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/1.123, allocations: 0.9556 MB / 1.123 GB, free: 14.22 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001692/1.123, allocations: 51.47 kB / 1.123 GB, free: 14.22 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001657/1.125, allocations: 0.5761 MB / 1.124 GB, free: 14.14 MB / 0.698 GB Notification: Performance of pre-optimization done (n=104): time 5.46e-06/1.125, allocations: 0 / 1.124 GB, free: 14.14 MB / 0.698 GB Notification: Performance of matching and sorting (n=104): time 0.006106/1.131, allocations: 1.48 MB / 1.125 GB, free: 13.92 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001472/1.131, allocations: 198.3 kB / 1.126 GB, free: 13.69 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001549/1.133, allocations: 0.7403 MB / 1.126 GB, free: 13.55 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.000332/1.133, allocations: 41.89 kB / 1.126 GB, free: 13.52 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006329/1.134, allocations: 0.564 MB / 1.127 GB, free: 13.25 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005915/1.135, allocations: 345.6 kB / 1.127 GB, free: 13.03 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.755e-05/1.135, allocations: 16.69 kB / 1.127 GB, free: 13.03 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001722/1.135, allocations: 344.9 kB / 1.128 GB, free: 12.72 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/1.136, allocations: 339.6 kB / 1.128 GB, free: 12.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001391/1.138, allocations: 458.6 kB / 1.128 GB, free: 12.56 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001422/1.139, allocations: 409 kB / 1.129 GB, free: 12.52 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/1.139, allocations: 0 / 1.129 GB, free: 12.52 MB / 0.698 GB Notification: Performance of matching and sorting (n=119) (initialization): time 0.004249/1.143, allocations: 1.061 MB / 1.13 GB, free: 12.28 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.185e-05/1.143, allocations: 9.406 kB / 1.13 GB, free: 12.28 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/1.143, allocations: 1.188 kB / 1.13 GB, free: 12.28 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009939/1.144, allocations: 88.91 kB / 1.13 GB, free: 12.24 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002085/1.146, allocations: 215 kB / 1.13 GB, free: 12.19 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003186/1.15, allocations: 1.548 MB / 1.132 GB, free: 10.82 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/1.152, allocations: 110.1 kB / 1.132 GB, free: 10.76 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/1.152, allocations: 44.52 kB / 1.132 GB, free: 10.75 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 (117): * Single equations (assignments): 116 * 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.001017/1.153, allocations: 304.5 kB / 1.132 GB, free: 10.61 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003741/1.153, allocations: 107.1 kB / 1.132 GB, free: 10.55 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005589/1.159, allocations: 1.412 MB / 1.133 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.262e-05/1.159, allocations: 11.19 kB / 1.133 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.269e-06/1.159, allocations: 1.312 kB / 1.133 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.138e-05/1.159, allocations: 3.984 kB / 1.133 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007803/1.167, allocations: 2.558 MB / 1.136 GB, free: 9.246 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.089e-05/1.167, allocations: 0 / 1.136 GB, free: 9.246 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/1.168, allocations: 200.4 kB / 1.136 GB, free: 9.207 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008867/1.169, allocations: 90.41 kB / 1.136 GB, free: 9.168 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/1.17, allocations: 28.08 kB / 1.136 GB, free: 9.164 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002962/1.173, allocations: 1.571 MB / 1.138 GB, free: 7.797 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.173, allocations: 3.938 kB / 1.138 GB, free: 7.793 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004593/1.177, allocations: 1.168 MB / 1.139 GB, free: 7.453 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/1.178, allocations: 355 kB / 1.139 GB, free: 7.219 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003784/1.179, allocations: 25.81 kB / 1.139 GB, free: 7.215 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/1.18, allocations: 74.78 kB / 1.139 GB, free: 7.195 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/1.181, allocations: 78.23 kB / 1.139 GB, free: 7.164 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001472/1.181, allocations: 42.59 kB / 1.139 GB, free: 7.156 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001398/1.182, allocations: 0.5532 MB / 1.14 GB, free: 6.984 MB / 0.698 GB Notification: Performance of sort global known variables: time 6.91e-07/1.182, allocations: 0 / 1.14 GB, free: 6.984 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0022/1.185, allocations: 378 kB / 1.14 GB, free: 6.906 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.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.006627/1.191, allocations: 2.18 MB / 1.143 GB, free: 5.875 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003829/1.195, allocations: 1 MB / 1.144 GB, free: 5.625 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.195, allocations: 0 / 1.144 GB, free: 5.625 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001993/1.197, allocations: 0.6126 MB / 1.144 GB, free: 5.426 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002374/1.2, allocations: 255.2 kB / 1.144 GB, free: 5.348 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02388/1.224, allocations: 6.895 MB / 1.151 GB, free: 1.965 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/1.225, allocations: 1.191 MB / 1.152 GB, free: 1.047 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002106/1.227, allocations: 289.3 kB / 1.153 GB, free: 0.9102 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001541/1.229, allocations: 0.5368 MB / 1.153 GB, free: 0.8398 MB / 0.698 GB Notification: Performance of SimCode: time 1.593e-06/1.229, allocations: 0 / 1.153 GB, free: 0.8398 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1025/1.331, allocations: 25.57 MB / 1.178 GB, free: 0.6445 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004327/1.332, allocations: 269 kB / 1.178 GB, free: 300 kB / 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_SolarGeometry_Examples_IncidenceAngle.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_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_SolarGeometry_Examples_IncidenceAngle_functions.o' failed make: *** [Buildings_8_0_0_Buildings_BoundaryConditions_SolarGeometry_Examples_IncidenceAngle_functions.o] Error 1