Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.829/1.829, allocations: 292.6 MB / 307.5 MB, free: 5.191 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.001216/0.001216, allocations: 194.3 kB / 377.1 MB, free: 1.508 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.038/2.038, allocations: 205.4 MB / 0.6366 GB, free: 8.602 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.001113/0.001113, allocations: 107.2 kB / 0.7509 GB, free: 62.99 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004187, allocations: 15.98 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3863/0.3868, allocations: 116.3 MB / 0.9884 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.162/6.549, allocations: 2.111 GB / 3.099 GB, free: 121.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004375/6.549, allocations: 96.61 kB / 3.099 GB, free: 121.5 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 6.567/13.12, allocations: 1.414 GB / 4.513 GB, free: 121 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.785e-06/13.12, allocations: 4 kB / 4.513 GB, free: 121 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.001222/13.12, allocations: 128.5 kB / 4.513 GB, free: 121 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.02741/13.15, allocations: 6.358 MB / 4.52 GB, free: 117.5 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.967e-05/13.15, allocations: 10.38 kB / 4.52 GB, free: 117.5 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00349/13.15, allocations: 0.5227 MB / 4.52 GB, free: 117.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.014/13.16, allocations: 1.601 MB / 4.522 GB, free: 116.9 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01797/13.18, allocations: 5.248 MB / 4.527 GB, free: 114.8 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004591/13.18, allocations: 285.7 kB / 4.527 GB, free: 114.7 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002261/13.18, allocations: 377 kB / 4.527 GB, free: 114.5 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01705/13.2, allocations: 5.449 MB / 4.533 GB, free: 112.3 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.239e-05/13.2, allocations: 7.844 kB / 4.533 GB, free: 112.2 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000664/13.2, allocations: 162.7 kB / 4.533 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001253/13.2, allocations: 152.8 kB / 4.533 GB, free: 112.1 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0144/13.22, allocations: 5.329 MB / 4.538 GB, free: 110.5 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.03976/13.26, allocations: 19.21 MB / 4.557 GB, free: 96.73 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007769/13.26, allocations: 3.83 MB / 4.561 GB, free: 92.91 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002283/13.27, allocations: 2.532 MB / 4.563 GB, free: 89.86 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004766/13.27, allocations: 2.112 MB / 4.565 GB, free: 87.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=284): time 6.773e-06/13.27, allocations: 0 / 4.565 GB, free: 87.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=284): time 0.01665/13.29, allocations: 6.834 MB / 4.572 GB, free: 80.62 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/13.29, allocations: 287.3 kB / 4.572 GB, free: 80.28 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00655/13.29, allocations: 3.359 MB / 4.576 GB, free: 76.94 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001102/13.3, allocations: 81.7 kB / 4.576 GB, free: 76.85 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00204/13.3, allocations: 1.945 MB / 4.578 GB, free: 74.89 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001806/13.3, allocations: 0.9623 MB / 4.579 GB, free: 73.94 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002314/13.3, allocations: 56 kB / 4.579 GB, free: 73.88 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002377/13.3, allocations: 428.1 kB / 4.579 GB, free: 73.46 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/13.3, allocations: 1.599 MB / 4.581 GB, free: 71.86 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/13.31, allocations: 2.245 MB / 4.583 GB, free: 69.37 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004057/13.31, allocations: 1.936 MB / 4.585 GB, free: 67.41 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/13.31, allocations: 8 kB / 4.585 GB, free: 67.41 MB / 0.948 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.01108/13.32, allocations: 4.472 MB / 4.589 GB, free: 62.89 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001592/13.32, allocations: 6.546 MB / 4.595 GB, free: 55.79 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.301e-05/13.32, allocations: 20 kB / 4.595 GB, free: 55.77 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006552/13.33, allocations: 107.4 kB / 4.595 GB, free: 55.67 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004276/13.33, allocations: 0.7956 MB / 4.596 GB, free: 54.87 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/13.33, allocations: 2.174 MB / 4.598 GB, free: 52.54 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006296/13.34, allocations: 0.5314 MB / 4.599 GB, free: 52 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007561/13.34, allocations: 159.9 kB / 4.599 GB, free: 51.85 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/13.34, allocations: 4 kB / 4.599 GB, free: 51.84 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009077/13.35, allocations: 4.127 MB / 4.603 GB, free: 47.68 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/13.35, allocations: 16 kB / 4.603 GB, free: 47.66 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005756/13.35, allocations: 117.4 kB / 4.603 GB, free: 47.55 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003928/13.35, allocations: 0.784 MB / 4.604 GB, free: 46.76 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001736/13.35, allocations: 1.582 MB / 4.606 GB, free: 45.04 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006036/13.36, allocations: 0.493 MB / 4.606 GB, free: 44.55 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007143/13.36, allocations: 159.9 kB / 4.606 GB, free: 44.39 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (378): * Single equations (assignments): 376 * 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.003834/13.36, allocations: 1.521 MB / 4.608 GB, free: 42.86 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001496/13.37, allocations: 387.3 kB / 4.608 GB, free: 42.48 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/13.38, allocations: 5.14 MB / 4.613 GB, free: 37.29 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.674e-05/13.38, allocations: 32 kB / 4.613 GB, free: 37.25 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/13.38, allocations: 0 / 4.613 GB, free: 37.25 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008683/13.39, allocations: 4.063 MB / 4.617 GB, free: 33.08 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02177/13.41, allocations: 9.955 MB / 4.627 GB, free: 23.04 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/13.41, allocations: 0 / 4.627 GB, free: 23.04 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003316/13.41, allocations: 0.6164 MB / 4.627 GB, free: 22.43 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002787/13.42, allocations: 0.6738 MB / 4.628 GB, free: 21.73 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004592/13.42, allocations: 95.91 kB / 4.628 GB, free: 21.63 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004343/13.42, allocations: 7.559 MB / 4.635 GB, free: 13.69 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/13.42, allocations: 0 / 4.635 GB, free: 13.69 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01636/13.44, allocations: 6.8 MB / 4.642 GB, free: 6.773 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004214/13.44, allocations: 1.136 MB / 4.643 GB, free: 5.613 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001911/13.44, allocations: 63.98 kB / 4.643 GB, free: 5.551 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005285/13.45, allocations: 315.5 kB / 4.644 GB, free: 5.242 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006394/13.45, allocations: 194 kB / 4.644 GB, free: 5.051 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006516/13.45, allocations: 131.9 kB / 4.644 GB, free: 4.922 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.005939/13.46, allocations: 2.647 MB / 4.647 GB, free: 2.293 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.71e-07/13.46, allocations: 0 / 4.647 GB, free: 2.293 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01424/13.47, allocations: 2.867 MB / 4.649 GB, free: 15.42 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (272): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.02082/13.49, allocations: 8.986 MB / 4.658 GB, free: 6.629 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0164/13.51, allocations: 6.293 MB / 4.664 GB, free: 292 kB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.48e-05/13.51, allocations: 8.562 kB / 4.664 GB, free: 284 kB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.005392/13.51, allocations: 2.153 MB / 4.666 GB, free: 14.11 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01065/13.52, allocations: 1.929 MB / 4.668 GB, free: 12.25 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7198/14.24, allocations: 25.1 MB / 4.693 GB, free: 129.7 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005614/14.25, allocations: 3.145 MB / 4.696 GB, free: 128.9 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.01427/14.26, allocations: 2.407 MB / 4.698 GB, free: 128.9 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008135/14.27, allocations: 1.938 MB / 4.7 GB, free: 128.9 MB / 0.9792 GB Notification: Performance of SimCode: time 1.439e-05/14.27, allocations: 2.781 kB / 4.7 GB, free: 128.9 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3479/14.62, allocations: 132.7 MB / 4.83 GB, free: 123.7 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/14.62, allocations: 243.7 kB / 4.83 GB, free: 123.4 MB / 0.9792 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_FlatPlate.o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c In file included from Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c:7: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_FlatPlate_functions.o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c In file included from Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:2: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_FlatPlate_functions.c:7: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_FlatPlate_functions.o] Error 1