Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",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.18/2.18, allocations: 248.5 MB / 261 MB, free: 5.969 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.001398/0.001398, allocations: 186.2 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.2 MB / 0.571 GB, free: 11.84 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.001068/0.001068, allocations: 94.47 kB / 0.6754 GB, free: 0.9297 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.455e-05/4.46e-05, allocations: 7.984 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2185, allocations: 106.2 MB / 0.8907 GB, free: 7.473 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.427/7.645, allocations: 2.191 GB / 3.082 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/7.646, allocations: 88.2 kB / 3.082 GB, free: 142.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.2389/7.885, allocations: 63.94 MB / 3.144 GB, free: 82.82 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.813e-06/7.885, allocations: 4 kB / 3.144 GB, free: 82.82 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.778e-05/7.885, allocations: 31.94 kB / 3.145 GB, free: 82.79 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00245/7.887, allocations: 1.078 MB / 3.146 GB, free: 81.66 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/7.887, allocations: 8.031 kB / 3.146 GB, free: 81.65 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002213/7.888, allocations: 130.9 kB / 3.146 GB, free: 81.51 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/7.889, allocations: 190.5 kB / 3.146 GB, free: 81.32 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/7.891, allocations: 0.6315 MB / 3.147 GB, free: 80.65 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-05/7.891, allocations: 62 kB / 3.147 GB, free: 80.59 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/7.891, allocations: 76 kB / 3.147 GB, free: 80.52 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/7.893, allocations: 0.8326 MB / 3.147 GB, free: 79.64 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.788e-05/7.893, allocations: 0 / 3.147 GB, free: 79.64 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001261/7.893, allocations: 35.95 kB / 3.147 GB, free: 79.61 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/7.893, allocations: 20 kB / 3.148 GB, free: 79.59 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002259/7.895, allocations: 1.026 MB / 3.149 GB, free: 78.56 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006012/7.901, allocations: 2.481 MB / 3.151 GB, free: 76.02 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/7.903, allocations: 0.6998 MB / 3.152 GB, free: 75.3 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000654/7.904, allocations: 276.4 kB / 3.152 GB, free: 75.04 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002776/7.904, allocations: 113.9 kB / 3.152 GB, free: 74.9 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009151/7.905, allocations: 417.3 kB / 3.152 GB, free: 74.48 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=73): time 3.336e-06/7.905, allocations: 0 / 3.152 GB, free: 74.48 MB / 0.8698 GB Notification: Performance of matching and sorting (n=73): time 0.002618/7.908, allocations: 0.7108 MB / 3.153 GB, free: 73.76 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/7.908, allocations: 252.1 kB / 3.153 GB, free: 73.46 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001176/7.909, allocations: 0.5975 MB / 3.154 GB, free: 72.85 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001784/7.909, allocations: 41.7 kB / 3.154 GB, free: 72.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003633/7.91, allocations: 392.4 kB / 3.154 GB, free: 72.41 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002533/7.91, allocations: 252.4 kB / 3.155 GB, free: 72.16 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.938e-05/7.91, allocations: 16 kB / 3.155 GB, free: 72.15 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001325/7.91, allocations: 382.8 kB / 3.155 GB, free: 71.77 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005646/7.911, allocations: 209.5 kB / 3.155 GB, free: 71.56 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000676/7.911, allocations: 309.1 kB / 3.155 GB, free: 71.23 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/7.912, allocations: 254 kB / 3.156 GB, free: 70.98 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/7.912, allocations: 3.938 kB / 3.156 GB, free: 70.97 MB / 0.8698 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002511/7.915, allocations: 0.7148 MB / 3.156 GB, free: 70.25 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/7.915, allocations: 4 kB / 3.156 GB, free: 70.25 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/7.915, allocations: 0 / 3.156 GB, free: 70.25 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009661/7.916, allocations: 84.84 kB / 3.156 GB, free: 70.16 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/7.917, allocations: 143.8 kB / 3.157 GB, free: 70.02 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002558/7.919, allocations: 1.529 MB / 3.158 GB, free: 68.35 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/7.921, allocations: 75.44 kB / 3.158 GB, free: 68.27 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001387/7.921, allocations: 28.05 kB / 3.158 GB, free: 68.25 MB / 0.8698 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 () * 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.0002643/7.921, allocations: 153.5 kB / 3.158 GB, free: 68.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/7.921, allocations: 82.97 kB / 3.158 GB, free: 68.01 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003375/7.925, allocations: 0.9698 MB / 3.159 GB, free: 67.02 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/7.925, allocations: 8 kB / 3.159 GB, free: 67.01 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/7.925, allocations: 3.984 kB / 3.159 GB, free: 67.01 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/7.925, allocations: 11.94 kB / 3.159 GB, free: 67 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/7.926, allocations: 0.8917 MB / 3.16 GB, free: 66.05 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/7.927, allocations: 0 / 3.16 GB, free: 66.05 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/7.928, allocations: 147.8 kB / 3.16 GB, free: 65.91 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008602/7.929, allocations: 80.78 kB / 3.16 GB, free: 65.83 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/7.929, allocations: 31.97 kB / 3.161 GB, free: 65.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/7.931, allocations: 1.559 MB / 3.162 GB, free: 64.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/7.931, allocations: 3.953 kB / 3.162 GB, free: 64.1 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/7.934, allocations: 0.8168 MB / 3.163 GB, free: 63.26 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006545/7.934, allocations: 287.7 kB / 3.163 GB, free: 62.96 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001824/7.935, allocations: 27.94 kB / 3.163 GB, free: 62.93 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009798/7.936, allocations: 63.95 kB / 3.163 GB, free: 62.87 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/7.936, allocations: 64.69 kB / 3.163 GB, free: 62.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.062e-05/7.936, allocations: 28.12 kB / 3.163 GB, free: 62.78 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0008987/7.937, allocations: 499.1 kB / 3.164 GB, free: 62.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6.01e-07/7.937, allocations: 4 kB / 3.164 GB, free: 62.29 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001417/7.938, allocations: 347.1 kB / 3.164 GB, free: 61.95 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.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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.004941/7.943, allocations: 2.297 MB / 3.166 GB, free: 59.77 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.002133/7.945, allocations: 0.6981 MB / 3.167 GB, free: 59.06 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/7.946, allocations: 0 / 3.167 GB, free: 59.06 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001163/7.947, allocations: 478.9 kB / 3.167 GB, free: 58.58 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002044/7.949, allocations: 248.6 kB / 3.168 GB, free: 58.34 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006135/7.955, allocations: 1.583 MB / 3.169 GB, free: 56.71 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005475/7.956, allocations: 1.033 MB / 3.17 GB, free: 55.66 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001385/7.957, allocations: 258 kB / 3.171 GB, free: 55.4 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007434/7.958, allocations: 375.3 kB / 3.171 GB, free: 55.04 MB / 0.8698 GB Notification: Performance of SimCode: time 1.172e-06/7.958, allocations: 0 / 3.171 GB, free: 55.04 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1118/8.069, allocations: 32.1 MB / 3.202 GB, free: 23.16 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/8.07, allocations: 243.7 kB / 3.202 GB, free: 22.82 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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_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_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_functions.o] Error 1