Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.Tubular.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.Tubular,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular",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.418/2.418, allocations: 248.5 MB / 261.1 MB, free: 6.043 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.001529/0.001529, allocations: 190.6 kB / 320.4 MB, free: 15.35 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.964/1.964, allocations: 205.2 MB / 0.571 GB, free: 11.83 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.001095/0.001095, allocations: 100.5 kB / 0.6754 GB, free: 0.9219 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.246e-05/5.274e-05, allocations: 4 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.21/0.2101, allocations: 106.2 MB / 0.8907 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.246/8.456, allocations: 2.474 GB / 3.365 GB, free: 194.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003446/8.456, allocations: 90.89 kB / 3.365 GB, free: 194.8 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.964/13.42, allocations: 0.9037 GB / 4.269 GB, free: 129.9 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.954e-06/13.42, allocations: 0 / 4.269 GB, free: 129.9 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.001021/13.42, allocations: 125.9 kB / 4.269 GB, free: 129.9 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: 967 * Number of variables: 967 Notification: Performance of Generate backend data structure: time 0.01799/13.44, allocations: 4.259 MB / 4.273 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/13.44, allocations: 11.53 kB / 4.273 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002896/13.44, allocations: 0.5143 MB / 4.274 GB, free: 128.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01856/13.46, allocations: 1.241 MB / 4.275 GB, free: 128.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02597/13.49, allocations: 5.373 MB / 4.28 GB, free: 127.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004407/13.49, allocations: 280.5 kB / 4.28 GB, free: 127.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001963/13.49, allocations: 370.1 kB / 4.281 GB, free: 127.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01668/13.51, allocations: 4.986 MB / 4.286 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001571/13.51, allocations: 16.91 kB / 4.286 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009081/13.51, allocations: 157.3 kB / 4.286 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002141/13.51, allocations: 176.4 kB / 4.286 GB, free: 127 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01456/13.52, allocations: 4.636 MB / 4.29 GB, free: 126.9 MB / 0.8698 GB Warning: The model contains alias variables with conflicting start and/or 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.07322/13.6, allocations: 19.54 MB / 4.309 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01507/13.61, allocations: 3.27 MB / 4.313 GB, free: 120.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0044/13.62, allocations: 1.684 MB / 4.314 GB, free: 120.2 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002814/13.62, allocations: 1.862 MB / 4.316 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004698/13.62, allocations: 1.825 MB / 4.318 GB, free: 118.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=267): time 6.082e-06/13.62, allocations: 2.969 kB / 4.318 GB, free: 118.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=267): time 0.009805/13.63, allocations: 3.152 MB / 4.321 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/13.63, allocations: 288.5 kB / 4.321 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008025/13.64, allocations: 3.432 MB / 4.325 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0009429/13.64, allocations: 78.23 kB / 4.325 GB, free: 117.1 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.002517/13.64, allocations: 1.962 MB / 4.327 GB, free: 116.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001875/13.65, allocations: 0.9137 MB / 4.327 GB, free: 115.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004237/13.65, allocations: 58.94 kB / 4.328 GB, free: 115.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.000274/13.65, allocations: 426.7 kB / 4.328 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003942/13.65, allocations: 1.346 MB / 4.329 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/13.66, allocations: 2.029 MB / 4.331 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00512/13.66, allocations: 1.694 MB / 4.333 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.264e-05/13.66, allocations: 6.031 kB / 4.333 GB, free: 114.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.01494/13.68, allocations: 3.953 MB / 4.337 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001726/13.68, allocations: 7.416 MB / 4.344 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.348e-05/13.68, allocations: 14.62 kB / 4.344 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/13.68, allocations: 121.6 kB / 4.344 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008344/13.69, allocations: 0.802 MB / 4.345 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003129/13.69, allocations: 2.151 MB / 4.347 GB, free: 104.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008149/13.7, allocations: 0.5171 MB / 4.348 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/13.7, allocations: 145.4 kB / 4.348 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/13.7, allocations: 13.58 kB / 4.348 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01185/13.71, allocations: 3.614 MB / 4.351 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.937e-05/13.71, allocations: 17.22 kB / 4.351 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009635/13.71, allocations: 115 kB / 4.351 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007872/13.72, allocations: 0.796 MB / 4.352 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002606/13.72, allocations: 1.57 MB / 4.354 GB, free: 103.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009127/13.73, allocations: 496 kB / 4.354 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001217/13.73, allocations: 147.7 kB / 4.354 GB, free: 103.1 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (370): * Single equations (assignments): 368 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.00151/13.74, allocations: 284.5 kB / 4.355 GB, free: 103 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001816/13.74, allocations: 379.2 kB / 4.355 GB, free: 102.8 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01513/13.75, allocations: 3.953 MB / 4.359 GB, free: 102.5 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.904e-05/13.75, allocations: 27.06 kB / 4.359 GB, free: 102.5 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/13.75, allocations: 0 / 4.359 GB, free: 102.5 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01054/13.76, allocations: 3.087 MB / 4.362 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02758/13.79, allocations: 8.566 MB / 4.37 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/13.79, allocations: 0 / 4.37 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007052/13.8, allocations: 0.6439 MB / 4.371 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009106/13.8, allocations: 88.39 kB / 4.371 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008211/13.8, allocations: 89.92 kB / 4.371 GB, free: 101.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002712/13.8, allocations: 2.154 MB / 4.373 GB, free: 99.62 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/13.8, allocations: 3.688 kB / 4.373 GB, free: 99.62 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01745/13.82, allocations: 5.471 MB / 4.378 GB, free: 97.86 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00454/13.83, allocations: 1.074 MB / 4.379 GB, free: 97.23 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002108/13.83, allocations: 62.39 kB / 4.38 GB, free: 97.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008089/13.84, allocations: 329.1 kB / 4.38 GB, free: 97.14 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009324/13.84, allocations: 175.3 kB / 4.38 GB, free: 97.12 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005883/13.84, allocations: 120 kB / 4.38 GB, free: 97.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.007402/13.84, allocations: 2.701 MB / 4.383 GB, free: 96.11 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.343e-06/13.84, allocations: 0 / 4.383 GB, free: 96.11 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01291/13.86, allocations: 2.434 MB / 4.385 GB, free: 95.53 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 11 (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) * 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 (286): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.02271/13.88, allocations: 7.719 MB / 4.393 GB, free: 92.17 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01788/13.9, allocations: 5.599 MB / 4.398 GB, free: 90.13 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.344e-05/13.9, allocations: 6.828 kB / 4.398 GB, free: 90.13 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.005552/13.9, allocations: 1.754 MB / 4.4 GB, free: 89.46 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01709/13.92, allocations: 2.022 MB / 4.402 GB, free: 89.12 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0327/13.95, allocations: 9.084 MB / 4.411 GB, free: 86 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005286/13.96, allocations: 3.13 MB / 4.414 GB, free: 84.87 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.01982/13.98, allocations: 3.004 MB / 4.417 GB, free: 84.61 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00518/13.98, allocations: 1.816 MB / 4.418 GB, free: 83.2 MB / 0.8698 GB Notification: Performance of SimCode: time 1.262e-06/13.98, allocations: 0 / 4.418 GB, free: 83.2 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3066/14.29, allocations: 137.8 MB / 4.553 GB, free: 128 kB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003713/14.29, allocations: 221.6 kB / 4.553 GB, free: 15.9 MB / 0.9011 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_Examples_Tubular.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular_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_Examples_Tubular_functions.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular_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_Examples_Tubular_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular_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_Tubular_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.o] Error 1