Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.21/2.21, allocations: 251 MB / 265.9 MB, free: 11.7 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.001536/0.001536, allocations: 178.7 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.47/2.47, allocations: 205.4 MB / 0.5764 GB, free: 20.81 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.001168/0.001168, allocations: 88.11 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000464/0.0004638, allocations: 12.72 kB / 0.795 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2142, allocations: 106.3 MB / 0.8988 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.402/7.616, allocations: 2.228 GB / 3.127 GB, free: 233.3 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003429/7.617, allocations: 101.1 kB / 3.127 GB, free: 233.3 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 7.783/15.4, allocations: 1.414 GB / 4.54 GB, free: 121.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.625e-06/15.4, allocations: 0 / 4.54 GB, free: 121.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0008864/15.4, allocations: 126.6 kB / 4.541 GB, free: 121.5 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.02677/15.43, allocations: 6.355 MB / 4.547 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/15.43, allocations: 11 kB / 4.547 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002727/15.43, allocations: 0.5342 MB / 4.547 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01924/15.45, allocations: 1.594 MB / 4.549 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02254/15.47, allocations: 5.258 MB / 4.554 GB, free: 118.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004386/15.47, allocations: 283.4 kB / 4.554 GB, free: 118.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001865/15.47, allocations: 370.8 kB / 4.555 GB, free: 118.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02008/15.49, allocations: 5.448 MB / 4.56 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000136/15.49, allocations: 3.375 kB / 4.56 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009403/15.5, allocations: 168.7 kB / 4.56 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001752/15.5, allocations: 157.7 kB / 4.56 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02183/15.52, allocations: 5.323 MB / 4.565 GB, free: 117.5 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.06147/15.58, allocations: 19.21 MB / 4.584 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02053/15.6, allocations: 3.812 MB / 4.588 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003478/15.6, allocations: 2.534 MB / 4.59 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008624/15.61, allocations: 2.124 MB / 4.592 GB, free: 109 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=284): time 7.073e-06/15.61, allocations: 2.688 kB / 4.592 GB, free: 109 MB / 0.8855 GB Notification: Performance of matching and sorting (n=284): time 0.03171/15.64, allocations: 6.822 MB / 4.599 GB, free: 107.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/15.64, allocations: 292.8 kB / 4.599 GB, free: 107.2 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008471/15.65, allocations: 3.354 MB / 4.603 GB, free: 107 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.001043/15.65, allocations: 80.55 kB / 4.603 GB, free: 107 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0026/15.66, allocations: 1.942 MB / 4.605 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.00199/15.66, allocations: 0.9712 MB / 4.606 GB, free: 105.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004659/15.66, allocations: 60.44 kB / 4.606 GB, free: 105.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0003024/15.66, allocations: 427.6 kB / 4.606 GB, free: 105.4 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00657/15.67, allocations: 1.597 MB / 4.608 GB, free: 105.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007836/15.67, allocations: 2.245 MB / 4.61 GB, free: 104.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007781/15.68, allocations: 1.941 MB / 4.612 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.808e-05/15.68, allocations: 3.125 kB / 4.612 GB, free: 104.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.0193/15.7, allocations: 4.472 MB / 4.616 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001494/15.7, allocations: 6.546 MB / 4.622 GB, free: 97.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.13e-05/15.7, allocations: 16.34 kB / 4.623 GB, free: 97.45 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/15.7, allocations: 114.6 kB / 4.623 GB, free: 97.44 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008122/15.71, allocations: 0.7944 MB / 4.623 GB, free: 97.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/15.71, allocations: 2.171 MB / 4.626 GB, free: 95.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009074/15.72, allocations: 0.5266 MB / 4.626 GB, free: 95.39 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/15.73, allocations: 162.4 kB / 4.626 GB, free: 95.39 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/15.73, allocations: 9.078 kB / 4.626 GB, free: 95.39 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01808/15.74, allocations: 4.13 MB / 4.63 GB, free: 95.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.363e-05/15.74, allocations: 16.19 kB / 4.63 GB, free: 95.02 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009817/15.74, allocations: 110.2 kB / 4.63 GB, free: 95 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007858/15.75, allocations: 0.7857 MB / 4.631 GB, free: 94.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002745/15.76, allocations: 1.572 MB / 4.633 GB, free: 93.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008804/15.76, allocations: 0.4897 MB / 4.633 GB, free: 93.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/15.77, allocations: 159 kB / 4.633 GB, free: 93.34 MB / 0.8855 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.005025/15.77, allocations: 1.534 MB / 4.635 GB, free: 92.61 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001778/15.77, allocations: 387.5 kB / 4.635 GB, free: 92.41 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02557/15.8, allocations: 5.13 MB / 4.64 GB, free: 90.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.292e-05/15.8, allocations: 43.88 kB / 4.64 GB, free: 90.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/15.8, allocations: 2.531 kB / 4.64 GB, free: 90.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01797/15.82, allocations: 4.067 MB / 4.644 GB, free: 88.99 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03467/15.85, allocations: 9.942 MB / 4.654 GB, free: 84.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.845e-05/15.85, allocations: 0 / 4.654 GB, free: 84.98 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006764/15.86, allocations: 0.6245 MB / 4.654 GB, free: 84.93 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004818/15.86, allocations: 0.6609 MB / 4.655 GB, free: 84.75 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008876/15.86, allocations: 97.64 kB / 4.655 GB, free: 84.71 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008053/15.87, allocations: 7.557 MB / 4.663 GB, free: 77.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/15.87, allocations: 6.375 kB / 4.663 GB, free: 77.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04079/15.91, allocations: 6.796 MB / 4.669 GB, free: 74.93 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005455/15.92, allocations: 1.14 MB / 4.67 GB, free: 74.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002154/15.92, allocations: 59.16 kB / 4.67 GB, free: 74.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01145/15.93, allocations: 326.4 kB / 4.671 GB, free: 74.16 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001486/15.93, allocations: 183.1 kB / 4.671 GB, free: 74.14 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001091/15.93, allocations: 135.9 kB / 4.671 GB, free: 74.12 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.01066/15.94, allocations: 2.645 MB / 4.674 GB, free: 73.19 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8.82e-07/15.94, allocations: 0 / 4.674 GB, free: 73.19 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0202/15.96, allocations: 2.86 MB / 4.676 GB, free: 72.45 MB / 0.8855 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.04742/16.01, allocations: 9 MB / 4.685 GB, free: 64.92 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02403/16.04, allocations: 6.293 MB / 4.691 GB, free: 59.53 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/16.04, allocations: 4.562 kB / 4.691 GB, free: 59.52 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.008504/16.05, allocations: 2.163 MB / 4.693 GB, free: 57.69 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01537/16.06, allocations: 1.932 MB / 4.695 GB, free: 56.34 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04107/16.1, allocations: 25.1 MB / 4.72 GB, free: 32.19 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00502/16.11, allocations: 3.147 MB / 4.723 GB, free: 29.78 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01723/16.12, allocations: 2.415 MB / 4.725 GB, free: 28.16 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008187/16.13, allocations: 1.926 MB / 4.727 GB, free: 26.43 MB / 0.8855 GB Notification: Performance of SimCode: time 1.533e-06/16.13, allocations: 0 / 4.727 GB, free: 26.43 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.029/17.16, allocations: 132.7 MB / 4.857 GB, free: 121.8 MB / 0.9167 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002648/17.16, allocations: 259.8 kB / 4.857 GB, free: 121.5 MB / 0.9167 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_FlatPlate.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c:7: In file included from ./Buildings_7_0_0_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 -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_FlatPlate_functions.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:2: In file included from ./Buildings_7_0_0_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_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_FlatPlate_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.o] Error 1