Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.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.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",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.129/2.129, allocations: 251 MB / 265.9 MB, free: 11.69 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.001459/0.001459, allocations: 172.5 kB / 325.5 MB, free: 2.867 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.41/2.41, allocations: 205.4 MB / 0.5764 GB, free: 20.78 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.001201/0.0012, allocations: 101.4 kB / 0.6809 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004942/0.000494, allocations: 18.52 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2211, allocations: 106.3 MB / 0.8988 GB, free: 65.43 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.365/8.586, allocations: 2.528 GB / 3.427 GB, free: 219.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/8.586, allocations: 107.6 kB / 3.427 GB, free: 219.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 13.13/21.71, allocations: 2.466 GB / 5.893 GB, free: 48.98 MB / 0.9323 GB Notification: Performance of FrontEnd: time 2.925e-06/21.71, allocations: 0 / 5.893 GB, free: 48.98 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.00192/21.72, allocations: 263.2 kB / 5.893 GB, free: 48.94 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2036 * Number of variables: 2036 Notification: Performance of Generate backend data structure: time 0.05192/21.77, allocations: 10.78 MB / 5.904 GB, free: 44.76 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/21.77, allocations: 10.5 kB / 5.904 GB, free: 44.76 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006122/21.77, allocations: 1.069 MB / 5.905 GB, free: 44.67 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02112/21.8, allocations: 2.047 MB / 5.907 GB, free: 44.09 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04964/21.85, allocations: 11.79 MB / 5.918 GB, free: 42.86 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009938/21.85, allocations: 0.5995 MB / 5.919 GB, free: 42.84 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004416/21.85, allocations: 0.7972 MB / 5.92 GB, free: 42.84 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04371/21.89, allocations: 11.1 MB / 5.93 GB, free: 41.73 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006435/21.9, allocations: 31.06 kB / 5.93 GB, free: 41.73 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003802/21.9, allocations: 332.6 kB / 5.931 GB, free: 41.73 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004371/21.9, allocations: 338.9 kB / 5.931 GB, free: 41.71 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04203/21.94, allocations: 10.31 MB / 5.941 GB, free: 41.65 MB / 0.9323 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1226/22.06, allocations: 45.17 MB / 5.985 GB, free: 24.64 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0275/22.09, allocations: 7.917 MB / 5.993 GB, free: 24.36 MB / 0.9323 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt evalFunc (simulation): time 0.06373/22.16, allocations: 18.11 MB / 6.011 GB, free: 35.79 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01417/22.17, allocations: 3.544 MB / 6.014 GB, free: 35.62 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.008263/22.18, allocations: 0.7625 MB / 6.015 GB, free: 35.34 MB / 0.948 GB Notification: Performance of pre-optimization done (n=511): time 2.731e-05/22.18, allocations: 0 / 6.015 GB, free: 35.34 MB / 0.948 GB Notification: Performance of matching and sorting (n=511): time 0.0404/22.22, allocations: 9.417 MB / 6.024 GB, free: 34.59 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002303/22.22, allocations: 371.4 kB / 6.024 GB, free: 34.2 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02217/22.24, allocations: 7.137 MB / 6.031 GB, free: 33.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001908/22.24, allocations: 131.5 kB / 6.031 GB, free: 33.67 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007338/22.25, allocations: 4.364 MB / 6.036 GB, free: 32.15 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003465/22.25, allocations: 1.757 MB / 6.037 GB, free: 31.03 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001126/22.26, allocations: 128.8 kB / 6.038 GB, free: 31.03 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.00066/22.26, allocations: 0.5632 MB / 6.038 GB, free: 30.71 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01247/22.27, allocations: 3.314 MB / 6.041 GB, free: 30.7 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01454/22.28, allocations: 5.045 MB / 6.046 GB, free: 28.78 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0148/22.3, allocations: 4.191 MB / 6.05 GB, free: 28.64 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.04e-05/22.3, allocations: 13 kB / 6.05 GB, free: 28.64 MB / 0.948 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.03963/22.34, allocations: 9.467 MB / 6.06 GB, free: 27.97 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.01093/22.35, allocations: 23.76 MB / 6.083 GB, free: 18.91 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002958/22.35, allocations: 51.69 kB / 6.083 GB, free: 18.91 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008869/22.35, allocations: 165.6 kB / 6.083 GB, free: 18.9 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01546/22.37, allocations: 1.688 MB / 6.085 GB, free: 18.89 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/22.37, allocations: 0.7229 MB / 6.085 GB, free: 18.38 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01519/22.38, allocations: 0.6935 MB / 6.086 GB, free: 18.29 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002355/22.38, allocations: 311.9 kB / 6.086 GB, free: 18.29 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/22.38, allocations: 4.344 kB / 6.086 GB, free: 18.29 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0345/22.42, allocations: 8.752 MB / 6.095 GB, free: 18.04 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002041/22.42, allocations: 50.41 kB / 6.095 GB, free: 18.04 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006348/22.42, allocations: 169.7 kB / 6.095 GB, free: 18.03 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01503/22.43, allocations: 1.684 MB / 6.097 GB, free: 17.95 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001125/22.44, allocations: 0.7296 MB / 6.098 GB, free: 17.41 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01423/22.45, allocations: 0.6644 MB / 6.098 GB, free: 17.34 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002286/22.45, allocations: 309.7 kB / 6.098 GB, free: 17.34 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * 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 (821): * Single equations (assignments): 817 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.01132/22.46, allocations: 3.217 MB / 6.102 GB, free: 17.02 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003812/22.47, allocations: 0.7634 MB / 6.102 GB, free: 16.62 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03298/22.5, allocations: 7.88 MB / 6.11 GB, free: 14.52 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.483e-05/22.5, allocations: 59.27 kB / 6.11 GB, free: 14.51 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/22.5, allocations: 2.438 kB / 6.11 GB, free: 14.51 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0255/22.53, allocations: 6.242 MB / 6.116 GB, free: 12.02 MB / 0.9636 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06345/22.59, allocations: 17.16 MB / 6.133 GB, free: 5.18 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.939e-05/22.59, allocations: 2.625 kB / 6.133 GB, free: 5.18 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01204/22.6, allocations: 1.153 MB / 6.134 GB, free: 5.086 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006132/22.6, allocations: 95.52 kB / 6.134 GB, free: 5.059 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0015/22.6, allocations: 160.4 kB / 6.134 GB, free: 4.98 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001098/22.61, allocations: 0.6298 MB / 6.135 GB, free: 4.414 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/22.61, allocations: 1.938 kB / 6.135 GB, free: 4.414 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04429/22.65, allocations: 11.5 MB / 6.146 GB, free: 12.34 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009018/22.66, allocations: 1.91 MB / 6.148 GB, free: 10.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004547/22.66, allocations: 111.2 kB / 6.148 GB, free: 10.6 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01456/22.68, allocations: 0.581 MB / 6.149 GB, free: 10.17 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001994/22.68, allocations: 309.7 kB / 6.149 GB, free: 9.977 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002157/22.68, allocations: 215.9 kB / 6.149 GB, free: 9.809 MB / 0.9792 GB Notification: Performance of sorting global known variables: time 0.01965/22.7, allocations: 5.626 MB / 6.155 GB, free: 5.188 MB / 0.9792 GB Notification: Performance of sort global known variables: time 8.81e-07/22.7, allocations: 0 / 6.155 GB, free: 5.188 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.03191/22.73, allocations: 5.218 MB / 6.16 GB, free: 0 / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.x[1],pum.filter.x[2],exp.m,exp.H) * 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 (536): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.05561/22.79, allocations: 14.47 MB / 6.174 GB, free: 3.48 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.8705/23.66, allocations: 13.05 MB / 6.187 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-05/23.66, allocations: 7.266 kB / 6.187 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.01468/23.68, allocations: 3.391 MB / 6.19 GB, free: 106.9 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03634/23.71, allocations: 4.117 MB / 6.194 GB, free: 106.8 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08732/23.8, allocations: 61.89 MB / 6.254 GB, free: 62.77 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01419/23.81, allocations: 6.175 MB / 6.26 GB, free: 61.84 MB / 0.9948 GB Notification: Performance of simCode: alias equations: time 0.0301/23.84, allocations: 4.198 MB / 6.265 GB, free: 61.76 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01309/23.86, allocations: 4.125 MB / 6.269 GB, free: 61.75 MB / 0.9948 GB Notification: Performance of SimCode: time 1.403e-06/23.86, allocations: 4 kB / 6.269 GB, free: 61.75 MB / 0.9948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6193/24.48, allocations: 251.3 MB / 6.514 GB, free: 4.883 MB / 1.01 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003856/24.48, allocations: 257.6 kB / 6.514 GB, free: 4.527 MB / 1.01 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_Examples_FlatPlateWithTank.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_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_Examples_FlatPlateWithTank_functions.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_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_Examples_FlatPlateWithTank_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_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_Examples_FlatPlateWithTank_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank_functions.o] Error 1