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.903/1.903, allocations: 292.6 MB / 307.5 MB, free: 5.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.001225/0.001224, allocations: 189 kB / 377.1 MB, free: 1.508 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.924/1.924, allocations: 205.4 MB / 0.6366 GB, free: 9.531 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.0009803/0.0009806, allocations: 89.02 kB / 0.7509 GB, free: 62.45 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004258/0.0004258, allocations: 12 kB / 0.8748 GB, free: 11.25 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3535, allocations: 116.3 MB / 0.9884 GB, free: 6.785 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.197/7.551, allocations: 2.359 GB / 3.347 GB, free: 224.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003364/7.552, allocations: 104.5 kB / 3.347 GB, free: 224.5 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 3.704/11.26, allocations: 0.9288 GB / 4.276 GB, free: 16.39 MB / 0.948 GB Notification: Performance of FrontEnd: time 4.027e-06/11.26, allocations: 0 / 4.276 GB, free: 16.39 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.001086/11.26, allocations: 127.8 kB / 4.276 GB, free: 16.27 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.02366/11.28, allocations: 5.094 MB / 4.281 GB, free: 11.1 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/11.28, allocations: 15.97 kB / 4.281 GB, free: 11.08 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003245/11.28, allocations: 0.5222 MB / 4.282 GB, free: 10.55 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009188/11.29, allocations: 1.254 MB / 4.283 GB, free: 9.289 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01705/11.31, allocations: 5.417 MB / 4.288 GB, free: 3.805 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004016/11.31, allocations: 279.4 kB / 4.288 GB, free: 3.531 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002118/11.31, allocations: 375.9 kB / 4.289 GB, free: 3.164 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.8297/12.14, allocations: 5.352 MB / 4.294 GB, free: 112.6 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/12.14, allocations: 10.17 kB / 4.294 GB, free: 112.6 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006079/12.14, allocations: 162.8 kB / 4.294 GB, free: 112.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002268/12.14, allocations: 169.3 kB / 4.294 GB, free: 112.6 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01415/12.16, allocations: 5.244 MB / 4.299 GB, free: 112.6 MB / 0.948 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.05759/12.22, allocations: 19.32 MB / 4.318 GB, free: 106.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01253/12.23, allocations: 3.606 MB / 4.322 GB, free: 106.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002874/12.23, allocations: 1.856 MB / 4.324 GB, free: 104.6 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006477/12.24, allocations: 2.055 MB / 4.326 GB, free: 104.5 MB / 0.948 GB Notification: Performance of pre-optimization done (n=264): time 1.565e-05/12.24, allocations: 0.6562 kB / 4.326 GB, free: 104.5 MB / 0.948 GB Notification: Performance of matching and sorting (n=264): time 0.01924/12.26, allocations: 5.086 MB / 4.331 GB, free: 104.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001332/12.26, allocations: 290.9 kB / 4.331 GB, free: 103.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009603/12.27, allocations: 3.477 MB / 4.334 GB, free: 103.5 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001173/12.27, allocations: 79.2 kB / 4.334 GB, free: 103.5 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002981/12.27, allocations: 1.978 MB / 4.336 GB, free: 103 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001903/12.27, allocations: 0.8976 MB / 4.337 GB, free: 102.5 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000795/12.27, allocations: 60.28 kB / 4.337 GB, free: 102.5 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0003512/12.27, allocations: 424.9 kB / 4.338 GB, free: 102.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004381/12.28, allocations: 1.562 MB / 4.339 GB, free: 102.2 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004833/12.28, allocations: 2.258 MB / 4.341 GB, free: 101.5 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004707/12.29, allocations: 1.9 MB / 4.343 GB, free: 101.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.057e-05/12.29, allocations: 6.594 kB / 4.343 GB, free: 101.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01253/12.3, allocations: 4.398 MB / 4.347 GB, free: 101.1 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001958/12.3, allocations: 7.411 MB / 4.355 GB, free: 93.32 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-05/12.3, allocations: 15.62 kB / 4.355 GB, free: 93.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007403/12.3, allocations: 111.5 kB / 4.355 GB, free: 93.31 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/12.31, allocations: 0.8041 MB / 4.356 GB, free: 93.31 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/12.31, allocations: 1.579 MB / 4.357 GB, free: 92.02 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006377/12.32, allocations: 0.5234 MB / 4.358 GB, free: 91.93 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009146/12.32, allocations: 147.6 kB / 4.358 GB, free: 91.93 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/12.32, allocations: 9.438 kB / 4.358 GB, free: 91.93 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0121/12.33, allocations: 4.053 MB / 4.362 GB, free: 91.84 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.562e-05/12.33, allocations: 20.16 kB / 4.362 GB, free: 91.84 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007381/12.33, allocations: 117.2 kB / 4.362 GB, free: 91.82 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004413/12.33, allocations: 0.8054 MB / 4.363 GB, free: 91.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/12.34, allocations: 1.581 MB / 4.364 GB, free: 90.54 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005829/12.34, allocations: 489.2 kB / 4.365 GB, free: 90.46 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009618/12.34, allocations: 147.2 kB / 4.365 GB, free: 90.46 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 () * 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.005437/12.35, allocations: 1.511 MB / 4.366 GB, free: 90.27 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00236/12.35, allocations: 385.1 kB / 4.367 GB, free: 90.08 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01438/12.37, allocations: 4.355 MB / 4.371 GB, free: 89.86 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.145e-05/12.37, allocations: 33.22 kB / 4.371 GB, free: 89.86 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.908e-05/12.37, allocations: 0 / 4.371 GB, free: 89.86 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009641/12.38, allocations: 3.485 MB / 4.374 GB, free: 89.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02986/12.41, allocations: 9.281 MB / 4.383 GB, free: 88.63 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/12.41, allocations: 2.75 kB / 4.383 GB, free: 88.63 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003849/12.41, allocations: 0.6358 MB / 4.384 GB, free: 88.63 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006202/12.41, allocations: 102.5 kB / 4.384 GB, free: 88.62 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006779/12.41, allocations: 89.2 kB / 4.384 GB, free: 88.62 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001851/12.41, allocations: 1.58 MB / 4.386 GB, free: 87.33 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/12.41, allocations: 10.56 kB / 4.386 GB, free: 87.33 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01598/12.43, allocations: 6.467 MB / 4.392 GB, free: 86.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004501/12.43, allocations: 1.09 MB / 4.393 GB, free: 85.9 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002125/12.44, allocations: 62.34 kB / 4.393 GB, free: 85.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005516/12.44, allocations: 305.7 kB / 4.394 GB, free: 85.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006546/12.44, allocations: 184.1 kB / 4.394 GB, free: 85.89 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007278/12.44, allocations: 137.7 kB / 4.394 GB, free: 85.89 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.007153/12.45, allocations: 2.737 MB / 4.397 GB, free: 85.75 MB / 0.948 GB Notification: Performance of sort global known variables: time 8.72e-07/12.45, allocations: 3.594 kB / 4.397 GB, free: 85.75 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01371/12.46, allocations: 2.449 MB / 4.399 GB, free: 85.58 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) * 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.02387/12.49, allocations: 9.46 MB / 4.408 GB, free: 82.93 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01943/12.51, allocations: 6.115 MB / 4.414 GB, free: 82.61 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.948e-05/12.51, allocations: 4.156 kB / 4.414 GB, free: 82.61 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00656/12.51, allocations: 1.957 MB / 4.416 GB, free: 82.48 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01493/12.53, allocations: 2.018 MB / 4.418 GB, free: 82.45 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04577/12.57, allocations: 26.14 MB / 4.444 GB, free: 64.25 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007216/12.58, allocations: 3.121 MB / 4.447 GB, free: 63.48 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01379/12.6, allocations: 2.064 MB / 4.449 GB, free: 63.39 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006869/12.6, allocations: 1.877 MB / 4.45 GB, free: 63.38 MB / 0.948 GB Notification: Performance of SimCode: time 2.114e-06/12.6, allocations: 3.938 kB / 4.45 GB, free: 63.38 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2552/12.86, allocations: 129.7 MB / 4.577 GB, free: 43.5 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002401/12.86, allocations: 264.6 kB / 4.577 GB, free: 43.14 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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 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: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 -falign-functions -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 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: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_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