Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.98/1.98, allocations: 292.6 MB / 307.5 MB, free: 5.195 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.001808/0.001808, allocations: 183.2 kB / 377.1 MB, free: 1.52 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.271/2.271, allocations: 205.4 MB / 0.6366 GB, free: 8.609 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 83.73 kB / 0.7509 GB, free: 62.96 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.000395, allocations: 8 kB / 0.8748 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3221, allocations: 116.3 MB / 0.9884 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.512/7.834, allocations: 2.359 GB / 3.347 GB, free: 183.1 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002745/7.835, allocations: 99.39 kB / 3.347 GB, free: 183.1 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.907/11.74, allocations: 0.9276 GB / 4.275 GB, free: 118.1 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.304e-06/11.74, allocations: 0 / 4.275 GB, free: 118.1 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0008593/11.74, allocations: 127.2 kB / 4.275 GB, free: 118.1 MB / 0.948 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.01931/11.76, allocations: 5.081 MB / 4.28 GB, free: 116.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/11.76, allocations: 13.09 kB / 4.28 GB, free: 116.4 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002502/11.76, allocations: 0.5194 MB / 4.28 GB, free: 116.4 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009364/11.77, allocations: 1.253 MB / 4.282 GB, free: 116.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01573/11.79, allocations: 5.425 MB / 4.287 GB, free: 115.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003499/11.79, allocations: 287.2 kB / 4.287 GB, free: 115.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/11.79, allocations: 366.2 kB / 4.287 GB, free: 115.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0121/11.8, allocations: 5.349 MB / 4.293 GB, free: 114.9 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/11.8, allocations: 14.97 kB / 4.293 GB, free: 114.9 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005661/11.8, allocations: 160.1 kB / 4.293 GB, free: 114.9 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000133/11.8, allocations: 175.3 kB / 4.293 GB, free: 114.9 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/11.82, allocations: 5.227 MB / 4.298 GB, free: 114.8 MB / 0.948 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.03443/11.85, allocations: 19.58 MB / 4.317 GB, free: 108.2 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006954/11.86, allocations: 3.651 MB / 4.321 GB, free: 108.2 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001806/11.86, allocations: 1.866 MB / 4.323 GB, free: 106.2 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003938/11.86, allocations: 2.058 MB / 4.325 GB, free: 106.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=267): time 3.958e-06/11.86, allocations: 0 / 4.325 GB, free: 106.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=267): time 0.01169/11.88, allocations: 5.09 MB / 4.33 GB, free: 105.6 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.343e-05/11.88, allocations: 290.4 kB / 4.33 GB, free: 105.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005856/11.88, allocations: 3.464 MB / 4.333 GB, free: 105.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007387/11.88, allocations: 80.58 kB / 4.333 GB, free: 105 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001912/11.88, allocations: 1.964 MB / 4.335 GB, free: 104.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001166/11.89, allocations: 0.9103 MB / 4.336 GB, free: 103.8 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002/11.89, allocations: 58.56 kB / 4.336 GB, free: 103.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001588/11.89, allocations: 427.7 kB / 4.337 GB, free: 103.4 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003181/11.89, allocations: 1.548 MB / 4.338 GB, free: 103.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003507/11.89, allocations: 2.24 MB / 4.34 GB, free: 102.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0034/11.9, allocations: 1.893 MB / 4.342 GB, free: 102.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.217e-05/11.9, allocations: 6.531 kB / 4.342 GB, free: 102.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.009114/11.91, allocations: 4.361 MB / 4.346 GB, free: 102.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.00129/11.91, allocations: 7.412 MB / 4.354 GB, free: 94.56 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/11.91, allocations: 18.69 kB / 4.354 GB, free: 94.56 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006385/11.91, allocations: 118.5 kB / 4.354 GB, free: 94.55 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003951/11.91, allocations: 0.8055 MB / 4.355 GB, free: 94.54 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/11.91, allocations: 2.175 MB / 4.357 GB, free: 92.67 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005157/11.92, allocations: 0.5167 MB / 4.357 GB, free: 92.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004402/11.92, allocations: 147.3 kB / 4.357 GB, free: 92.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.05e-05/11.92, allocations: 6.188 kB / 4.357 GB, free: 92.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008142/11.93, allocations: 4.026 MB / 4.361 GB, free: 92.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.275e-05/11.93, allocations: 16.56 kB / 4.361 GB, free: 92.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005496/11.93, allocations: 116.1 kB / 4.361 GB, free: 92.39 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003653/11.93, allocations: 0.7972 MB / 4.362 GB, free: 92.39 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/11.93, allocations: 1.584 MB / 4.364 GB, free: 91.11 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005115/11.94, allocations: 495.6 kB / 4.364 GB, free: 90.96 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004509/11.94, allocations: 151.2 kB / 4.364 GB, free: 90.96 MB / 0.948 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 () * Number of clocked 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.003812/11.94, allocations: 1.506 MB / 4.366 GB, free: 90.76 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001558/11.94, allocations: 389.7 kB / 4.366 GB, free: 90.56 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/11.95, allocations: 4.356 MB / 4.37 GB, free: 90.32 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.283e-05/11.95, allocations: 27.06 kB / 4.37 GB, free: 90.32 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/11.95, allocations: 1.125 kB / 4.37 GB, free: 90.32 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008256/11.96, allocations: 3.487 MB / 4.374 GB, free: 89.97 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01977/11.98, allocations: 9.004 MB / 4.383 GB, free: 89.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/11.98, allocations: 7.953 kB / 4.383 GB, free: 89.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003464/11.99, allocations: 0.6343 MB / 4.383 GB, free: 89.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005444/11.99, allocations: 89.56 kB / 4.383 GB, free: 89.29 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002738/11.99, allocations: 90 kB / 4.383 GB, free: 89.29 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/11.99, allocations: 2.165 MB / 4.386 GB, free: 87.41 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/11.99, allocations: 1.375 kB / 4.386 GB, free: 87.41 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01429/12, allocations: 6.079 MB / 4.392 GB, free: 86.8 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005011/12.01, allocations: 1.084 MB / 4.393 GB, free: 86.46 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/12.01, allocations: 61.92 kB / 4.393 GB, free: 86.46 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004028/12.01, allocations: 332.7 kB / 4.393 GB, free: 86.45 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004016/12.01, allocations: 178.6 kB / 4.393 GB, free: 86.45 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003409/12.01, allocations: 135.9 kB / 4.393 GB, free: 86.45 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.005666/12.02, allocations: 2.734 MB / 4.396 GB, free: 86.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.71e-07/12.02, allocations: 0 / 4.396 GB, free: 86.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01042/12.03, allocations: 2.441 MB / 4.398 GB, free: 85.92 MB / 0.948 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) * Number of clocked states: 0 () * 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.01655/12.05, allocations: 8.343 MB / 4.406 GB, free: 84.39 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01321/12.06, allocations: 6.103 MB / 4.412 GB, free: 84.09 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/12.06, allocations: 6.547 kB / 4.412 GB, free: 84.09 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.004027/12.06, allocations: 1.96 MB / 4.414 GB, free: 83.96 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01097/12.08, allocations: 2.029 MB / 4.416 GB, free: 83.92 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03112/12.11, allocations: 26.1 MB / 4.442 GB, free: 65.48 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00391/12.11, allocations: 3.114 MB / 4.445 GB, free: 64.66 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.0098/12.12, allocations: 2.066 MB / 4.447 GB, free: 64.41 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004053/12.12, allocations: 1.9 MB / 4.449 GB, free: 64.4 MB / 0.948 GB Notification: Performance of SimCode: time 8.52e-07/12.12, allocations: 0 / 4.449 GB, free: 64.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1925/12.32, allocations: 130 MB / 4.576 GB, free: 21.72 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001545/12.32, allocations: 257.8 kB / 4.576 GB, free: 21.42 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular.o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular.c In file included from Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular.c:7: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_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 -falign-functions -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.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.c In file included from Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.c:2: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_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_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.c:7: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_functions.o] Error 1