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.206/2.206, allocations: 251 MB / 265.9 MB, free: 11.66 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.001505/0.001505, allocations: 181.8 kB / 325.5 MB, free: 2.895 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.385/2.385, allocations: 205.4 MB / 0.5764 GB, free: 20.82 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.001088/0.001088, allocations: 109.5 kB / 0.6809 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004832/0.0004831, allocations: 11.91 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2206, allocations: 106.3 MB / 0.8988 GB, free: 65.45 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.663/7.883, allocations: 2.474 GB / 3.373 GB, free: 44 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003529/7.884, allocations: 97.77 kB / 3.373 GB, free: 43.95 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 5.085/12.97, allocations: 0.9063 GB / 4.28 GB, free: 184.3 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.216e-06/12.97, allocations: 0 / 4.28 GB, free: 184.3 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0008733/12.97, allocations: 134.1 kB / 4.28 GB, free: 184.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: 967 * Number of variables: 967 Notification: Performance of Generate backend data structure: time 0.02216/12.99, allocations: 5.068 MB / 4.285 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/12.99, allocations: 12.03 kB / 4.285 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00264/12.99, allocations: 0.5205 MB / 4.285 GB, free: 178.6 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01319/13.01, allocations: 1.258 MB / 4.286 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02093/13.03, allocations: 5.408 MB / 4.292 GB, free: 171.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004073/13.03, allocations: 281 kB / 4.292 GB, free: 171.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/13.03, allocations: 373.5 kB / 4.292 GB, free: 171.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0209/13.05, allocations: 5.308 MB / 4.297 GB, free: 165.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001996/13.05, allocations: 7.938 kB / 4.297 GB, free: 165.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001262/13.05, allocations: 163.7 kB / 4.298 GB, free: 165.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002025/13.05, allocations: 171.2 kB / 4.298 GB, free: 165.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02132/13.08, allocations: 5.215 MB / 4.303 GB, free: 160.3 MB / 0.8855 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.04903/13.12, allocations: 19.55 MB / 4.322 GB, free: 140.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01365/13.14, allocations: 3.633 MB / 4.326 GB, free: 136.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002884/13.14, allocations: 1.867 MB / 4.327 GB, free: 134.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007994/13.15, allocations: 2.027 MB / 4.329 GB, free: 132.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=267): time 6.913e-06/13.15, allocations: 0 / 4.329 GB, free: 132.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=267): time 0.02419/13.17, allocations: 5.086 MB / 4.334 GB, free: 127.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/13.17, allocations: 283.1 kB / 4.335 GB, free: 126.9 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009453/13.18, allocations: 3.476 MB / 4.338 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.001032/13.18, allocations: 77.7 kB / 4.338 GB, free: 123.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.002904/13.19, allocations: 1.965 MB / 4.34 GB, free: 121.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001827/13.19, allocations: 0.9091 MB / 4.341 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004695/13.19, allocations: 60 kB / 4.341 GB, free: 120.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002705/13.19, allocations: 424 kB / 4.341 GB, free: 120 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006472/13.2, allocations: 1.548 MB / 4.343 GB, free: 118.4 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007423/13.2, allocations: 2.249 MB / 4.345 GB, free: 115.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007557/13.21, allocations: 1.887 MB / 4.347 GB, free: 114 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.377e-05/13.21, allocations: 4 kB / 4.347 GB, free: 114 MB / 0.8855 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.01854/13.23, allocations: 4.359 MB / 4.351 GB, free: 109.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001613/13.23, allocations: 7.41 MB / 4.358 GB, free: 101.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.946e-05/13.23, allocations: 16 kB / 4.358 GB, free: 101.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/13.23, allocations: 120.7 kB / 4.358 GB, free: 101.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00817/13.24, allocations: 0.8112 MB / 4.359 GB, free: 100.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003097/13.24, allocations: 2.184 MB / 4.361 GB, free: 98.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008024/13.25, allocations: 0.5236 MB / 4.362 GB, free: 97.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/13.25, allocations: 143.9 kB / 4.362 GB, free: 97.56 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/13.25, allocations: 4 kB / 4.362 GB, free: 97.55 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01671/13.27, allocations: 4.026 MB / 4.366 GB, free: 93.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.359e-05/13.27, allocations: 16 kB / 4.366 GB, free: 93.47 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009745/13.27, allocations: 121.4 kB / 4.366 GB, free: 93.35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007833/13.28, allocations: 0.7957 MB / 4.367 GB, free: 92.55 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/13.28, allocations: 1.579 MB / 4.368 GB, free: 90.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007689/13.29, allocations: 492.8 kB / 4.369 GB, free: 90.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/13.29, allocations: 143.9 kB / 4.369 GB, free: 90.21 MB / 0.8855 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.005285/13.3, allocations: 1.507 MB / 4.371 GB, free: 88.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/13.3, allocations: 387.4 kB / 4.371 GB, free: 88.31 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01829/13.32, allocations: 4.364 MB / 4.375 GB, free: 83.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-05/13.32, allocations: 28 kB / 4.375 GB, free: 83.88 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/13.32, allocations: 0 / 4.375 GB, free: 83.88 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01403/13.33, allocations: 3.492 MB / 4.379 GB, free: 80.29 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03258/13.36, allocations: 8.964 MB / 4.387 GB, free: 71.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/13.36, allocations: 0 / 4.387 GB, free: 71.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007065/13.37, allocations: 0.6436 MB / 4.388 GB, free: 70.62 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009233/13.37, allocations: 88.78 kB / 4.388 GB, free: 70.53 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007435/13.37, allocations: 91.91 kB / 4.388 GB, free: 70.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/13.37, allocations: 2.172 MB / 4.39 GB, free: 68.11 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/13.37, allocations: 4.031 kB / 4.39 GB, free: 68.11 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02391/13.4, allocations: 6.072 MB / 4.396 GB, free: 61.93 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004398/13.4, allocations: 1.065 MB / 4.397 GB, free: 60.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001961/13.4, allocations: 59.98 kB / 4.397 GB, free: 60.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00767/13.41, allocations: 339.3 kB / 4.398 GB, free: 60.45 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009327/13.41, allocations: 178 kB / 4.398 GB, free: 60.28 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006997/13.41, allocations: 120 kB / 4.398 GB, free: 60.16 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.007499/13.42, allocations: 2.744 MB / 4.401 GB, free: 57.43 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.81e-07/13.42, allocations: 0 / 4.401 GB, free: 57.43 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.01301/13.43, allocations: 2.425 MB / 4.403 GB, free: 55 MB / 0.8855 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.02905/13.46, allocations: 8.335 MB / 4.411 GB, free: 46.99 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02442/13.49, allocations: 6.097 MB / 4.417 GB, free: 40.84 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/13.49, allocations: 0.5625 kB / 4.417 GB, free: 40.84 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.007964/13.5, allocations: 1.952 MB / 4.419 GB, free: 38.88 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01674/13.51, allocations: 2.038 MB / 4.421 GB, free: 36.91 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04055/13.55, allocations: 26.11 MB / 4.446 GB, free: 9.785 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005781/13.56, allocations: 3.111 MB / 4.449 GB, free: 6.645 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01624/13.58, allocations: 2.053 MB / 4.451 GB, free: 4.66 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01321/13.59, allocations: 1.893 MB / 4.453 GB, free: 2.766 MB / 0.8855 GB Notification: Performance of SimCode: time 1.943e-06/13.59, allocations: 4 kB / 4.453 GB, free: 2.762 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9965/14.59, allocations: 129.4 MB / 4.58 GB, free: 161.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002156/14.59, allocations: 247.6 kB / 4.58 GB, free: 161.5 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_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: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_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: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_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