Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.893/1.893, allocations: 289.7 MB / 302.2 MB, free: 2.164 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.002032/0.002032, allocations: 178.1 kB / 371.6 MB, free: 3.398 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.897/1.897, allocations: 205.2 MB / 0.6309 GB, free: 11.75 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.001099/0.001099, allocations: 91.59 kB / 0.745 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 5.676e-05/5.697e-05, allocations: 4 kB / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3801/0.3802, allocations: 116.3 MB / 0.9799 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.818/8.198, allocations: 2.359 GB / 3.338 GB, free: 241.7 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003795/8.199, allocations: 88.98 kB / 3.339 GB, free: 241.6 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.383/11.58, allocations: 0.9262 GB / 4.265 GB, free: 34.54 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.793e-06/11.58, allocations: 0 / 4.265 GB, free: 34.54 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0009183/11.58, allocations: 131.8 kB / 4.265 GB, free: 34.41 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.01516/11.6, allocations: 4.268 MB / 4.269 GB, free: 30.07 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/11.6, allocations: 8.031 kB / 4.269 GB, free: 30.07 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002457/11.6, allocations: 0.5105 MB / 4.27 GB, free: 29.55 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008921/11.61, allocations: 1.25 MB / 4.271 GB, free: 28.29 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01583/11.63, allocations: 5.39 MB / 4.276 GB, free: 22.83 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003586/11.63, allocations: 275.4 kB / 4.276 GB, free: 22.56 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002119/11.63, allocations: 383.9 kB / 4.277 GB, free: 22.19 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01383/11.64, allocations: 5.029 MB / 4.282 GB, free: 17 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/11.64, allocations: 11.84 kB / 4.282 GB, free: 16.98 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000676/11.64, allocations: 160 kB / 4.282 GB, free: 16.83 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/11.64, allocations: 183.1 kB / 4.282 GB, free: 16.65 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009135/11.65, allocations: 4.631 MB / 4.286 GB, free: 12.01 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.7924/12.44, allocations: 19.32 MB / 4.305 GB, free: 112 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008065/12.45, allocations: 3.213 MB / 4.308 GB, free: 111.9 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004284/12.46, allocations: 1.678 MB / 4.31 GB, free: 111.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002075/12.46, allocations: 1.857 MB / 4.312 GB, free: 109.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004553/12.46, allocations: 1.846 MB / 4.314 GB, free: 109.8 MB / 0.948 GB Notification: Performance of pre-optimization done (n=264): time 8.606e-06/12.46, allocations: 0.5625 kB / 4.314 GB, free: 109.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=264): time 0.009976/12.47, allocations: 3.123 MB / 4.317 GB, free: 109.7 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001931/12.47, allocations: 287 kB / 4.317 GB, free: 109.3 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01236/12.49, allocations: 3.441 MB / 4.32 GB, free: 109.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001262/12.49, allocations: 79.52 kB / 4.32 GB, free: 109.1 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003557/12.49, allocations: 1.973 MB / 4.322 GB, free: 108.6 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001903/12.49, allocations: 0.9047 MB / 4.323 GB, free: 108.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/12.49, allocations: 58.34 kB / 4.323 GB, free: 108.1 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002802/12.49, allocations: 428.6 kB / 4.324 GB, free: 107.8 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002427/12.5, allocations: 1.348 MB / 4.325 GB, free: 107.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002851/12.5, allocations: 2.037 MB / 4.327 GB, free: 107.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003297/12.5, allocations: 1.694 MB / 4.329 GB, free: 107 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.119e-05/12.5, allocations: 6.188 kB / 4.329 GB, free: 107 MB / 0.948 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.009036/12.51, allocations: 3.956 MB / 4.333 GB, free: 106.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001913/12.51, allocations: 7.408 MB / 4.34 GB, free: 98.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.6e-05/12.51, allocations: 17.94 kB / 4.34 GB, free: 98.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006725/12.51, allocations: 121.5 kB / 4.34 GB, free: 98.89 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/12.52, allocations: 0.8019 MB / 4.341 GB, free: 98.89 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002005/12.52, allocations: 1.563 MB / 4.342 GB, free: 97.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005876/12.53, allocations: 0.5313 MB / 4.343 GB, free: 97.51 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006342/12.53, allocations: 147.6 kB / 4.343 GB, free: 97.51 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/12.53, allocations: 4.25 kB / 4.343 GB, free: 97.51 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006849/12.53, allocations: 3.623 MB / 4.346 GB, free: 97.41 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.014e-05/12.53, allocations: 18.38 kB / 4.346 GB, free: 97.41 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005564/12.53, allocations: 112.9 kB / 4.347 GB, free: 97.41 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/12.54, allocations: 0.8017 MB / 4.347 GB, free: 97.41 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/12.54, allocations: 1.566 MB / 4.349 GB, free: 96.12 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006211/12.55, allocations: 492.7 kB / 4.349 GB, free: 96.04 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006157/12.55, allocations: 147.6 kB / 4.349 GB, free: 96.04 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.001257/12.55, allocations: 283.7 kB / 4.35 GB, free: 95.93 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001889/12.55, allocations: 384.4 kB / 4.35 GB, free: 95.74 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008446/12.56, allocations: 3.938 MB / 4.354 GB, free: 95.52 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-05/12.56, allocations: 35.52 kB / 4.354 GB, free: 95.52 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/12.56, allocations: 0 / 4.354 GB, free: 95.52 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004814/12.56, allocations: 3.063 MB / 4.357 GB, free: 95.16 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01927/12.58, allocations: 8.861 MB / 4.366 GB, free: 94.3 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.307e-05/12.58, allocations: 3.156 kB / 4.366 GB, free: 94.3 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/12.59, allocations: 0.6349 MB / 4.366 GB, free: 94.3 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005159/12.59, allocations: 95.39 kB / 4.366 GB, free: 94.3 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000271/12.59, allocations: 92.88 kB / 4.366 GB, free: 94.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/12.59, allocations: 1.57 MB / 4.368 GB, free: 93 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/12.59, allocations: 3.156 kB / 4.368 GB, free: 93 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009386/12.6, allocations: 5.835 MB / 4.374 GB, free: 91.88 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004175/12.6, allocations: 1.086 MB / 4.375 GB, free: 91.58 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001658/12.6, allocations: 67.56 kB / 4.375 GB, free: 91.58 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004836/12.61, allocations: 311.4 kB / 4.375 GB, free: 91.57 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004326/12.61, allocations: 183.2 kB / 4.375 GB, free: 91.57 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004103/12.61, allocations: 135.2 kB / 4.375 GB, free: 91.57 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.0048/12.61, allocations: 2.706 MB / 4.378 GB, free: 91.4 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.91e-07/12.61, allocations: 0 / 4.378 GB, free: 91.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01029/12.62, allocations: 2.444 MB / 4.38 GB, free: 91.24 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.01333/12.64, allocations: 8.8 MB / 4.389 GB, free: 88.55 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01146/12.65, allocations: 5.593 MB / 4.394 GB, free: 88.23 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-05/12.65, allocations: 0.7812 kB / 4.394 GB, free: 88.23 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003372/12.65, allocations: 1.751 MB / 4.396 GB, free: 88.11 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01271/12.67, allocations: 2.014 MB / 4.398 GB, free: 88.07 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02898/12.69, allocations: 9.188 MB / 4.407 GB, free: 86.4 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003432/12.7, allocations: 3.124 MB / 4.41 GB, free: 85.62 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01326/12.71, allocations: 3.033 MB / 4.413 GB, free: 85.58 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004247/12.72, allocations: 1.803 MB / 4.415 GB, free: 85.57 MB / 0.948 GB Notification: Performance of SimCode: time 9.51e-07/12.72, allocations: 3.25 kB / 4.415 GB, free: 85.57 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2554/12.97, allocations: 138.1 MB / 4.55 GB, free: 70.18 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/12.97, allocations: 230.1 kB / 4.55 GB, free: 69.91 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.c In file included from Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue.c:7: In file included from ./Buildings_8_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 -falign-functions -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.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.o Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c In file included from Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c:2: In file included from ./Buildings_8_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_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_functions.c:7: In file included from ./Buildings_8_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue_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_FlatPlateShaCoeTrue_functions.o] Error 1