Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.417/2.417, allocations: 284.7 MB / 297.2 MB, free: 6.352 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.001496/0.001495, allocations: 180.8 kB / 365.6 MB, free: 2.613 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.061/2.061, allocations: 205.1 MB / 0.6239 GB, free: 8.223 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.001097/0.001097, allocations: 94.08 kB / 0.7371 GB, free: 40.81 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.427e-05/3.468e-05, allocations: 4 kB / 0.8574 GB, free: 13.67 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8005/0.8006, allocations: 115.2 MB / 0.9699 GB, free: 78.26 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.927/7.728, allocations: 2.357 GB / 3.327 GB, free: 98.55 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002961/7.728, allocations: 91.7 kB / 3.328 GB, free: 98.51 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 5.079/12.81, allocations: 0.9262 GB / 4.254 GB, free: 178.1 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.753e-06/12.81, allocations: 0 / 4.254 GB, free: 178.1 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0008489/12.81, allocations: 134.4 kB / 4.254 GB, free: 178 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.01691/12.83, allocations: 4.27 MB / 4.258 GB, free: 176.6 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.387e-05/12.83, allocations: 8.469 kB / 4.258 GB, free: 176.6 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002259/12.83, allocations: 0.5229 MB / 4.259 GB, free: 176.5 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01338/12.84, allocations: 1.248 MB / 4.26 GB, free: 176.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02169/12.86, allocations: 5.388 MB / 4.265 GB, free: 175.6 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004718/12.86, allocations: 279.2 kB / 4.265 GB, free: 175.6 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002165/12.87, allocations: 378.8 kB / 4.266 GB, free: 175.6 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01854/12.88, allocations: 5.032 MB / 4.271 GB, free: 175 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002127/12.88, allocations: 8.062 kB / 4.271 GB, free: 175 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001342/12.89, allocations: 155.7 kB / 4.271 GB, free: 175 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002157/12.89, allocations: 178.2 kB / 4.271 GB, free: 175 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/12.9, allocations: 4.638 MB / 4.275 GB, free: 175 MB / 0.948 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.05164/12.95, allocations: 19.31 MB / 4.294 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009757/12.96, allocations: 3.223 MB / 4.297 GB, free: 168.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004891/12.97, allocations: 1.683 MB / 4.299 GB, free: 168.5 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002957/12.97, allocations: 1.863 MB / 4.301 GB, free: 166.6 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005476/12.98, allocations: 1.838 MB / 4.303 GB, free: 166.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=264): time 6.542e-06/12.98, allocations: 1.406 kB / 4.303 GB, free: 166.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=264): time 0.01116/12.99, allocations: 3.122 MB / 4.306 GB, free: 166.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001187/12.99, allocations: 290.7 kB / 4.306 GB, free: 165.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008904/13, allocations: 3.44 MB / 4.309 GB, free: 164.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001017/13, allocations: 74.86 kB / 4.309 GB, free: 164.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002815/13, allocations: 1.971 MB / 4.311 GB, free: 163.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001754/13, allocations: 0.9032 MB / 4.312 GB, free: 162.4 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004326/13, allocations: 62.09 kB / 4.312 GB, free: 162.4 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002421/13, allocations: 433.5 kB / 4.313 GB, free: 162 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003828/13.01, allocations: 1.338 MB / 4.314 GB, free: 161.5 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004866/13.01, allocations: 2.049 MB / 4.316 GB, free: 160.2 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004801/13.02, allocations: 1.692 MB / 4.318 GB, free: 159.6 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.993e-05/13.02, allocations: 3.781 kB / 4.318 GB, free: 159.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01387/13.03, allocations: 3.959 MB / 4.322 GB, free: 158.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002235/13.03, allocations: 7.412 MB / 4.329 GB, free: 150.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.203e-05/13.03, allocations: 19.34 kB / 4.329 GB, free: 150.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/13.03, allocations: 116.6 kB / 4.329 GB, free: 150.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01171/13.05, allocations: 0.8016 MB / 4.33 GB, free: 150.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003835/13.05, allocations: 1.565 MB / 4.331 GB, free: 148.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01205/13.06, allocations: 0.5291 MB / 4.332 GB, free: 148.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/13.06, allocations: 147.3 kB / 4.332 GB, free: 148.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/13.06, allocations: 3.906 kB / 4.332 GB, free: 148.5 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01449/13.08, allocations: 3.622 MB / 4.335 GB, free: 147.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.074e-05/13.08, allocations: 16.44 kB / 4.335 GB, free: 147.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000939/13.08, allocations: 117.7 kB / 4.336 GB, free: 147.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007621/13.09, allocations: 0.8087 MB / 4.336 GB, free: 147.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00258/13.09, allocations: 1.564 MB / 4.338 GB, free: 145.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007815/13.1, allocations: 490.3 kB / 4.338 GB, free: 145.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/13.1, allocations: 144.5 kB / 4.338 GB, free: 145.6 MB / 0.948 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.001223/13.1, allocations: 284.7 kB / 4.339 GB, free: 145.4 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001676/13.1, allocations: 382.8 kB / 4.339 GB, free: 145.2 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01358/13.11, allocations: 3.936 MB / 4.343 GB, free: 143.7 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.42e-05/13.11, allocations: 26.19 kB / 4.343 GB, free: 143.7 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/13.11, allocations: 3.938 kB / 4.343 GB, free: 143.7 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009235/13.12, allocations: 3.067 MB / 4.346 GB, free: 142.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02728/13.15, allocations: 8.867 MB / 4.355 GB, free: 138.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.137e-05/13.15, allocations: 3.469 kB / 4.355 GB, free: 138.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007001/13.16, allocations: 0.6337 MB / 4.355 GB, free: 138.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009157/13.16, allocations: 99.97 kB / 4.355 GB, free: 138.6 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008605/13.16, allocations: 94.23 kB / 4.355 GB, free: 138.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002429/13.16, allocations: 1.567 MB / 4.357 GB, free: 137.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/13.16, allocations: 7.953 kB / 4.357 GB, free: 137.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0165/13.18, allocations: 5.831 MB / 4.363 GB, free: 134.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004463/13.18, allocations: 1.088 MB / 4.364 GB, free: 133.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001982/13.19, allocations: 62.12 kB / 4.364 GB, free: 133.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00767/13.19, allocations: 309.2 kB / 4.364 GB, free: 133.5 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009189/13.19, allocations: 191.6 kB / 4.364 GB, free: 133.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006287/13.2, allocations: 130.2 kB / 4.364 GB, free: 133.4 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.007276/13.2, allocations: 2.701 MB / 4.367 GB, free: 132.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.71e-07/13.2, allocations: 0 / 4.367 GB, free: 132.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01298/13.22, allocations: 2.443 MB / 4.369 GB, free: 131.9 MB / 0.948 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.02107/13.24, allocations: 8.803 MB / 4.378 GB, free: 127.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01606/13.25, allocations: 5.589 MB / 4.383 GB, free: 125.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.739e-05/13.25, allocations: 3.938 kB / 4.383 GB, free: 125.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.005071/13.26, allocations: 1.748 MB / 4.385 GB, free: 124.4 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01668/13.27, allocations: 2.03 MB / 4.387 GB, free: 123.9 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02973/13.3, allocations: 9.198 MB / 4.396 GB, free: 116 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004273/13.31, allocations: 3.123 MB / 4.399 GB, free: 113.6 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01817/13.33, allocations: 3.016 MB / 4.402 GB, free: 111.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004974/13.33, allocations: 1.813 MB / 4.404 GB, free: 110.1 MB / 0.948 GB Notification: Performance of SimCode: time 1.363e-06/13.33, allocations: 0 / 4.404 GB, free: 110.1 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.035/14.37, allocations: 138.1 MB / 4.539 GB, free: 169.4 MB / 0.9636 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002946/14.37, allocations: 235.8 kB / 4.539 GB, free: 169.1 MB / 0.9636 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 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.c In file included from Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.c:7: In file included from ./Buildings_8_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 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c In file included from Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c:2: In file included from ./Buildings_8_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_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.o' failed make: *** [Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.o] Error 1