Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",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.223/2.223, allocations: 248.5 MB / 261.1 MB, free: 5.988 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.001489/0.001489, allocations: 170.8 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 2.049/2.049, allocations: 205.2 MB / 0.571 GB, free: 11.73 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.001226/0.001225, allocations: 96.72 kB / 0.6754 GB, free: 0.8242 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.76e-05/4.789e-05, allocations: 8 kB / 0.7869 GB, free: 97.81 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.213/0.2131, allocations: 106.3 MB / 0.8907 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.217/8.43, allocations: 2.474 GB / 3.365 GB, free: 264.4 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/8.43, allocations: 93.12 kB / 3.365 GB, free: 264.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 4.476/12.91, allocations: 0.9049 GB / 4.27 GB, free: 90.98 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.874e-06/12.91, allocations: 0 / 4.27 GB, free: 90.98 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000868/12.91, allocations: 127.8 kB / 4.27 GB, free: 90.85 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01739/12.92, allocations: 4.269 MB / 4.274 GB, free: 86.52 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/12.92, allocations: 8.031 kB / 4.274 GB, free: 86.51 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002504/12.93, allocations: 0.5105 MB / 4.275 GB, free: 85.99 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01303/12.94, allocations: 1.247 MB / 4.276 GB, free: 84.74 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02274/12.96, allocations: 5.362 MB / 4.281 GB, free: 79.31 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004021/12.96, allocations: 275.4 kB / 4.282 GB, free: 79.04 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00186/12.97, allocations: 391.8 kB / 4.282 GB, free: 78.66 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01773/12.98, allocations: 4.979 MB / 4.287 GB, free: 73.51 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000241/12.98, allocations: 11.84 kB / 4.287 GB, free: 73.5 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001585/12.99, allocations: 159.9 kB / 4.287 GB, free: 73.34 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002114/12.99, allocations: 179.1 kB / 4.287 GB, free: 73.16 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/13, allocations: 4.635 MB / 4.292 GB, free: 68.52 MB / 0.8855 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.05342/13.05, allocations: 19.27 MB / 4.31 GB, free: 48.65 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008949/13.06, allocations: 3.209 MB / 4.314 GB, free: 45.45 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004711/13.07, allocations: 1.679 MB / 4.315 GB, free: 43.75 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002927/13.07, allocations: 1.861 MB / 4.317 GB, free: 41.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005631/13.08, allocations: 1.812 MB / 4.319 GB, free: 39.64 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=264): time 8.135e-06/13.08, allocations: 0 / 4.319 GB, free: 39.64 MB / 0.8855 GB Notification: Performance of matching and sorting (n=264): time 0.01171/13.09, allocations: 3.123 MB / 4.322 GB, free: 36.46 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/13.09, allocations: 295.1 kB / 4.322 GB, free: 36.11 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009022/13.1, allocations: 3.433 MB / 4.325 GB, free: 32.69 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0009787/13.1, allocations: 85.69 kB / 4.326 GB, free: 32.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.002886/13.1, allocations: 1.967 MB / 4.327 GB, free: 30.61 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001703/13.1, allocations: 0.8973 MB / 4.328 GB, free: 29.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004132/13.1, allocations: 56 kB / 4.328 GB, free: 29.64 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002507/13.1, allocations: 424 kB / 4.329 GB, free: 29.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003837/13.11, allocations: 1.353 MB / 4.33 GB, free: 27.87 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004855/13.11, allocations: 2.034 MB / 4.332 GB, free: 25.55 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005058/13.12, allocations: 1.703 MB / 4.334 GB, free: 23.83 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.548e-05/13.12, allocations: 4 kB / 4.334 GB, free: 23.83 MB / 0.8855 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01432/13.13, allocations: 3.954 MB / 4.338 GB, free: 19.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001569/13.13, allocations: 7.412 MB / 4.345 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.413e-05/13.13, allocations: 16 kB / 4.345 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/13.14, allocations: 116.8 kB / 4.345 GB, free: 11.64 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007923/13.14, allocations: 0.8034 MB / 4.346 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/13.15, allocations: 1.567 MB / 4.347 GB, free: 9.125 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008267/13.15, allocations: 0.5353 MB / 4.348 GB, free: 8.586 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001086/13.16, allocations: 143.9 kB / 4.348 GB, free: 8.445 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/13.16, allocations: 4 kB / 4.348 GB, free: 8.441 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01237/13.17, allocations: 3.625 MB / 4.352 GB, free: 4.777 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.131e-05/13.17, allocations: 16.22 kB / 4.352 GB, free: 4.762 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009628/13.17, allocations: 120.7 kB / 4.352 GB, free: 4.641 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007995/13.18, allocations: 0.7996 MB / 4.352 GB, free: 3.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/13.18, allocations: 1.567 MB / 4.354 GB, free: 2.133 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007942/13.19, allocations: 488.8 kB / 4.354 GB, free: 1.652 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/13.19, allocations: 155.9 kB / 4.355 GB, free: 1.5 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (371): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.001291/13.19, allocations: 284.1 kB / 4.355 GB, free: 1.215 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001816/13.19, allocations: 379.3 kB / 4.355 GB, free: 0.8398 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.6888/13.88, allocations: 3.931 MB / 4.359 GB, free: 157 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-05/13.88, allocations: 30.69 kB / 4.359 GB, free: 157 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/13.88, allocations: 0 / 4.359 GB, free: 157 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01251/13.89, allocations: 3.062 MB / 4.362 GB, free: 156.6 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03381/13.93, allocations: 8.82 MB / 4.371 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.573e-05/13.93, allocations: 7.969 kB / 4.371 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007306/13.93, allocations: 0.6288 MB / 4.371 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009808/13.94, allocations: 101.5 kB / 4.371 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009059/13.94, allocations: 85.52 kB / 4.371 GB, free: 155.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/13.94, allocations: 1.57 MB / 4.373 GB, free: 154.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.347e-06/13.94, allocations: 10.14 kB / 4.373 GB, free: 154.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02037/13.96, allocations: 5.834 MB / 4.379 GB, free: 153.6 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005381/13.97, allocations: 1.072 MB / 4.38 GB, free: 153.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002581/13.97, allocations: 62.33 kB / 4.38 GB, free: 153.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007873/13.98, allocations: 312.2 kB / 4.38 GB, free: 153.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001053/13.98, allocations: 185 kB / 4.38 GB, free: 153.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006896/13.98, allocations: 131.7 kB / 4.38 GB, free: 153.3 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.008977/13.99, allocations: 2.702 MB / 4.383 GB, free: 153.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8.02e-07/13.99, allocations: 0 / 4.383 GB, free: 153.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.01407/14, allocations: 2.439 MB / 4.385 GB, free: 153 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (283): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.02529/14.03, allocations: 8.798 MB / 4.394 GB, free: 150.4 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0182/14.04, allocations: 5.594 MB / 4.399 GB, free: 150.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.749e-05/14.04, allocations: 4.312 kB / 4.4 GB, free: 150.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.005451/14.05, allocations: 1.74 MB / 4.401 GB, free: 149.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0171/14.07, allocations: 2.021 MB / 4.403 GB, free: 149.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/14.1, allocations: 9.185 MB / 4.412 GB, free: 148.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00534/14.1, allocations: 3.121 MB / 4.415 GB, free: 147.5 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0192/14.12, allocations: 3.013 MB / 4.418 GB, free: 147.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005093/14.13, allocations: 1.801 MB / 4.42 GB, free: 147.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.954e-06/14.13, allocations: 0 / 4.42 GB, free: 147.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3682/14.5, allocations: 137.5 MB / 4.554 GB, free: 107.6 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/14.5, allocations: 233.1 kB / 4.554 GB, free: 107.3 MB / 0.8855 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_FlatPlateShaCoeTrue.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_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_FlatPlateShaCoeTrue_functions.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_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_FlatPlateShaCoeTrue_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_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_FlatPlateShaCoeTrue_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.o] Error 1