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.545/2.545, allocations: 287.3 MB / 302.3 MB, free: 8.297 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.001621/0.001621, allocations: 184.2 kB / 370.8 MB, free: 10.87 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.154/2.154, allocations: 205.4 MB / 0.6295 GB, free: 10.67 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001197/0.001196, allocations: 102.6 kB / 0.7428 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006934/0.0006933, allocations: 15.8 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2405, allocations: 115.3 MB / 0.9783 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.867/8.107, allocations: 2.358 GB / 3.336 GB, free: 263.3 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003325/8.108, allocations: 105.8 kB / 3.336 GB, free: 263.3 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.584/12.69, allocations: 0.9288 GB / 4.265 GB, free: 79.13 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.888e-06/12.69, allocations: 0 / 4.265 GB, free: 79.13 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0008778/12.69, allocations: 131.8 kB / 4.265 GB, free: 79 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.02242/12.72, allocations: 5.094 MB / 4.27 GB, free: 73.84 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/12.72, allocations: 11.97 kB / 4.27 GB, free: 73.82 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002776/12.72, allocations: 0.5222 MB / 4.27 GB, free: 73.29 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01342/12.73, allocations: 1.25 MB / 4.272 GB, free: 72.04 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02154/12.75, allocations: 5.421 MB / 4.277 GB, free: 66.55 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003955/12.75, allocations: 279.4 kB / 4.277 GB, free: 66.27 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00187/12.76, allocations: 371.9 kB / 4.277 GB, free: 65.91 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02151/12.78, allocations: 5.361 MB / 4.283 GB, free: 60.39 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003051/12.78, allocations: 15.92 kB / 4.283 GB, free: 60.37 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002011/12.78, allocations: 160 kB / 4.283 GB, free: 60.21 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002362/12.78, allocations: 171.2 kB / 4.283 GB, free: 60.05 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02226/12.8, allocations: 5.243 MB / 4.288 GB, free: 54.8 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.05037/12.85, allocations: 19.34 MB / 4.307 GB, free: 34.85 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01425/12.87, allocations: 3.596 MB / 4.311 GB, free: 31.25 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002956/12.87, allocations: 1.864 MB / 4.312 GB, free: 29 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008494/12.88, allocations: 2.053 MB / 4.314 GB, free: 26.89 MB / 0.948 GB Notification: Performance of pre-optimization done (n=264): time 6.863e-06/12.88, allocations: 3.938 kB / 4.314 GB, free: 26.89 MB / 0.948 GB Notification: Performance of matching and sorting (n=264): time 0.02505/12.9, allocations: 5.084 MB / 4.319 GB, free: 21.73 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/12.9, allocations: 291.1 kB / 4.32 GB, free: 21.38 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009601/12.91, allocations: 3.48 MB / 4.323 GB, free: 17.91 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.00102/12.91, allocations: 81.7 kB / 4.323 GB, free: 17.83 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002851/12.92, allocations: 1.971 MB / 4.325 GB, free: 15.84 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001893/12.92, allocations: 0.8972 MB / 4.326 GB, free: 14.93 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004775/12.92, allocations: 56 kB / 4.326 GB, free: 14.87 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002682/12.92, allocations: 424 kB / 4.326 GB, free: 14.45 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006636/12.93, allocations: 1.563 MB / 4.328 GB, free: 12.88 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007607/12.93, allocations: 2.253 MB / 4.33 GB, free: 10.36 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007558/12.94, allocations: 1.906 MB / 4.332 GB, free: 8.434 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.506e-05/12.94, allocations: 4 kB / 4.332 GB, free: 8.43 MB / 0.948 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01901/12.96, allocations: 4.395 MB / 4.336 GB, free: 3.984 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.7466/13.71, allocations: 7.404 MB / 4.343 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.31e-05/13.71, allocations: 19.78 kB / 4.343 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/13.71, allocations: 112 kB / 4.344 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008606/13.72, allocations: 0.8068 MB / 4.344 GB, free: 160.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/13.72, allocations: 1.58 MB / 4.346 GB, free: 159.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008394/13.73, allocations: 0.5273 MB / 4.346 GB, free: 159.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001152/13.73, allocations: 147.8 kB / 4.347 GB, free: 159.3 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/13.73, allocations: 4.125 kB / 4.347 GB, free: 159.3 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01813/13.75, allocations: 4.047 MB / 4.351 GB, free: 159.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.34e-05/13.75, allocations: 20.81 kB / 4.351 GB, free: 159.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000979/13.75, allocations: 115.2 kB / 4.351 GB, free: 159.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008006/13.76, allocations: 0.7999 MB / 4.351 GB, free: 159.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002821/13.76, allocations: 1.595 MB / 4.353 GB, free: 157.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0079/13.77, allocations: 488.7 kB / 4.353 GB, free: 157.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/13.77, allocations: 147.7 kB / 4.354 GB, free: 157.9 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.005401/13.78, allocations: 1.506 MB / 4.355 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001778/13.78, allocations: 385.3 kB / 4.355 GB, free: 157.7 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02075/13.8, allocations: 4.358 MB / 4.36 GB, free: 157.6 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.617e-05/13.8, allocations: 31.05 kB / 4.36 GB, free: 157.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/13.8, allocations: 6.406 kB / 4.36 GB, free: 157.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01581/13.81, allocations: 3.482 MB / 4.363 GB, free: 157.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03522/13.85, allocations: 9.281 MB / 4.372 GB, free: 156.4 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-05/13.85, allocations: 3.938 kB / 4.372 GB, free: 156.4 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006873/13.86, allocations: 0.6311 MB / 4.373 GB, free: 156.4 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009213/13.86, allocations: 99.88 kB / 4.373 GB, free: 156.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007527/13.86, allocations: 92.08 kB / 4.373 GB, free: 156.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002521/13.86, allocations: 1.582 MB / 4.375 GB, free: 155.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/13.86, allocations: 7.875 kB / 4.375 GB, free: 155.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0248/13.89, allocations: 6.464 MB / 4.381 GB, free: 154 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005365/13.89, allocations: 1.086 MB / 4.382 GB, free: 153.7 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002606/13.89, allocations: 75.27 kB / 4.382 GB, free: 153.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008211/13.9, allocations: 308.4 kB / 4.382 GB, free: 153.7 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001076/13.9, allocations: 182.7 kB / 4.382 GB, free: 153.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008077/13.9, allocations: 135.2 kB / 4.383 GB, free: 153.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.008785/13.91, allocations: 2.746 MB / 4.385 GB, free: 153.5 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.72e-07/13.91, allocations: 0 / 4.385 GB, free: 153.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01396/13.93, allocations: 2.44 MB / 4.388 GB, free: 153.4 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.03201/13.96, allocations: 9.458 MB / 4.397 GB, free: 150.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.02518/13.98, allocations: 6.119 MB / 4.403 GB, free: 150.4 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 2.009e-05/13.98, allocations: 3.812 kB / 4.403 GB, free: 150.4 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.008326/13.99, allocations: 1.953 MB / 4.405 GB, free: 150.3 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01736/14.01, allocations: 2.03 MB / 4.407 GB, free: 150.3 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04464/14.05, allocations: 26.13 MB / 4.432 GB, free: 132.1 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00612/14.06, allocations: 3.116 MB / 4.435 GB, free: 131.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01667/14.08, allocations: 2.071 MB / 4.437 GB, free: 131.3 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006614/14.08, allocations: 1.875 MB / 4.439 GB, free: 131.3 MB / 0.948 GB Notification: Performance of SimCode: time 1.282e-06/14.08, allocations: 2.469 kB / 4.439 GB, free: 131.3 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3344/14.42, allocations: 129.7 MB / 4.566 GB, free: 99.26 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002299/14.42, allocations: 279 kB / 4.566 GB, free: 98.88 MB / 0.948 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 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: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 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: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_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