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.341/2.341, 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.001541/0.001541, allocations: 178.1 kB / 325.5 MB, free: 2.918 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.418/2.418, 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.001154/0.001154, allocations: 96.17 kB / 0.6809 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000467/0.0004669, allocations: 12.06 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2188, allocations: 106.3 MB / 0.8988 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.863/8.082, allocations: 2.474 GB / 3.373 GB, free: 44.41 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003551/8.082, allocations: 100.2 kB / 3.373 GB, free: 44.36 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 5.104/13.19, allocations: 0.9075 GB / 4.281 GB, free: 183.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.906e-06/13.19, allocations: 0 / 4.281 GB, free: 183.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0008882/13.19, allocations: 126.7 kB / 4.281 GB, free: 183.7 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.02171/13.21, allocations: 5.086 MB / 4.286 GB, free: 178.6 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.113e-05/13.21, allocations: 12.03 kB / 4.286 GB, free: 178.6 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00245/13.21, allocations: 0.5183 MB / 4.286 GB, free: 178 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01308/13.23, allocations: 1.261 MB / 4.288 GB, free: 176.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02039/13.25, allocations: 5.393 MB / 4.293 GB, free: 171.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004436/13.25, allocations: 283.4 kB / 4.293 GB, free: 171.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001915/13.25, allocations: 377.8 kB / 4.294 GB, free: 170.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02065/13.27, allocations: 5.312 MB / 4.299 GB, free: 165.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000209/13.27, allocations: 11.94 kB / 4.299 GB, free: 165.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001357/13.27, allocations: 152 kB / 4.299 GB, free: 165.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002092/13.27, allocations: 175.1 kB / 4.299 GB, free: 165 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/13.29, allocations: 5.243 MB / 4.304 GB, free: 159.7 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.04944/13.34, allocations: 19.28 MB / 4.323 GB, free: 140.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0132/13.35, allocations: 3.607 MB / 4.326 GB, free: 136.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002854/13.36, allocations: 1.867 MB / 4.328 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007574/13.37, allocations: 2.027 MB / 4.33 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=264): time 6.402e-06/13.37, allocations: 0 / 4.33 GB, free: 132.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=264): time 0.02244/13.39, allocations: 5.084 MB / 4.335 GB, free: 127 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/13.39, allocations: 291.1 kB / 4.336 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008895/13.4, allocations: 3.48 MB / 4.339 GB, free: 123.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0009728/13.4, allocations: 81.7 kB / 4.339 GB, free: 123.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.002894/13.4, allocations: 1.967 MB / 4.341 GB, free: 121.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001993/13.4, allocations: 0.8961 MB / 4.342 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005147/13.4, allocations: 62.25 kB / 4.342 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0003136/13.4, allocations: 428 kB / 4.342 GB, free: 119.8 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00678/13.41, allocations: 1.559 MB / 4.344 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00755/13.42, allocations: 2.26 MB / 4.346 GB, free: 115.6 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007805/13.43, allocations: 1.895 MB / 4.348 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.758e-05/13.43, allocations: 4 kB / 4.348 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.0189/13.44, allocations: 4.387 MB / 4.352 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001689/13.45, allocations: 7.412 MB / 4.359 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-05/13.45, allocations: 16 kB / 4.359 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/13.45, allocations: 116.8 kB / 4.36 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007823/13.46, allocations: 0.7995 MB / 4.36 GB, free: 100.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00282/13.46, allocations: 1.597 MB / 4.362 GB, free: 98.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00798/13.47, allocations: 0.5237 MB / 4.362 GB, free: 98.04 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009583/13.47, allocations: 147.9 kB / 4.363 GB, free: 97.9 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/13.47, allocations: 4 kB / 4.363 GB, free: 97.89 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01588/13.48, allocations: 4.054 MB / 4.366 GB, free: 93.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.349e-05/13.48, allocations: 18.16 kB / 4.366 GB, free: 93.79 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009653/13.48, allocations: 121 kB / 4.367 GB, free: 93.66 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007798/13.49, allocations: 0.7995 MB / 4.367 GB, free: 92.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/13.5, allocations: 1.578 MB / 4.369 GB, free: 91.15 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007742/13.5, allocations: 492.8 kB / 4.369 GB, free: 90.67 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/13.5, allocations: 147.9 kB / 4.37 GB, free: 90.52 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 (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.004641/13.51, allocations: 1.503 MB / 4.371 GB, free: 89.01 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001521/13.51, allocations: 383.3 kB / 4.371 GB, free: 88.63 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01858/13.53, allocations: 4.36 MB / 4.376 GB, free: 84.22 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-05/13.53, allocations: 32 kB / 4.376 GB, free: 84.19 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/13.53, allocations: 0 / 4.376 GB, free: 84.19 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01414/13.54, allocations: 3.488 MB / 4.379 GB, free: 80.61 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03096/13.57, allocations: 9.245 MB / 4.388 GB, free: 71.23 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.135e-05/13.57, allocations: 8.031 kB / 4.388 GB, free: 71.23 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006932/13.58, allocations: 0.6319 MB / 4.389 GB, free: 70.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009695/13.58, allocations: 100.6 kB / 4.389 GB, free: 70.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008633/13.58, allocations: 99.88 kB / 4.389 GB, free: 70.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00257/13.59, allocations: 1.575 MB / 4.39 GB, free: 68.69 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/13.59, allocations: 11.88 kB / 4.39 GB, free: 68.68 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02352/13.61, allocations: 6.463 MB / 4.397 GB, free: 61.98 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004004/13.61, allocations: 1.073 MB / 4.398 GB, free: 60.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001595/13.61, allocations: 56 kB / 4.398 GB, free: 60.83 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007286/13.62, allocations: 315.4 kB / 4.398 GB, free: 60.52 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009332/13.62, allocations: 189.8 kB / 4.398 GB, free: 60.34 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000593/13.62, allocations: 123.9 kB / 4.398 GB, free: 60.21 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.007283/13.63, allocations: 2.744 MB / 4.401 GB, free: 57.49 MB / 0.8855 GB Notification: Performance of sort global known variables: time 8.81e-07/13.63, allocations: 0 / 4.401 GB, free: 57.49 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.01235/13.64, allocations: 2.435 MB / 4.404 GB, free: 55.05 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) * Number of clocked states: 0 () * 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.02904/13.67, allocations: 9.454 MB / 4.413 GB, free: 45.81 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02371/13.7, allocations: 6.115 MB / 4.419 GB, free: 39.64 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.667e-05/13.7, allocations: 8.5 kB / 4.419 GB, free: 39.64 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.007741/13.7, allocations: 1.952 MB / 4.421 GB, free: 37.67 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01637/13.72, allocations: 2.012 MB / 4.423 GB, free: 35.73 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03999/13.76, allocations: 26.14 MB / 4.448 GB, free: 8.551 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004719/13.77, allocations: 3.123 MB / 4.451 GB, free: 5.398 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01319/13.78, allocations: 2.051 MB / 4.453 GB, free: 3.41 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005957/13.78, allocations: 1.881 MB / 4.455 GB, free: 1.527 MB / 0.8855 GB Notification: Performance of SimCode: time 1.082e-06/13.78, allocations: 0 / 4.455 GB, free: 1.527 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.026/14.81, allocations: 129.1 MB / 4.581 GB, free: 161.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002843/14.81, allocations: 273.9 kB / 4.581 GB, free: 160.8 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_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: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_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: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_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