Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.611/2.611, allocations: 287.3 MB / 302.3 MB, free: 8.316 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.001589/0.001588, allocations: 182.3 kB / 370.8 MB, free: 10.87 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.24/2.24, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001124/0.001124, allocations: 96.3 kB / 0.7428 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006725/0.0006728, allocations: 9.844 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2428, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.006668/0.2495, allocations: 4.205 MB / 0.9824 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.9052/1.155, allocations: 127.5 MB / 1.107 GB, free: 1.691 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/1.156, allocations: 16.44 kB / 1.107 GB, free: 1.688 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0005689/1.157, allocations: 88.67 kB / 1.107 GB, free: 1.645 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.002941/1.16, allocations: 0.5138 MB / 1.108 GB, free: 1.598 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.003565/1.163, allocations: 0.6868 MB / 1.108 GB, free: 1.566 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.002995/1.166, allocations: 0.9563 MB / 1.109 GB, free: 1.516 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002007/1.168, allocations: 0.8717 MB / 1.11 GB, free: 1.363 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001555/1.17, allocations: 449.4 kB / 1.11 GB, free: 1.242 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/1.171, allocations: 431.4 kB / 1.111 GB, free: 1.105 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0003298/1.172, allocations: 31.06 kB / 1.111 GB, free: 1.105 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001548/1.173, allocations: 253.1 kB / 1.111 GB, free: 1.102 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.0004545/1.174, allocations: 223.9 kB / 1.111 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.0006296/1.174, allocations: 265.3 kB / 1.112 GB, free: 0.9688 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.004426/1.179, allocations: 1.628 MB / 1.113 GB, free: 0.8555 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/1.179, allocations: 0 / 1.113 GB, free: 0.8555 MB / 0.6823 GB Notification: Performance of FrontEnd: time 4.549e-06/1.179, allocations: 0.9844 kB / 1.113 GB, free: 0.8555 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001035/1.179, allocations: 0 / 1.113 GB, free: 0.8555 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 364 * Number of variables: 364 Notification: Performance of Generate backend data structure: time 0.005832/1.185, allocations: 1.491 MB / 1.115 GB, free: 15.98 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/1.185, allocations: 9.938 kB / 1.115 GB, free: 15.98 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009819/1.186, allocations: 217.8 kB / 1.115 GB, free: 15.93 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/1.188, allocations: 248.7 kB / 1.115 GB, free: 15.84 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002955/1.191, allocations: 0.8698 MB / 1.116 GB, free: 15.49 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002252/1.191, allocations: 137.8 kB / 1.116 GB, free: 15.46 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004464/1.192, allocations: 143.8 kB / 1.116 GB, free: 15.45 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005135/1.197, allocations: 1.406 MB / 1.118 GB, free: 15.27 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.16e-05/1.197, allocations: 2.906 kB / 1.118 GB, free: 15.27 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002627/1.197, allocations: 63.36 kB / 1.118 GB, free: 15.27 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.01e-05/1.197, allocations: 33.69 kB / 1.118 GB, free: 15.27 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004875/1.202, allocations: 1.464 MB / 1.119 GB, free: 15.24 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01168/1.214, allocations: 3.787 MB / 1.123 GB, free: 14.22 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002916/1.217, allocations: 0.9105 MB / 1.124 GB, free: 14.17 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001601/1.217, allocations: 43.58 kB / 1.124 GB, free: 14.17 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001726/1.219, allocations: 0.5415 MB / 1.124 GB, free: 14.09 MB / 0.698 GB Notification: Performance of pre-optimization done (n=93): time 3.586e-06/1.219, allocations: 0 / 1.124 GB, free: 14.09 MB / 0.698 GB Notification: Performance of matching and sorting (n=93): time 0.005909/1.225, allocations: 1.383 MB / 1.126 GB, free: 13.86 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001462/1.225, allocations: 197.8 kB / 1.126 GB, free: 13.64 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/1.227, allocations: 0.7345 MB / 1.126 GB, free: 13.51 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.000362/1.227, allocations: 51.69 kB / 1.127 GB, free: 13.47 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006873/1.228, allocations: 0.58 MB / 1.127 GB, free: 13.19 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005586/1.228, allocations: 314.7 kB / 1.127 GB, free: 12.96 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.633e-05/1.228, allocations: 14.22 kB / 1.127 GB, free: 12.96 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001783/1.229, allocations: 344.7 kB / 1.128 GB, free: 12.64 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/1.23, allocations: 308.4 kB / 1.128 GB, free: 12.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/1.231, allocations: 425.6 kB / 1.128 GB, free: 12.46 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/1.232, allocations: 371.2 kB / 1.129 GB, free: 12.42 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/1.232, allocations: 4 kB / 1.129 GB, free: 12.42 MB / 0.698 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.004117/1.237, allocations: 0.9807 MB / 1.13 GB, free: 12.19 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/1.237, allocations: 5.438 kB / 1.13 GB, free: 12.19 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/1.237, allocations: 1.219 kB / 1.13 GB, free: 12.19 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/1.238, allocations: 80.53 kB / 1.13 GB, free: 12.16 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/1.24, allocations: 190.3 kB / 1.13 GB, free: 12.11 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/1.243, allocations: 1.551 MB / 1.132 GB, free: 10.74 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/1.245, allocations: 107.7 kB / 1.132 GB, free: 10.68 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/1.245, allocations: 37.91 kB / 1.132 GB, free: 10.67 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (103): * Single equations (assignments): 102 * 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.001262/1.246, allocations: 314.8 kB / 1.132 GB, free: 10.54 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004297/1.247, allocations: 93.53 kB / 1.132 GB, free: 10.49 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005589/1.253, allocations: 1.315 MB / 1.133 GB, free: 10.11 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.251e-05/1.253, allocations: 11.12 kB / 1.133 GB, free: 10.11 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.253, allocations: 4 kB / 1.133 GB, free: 10.1 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.161e-05/1.253, allocations: 5.391 kB / 1.133 GB, free: 10.1 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008414/1.261, allocations: 2.496 MB / 1.136 GB, free: 9.227 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/1.261, allocations: 0 / 1.136 GB, free: 9.227 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/1.263, allocations: 176.8 kB / 1.136 GB, free: 9.195 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009183/1.264, allocations: 87.36 kB / 1.136 GB, free: 9.16 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001969/1.264, allocations: 31.77 kB / 1.136 GB, free: 9.152 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003028/1.267, allocations: 1.577 MB / 1.138 GB, free: 7.773 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/1.267, allocations: 0 / 1.138 GB, free: 7.773 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004248/1.271, allocations: 1.121 MB / 1.139 GB, free: 7.434 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/1.272, allocations: 336.9 kB / 1.139 GB, free: 7.215 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/1.273, allocations: 25.8 kB / 1.139 GB, free: 7.211 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/1.274, allocations: 75.44 kB / 1.139 GB, free: 7.191 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002789/1.274, allocations: 77.52 kB / 1.139 GB, free: 7.16 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001382/1.275, allocations: 39.95 kB / 1.139 GB, free: 7.152 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.00131/1.276, allocations: 0.5436 MB / 1.14 GB, free: 6.984 MB / 0.698 GB Notification: Performance of sort global known variables: time 5.71e-07/1.276, allocations: 0 / 1.14 GB, free: 6.984 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002016/1.278, allocations: 381.5 kB / 1.14 GB, free: 6.895 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 (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.006274/1.284, allocations: 2.124 MB / 1.142 GB, free: 5.871 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.003503/1.288, allocations: 0.9363 MB / 1.143 GB, free: 5.625 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/1.288, allocations: 0 / 1.143 GB, free: 5.625 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.001873/1.29, allocations: 0.5773 MB / 1.144 GB, free: 5.438 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/1.292, allocations: 256 kB / 1.144 GB, free: 5.359 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01174/1.304, allocations: 4.106 MB / 1.148 GB, free: 2.676 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001182/1.305, allocations: 1.195 MB / 1.149 GB, free: 1.758 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.002046/1.307, allocations: 290.6 kB / 1.149 GB, free: 1.617 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001334/1.309, allocations: 0.5459 MB / 1.15 GB, free: 1.547 MB / 0.698 GB Notification: Performance of SimCode: time 1.363e-06/1.309, allocations: 0 / 1.15 GB, free: 1.547 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09796/1.407, allocations: 24.67 MB / 1.174 GB, free: 3.922 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003764/1.407, allocations: 286.1 kB / 1.174 GB, free: 3.562 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_Examples_DirectTiltedSurface.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.c:7: In file included from ./Buildings_8_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: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_Examples_DirectTiltedSurface_functions.o Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.c In file included from Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_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_Examples_DirectTiltedSurface_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_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_Examples_DirectTiltedSurface_functions.o' failed make: *** [Buildings_8_0_0_Buildings_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface_functions.o] Error 1