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.237/2.237, allocations: 251 MB / 265.9 MB, free: 11.67 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.001624/0.001624, allocations: 177.4 kB / 325.5 MB, free: 2.871 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.377/2.377, allocations: 205.4 MB / 0.5764 GB, free: 20.77 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.001266/0.001266, allocations: 94.39 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004886/0.0004885, allocations: 11.97 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2193, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.498/7.717, allocations: 2.191 GB / 3.09 GB, free: 246.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004047/7.718, allocations: 93.06 kB / 3.09 GB, free: 246.8 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.2594/7.977, allocations: 64.25 MB / 3.153 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.134e-06/7.977, allocations: 0 / 3.153 GB, free: 241.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.542e-05/7.978, allocations: 23.53 kB / 3.153 GB, free: 241.2 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.003105/7.981, allocations: 1.215 MB / 3.154 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/7.981, allocations: 7.812 kB / 3.154 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003569/7.981, allocations: 124.9 kB / 3.154 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/7.983, allocations: 203.7 kB / 3.155 GB, free: 240.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/7.984, allocations: 0.6264 MB / 3.155 GB, free: 240 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.915e-05/7.984, allocations: 62.3 kB / 3.155 GB, free: 240 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000157/7.985, allocations: 80.53 kB / 3.155 GB, free: 240 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00231/7.987, allocations: 0.8661 MB / 3.156 GB, free: 239.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/7.987, allocations: 0 / 3.156 GB, free: 239.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/7.987, allocations: 36.83 kB / 3.156 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/7.987, allocations: 23.47 kB / 3.156 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002795/7.99, allocations: 1.092 MB / 3.157 GB, free: 239.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006061/7.996, allocations: 2.46 MB / 3.16 GB, free: 238.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002021/7.998, allocations: 0.7575 MB / 3.16 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002723/7.998, allocations: 113.9 kB / 3.16 GB, free: 238.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/8, allocations: 446.6 kB / 3.161 GB, free: 238.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=73): time 4.108e-06/8, allocations: 3.875 kB / 3.161 GB, free: 238.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=73): time 0.005024/8.005, allocations: 1.147 MB / 3.162 GB, free: 237.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.996e-05/8.005, allocations: 239.7 kB / 3.162 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/8.006, allocations: 0.6235 MB / 3.163 GB, free: 237.3 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001482/8.006, allocations: 40.7 kB / 3.163 GB, free: 237.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/8.007, allocations: 390.4 kB / 3.163 GB, free: 237.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002348/8.007, allocations: 243.2 kB / 3.164 GB, free: 236.9 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.762e-05/8.007, allocations: 10.78 kB / 3.164 GB, free: 236.9 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001377/8.007, allocations: 383.1 kB / 3.164 GB, free: 236.6 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007793/8.008, allocations: 232.7 kB / 3.164 GB, free: 236.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008643/8.009, allocations: 345 kB / 3.164 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00086/8.01, allocations: 285.2 kB / 3.165 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/8.01, allocations: 3.906 kB / 3.165 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002909/8.013, allocations: 0.7526 MB / 3.165 GB, free: 236.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/8.013, allocations: 7.969 kB / 3.165 GB, free: 236.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/8.013, allocations: 3.906 kB / 3.165 GB, free: 236.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/8.014, allocations: 82.77 kB / 3.166 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/8.015, allocations: 140.4 kB / 3.166 GB, free: 236.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002636/8.017, allocations: 1.559 MB / 3.167 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001171/8.019, allocations: 77.59 kB / 3.167 GB, free: 234.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/8.019, allocations: 27.03 kB / 3.167 GB, free: 234.7 MB / 0.8855 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 () * Number of clocked 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.0007048/8.019, allocations: 256.7 kB / 3.168 GB, free: 234.6 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002335/8.02, allocations: 90.06 kB / 3.168 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003647/8.023, allocations: 1.022 MB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/8.023, allocations: 19.64 kB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/8.023, allocations: 0 / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/8.023, allocations: 3.984 kB / 3.169 GB, free: 234.2 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/8.025, allocations: 0.9101 MB / 3.17 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/8.025, allocations: 0 / 3.17 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/8.026, allocations: 149 kB / 3.17 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008827/8.027, allocations: 84.53 kB / 3.17 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/8.027, allocations: 24.97 kB / 3.17 GB, free: 233.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002529/8.03, allocations: 1.562 MB / 3.171 GB, free: 232.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/8.03, allocations: 0 / 3.171 GB, free: 232.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003265/8.033, allocations: 0.8879 MB / 3.172 GB, free: 232 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007639/8.034, allocations: 286.8 kB / 3.172 GB, free: 231.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/8.034, allocations: 19.02 kB / 3.172 GB, free: 231.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/8.035, allocations: 71.16 kB / 3.173 GB, free: 231.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/8.035, allocations: 59.55 kB / 3.173 GB, free: 231.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.242e-05/8.036, allocations: 34.97 kB / 3.173 GB, free: 231.8 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0009492/8.036, allocations: 0.4912 MB / 3.173 GB, free: 231.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.51e-07/8.036, allocations: 0 / 3.173 GB, free: 231.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001672/8.038, allocations: 345.6 kB / 3.173 GB, free: 231.6 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.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * 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.005582/8.044, allocations: 2.389 MB / 3.176 GB, free: 230.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003769/8.048, allocations: 0.7551 MB / 3.177 GB, free: 230.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/8.048, allocations: 3.906 kB / 3.177 GB, free: 230.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.002621/8.05, allocations: 0.493 MB / 3.177 GB, free: 229.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/8.054, allocations: 245.4 kB / 3.177 GB, free: 229.8 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01586/8.07, allocations: 5.317 MB / 3.182 GB, free: 227.4 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/8.07, allocations: 1.032 MB / 3.183 GB, free: 226.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.001461/8.072, allocations: 254.3 kB / 3.184 GB, free: 226.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007453/8.073, allocations: 374.3 kB / 3.184 GB, free: 226.3 MB / 0.8855 GB Notification: Performance of SimCode: time 8.92e-07/8.073, allocations: 0 / 3.184 GB, free: 226.3 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08475/8.157, allocations: 30.25 MB / 3.214 GB, free: 211.7 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002656/8.158, allocations: 273.9 kB / 3.214 GB, free: 211.4 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_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: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_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: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_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