Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.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.FlatPlate,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.297/2.297, allocations: 248.5 MB / 261.1 MB, free: 5.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001482/0.001482, allocations: 183.4 kB / 320.4 MB, free: 15.32 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.939/1.939, allocations: 205.2 MB / 0.571 GB, free: 11.82 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.00108/0.00108, allocations: 100.9 kB / 0.6754 GB, free: 0.9102 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.656e-05/4.674e-05, allocations: 4 kB / 0.7869 GB, free: 97.81 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2287, allocations: 106.2 MB / 0.8907 GB, free: 7.469 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.323/7.552, allocations: 2.228 GB / 3.119 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003242/7.552, allocations: 93.02 kB / 3.119 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 7.689/15.24, allocations: 1.41 GB / 4.529 GB, free: 60.16 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.793e-06/15.24, allocations: 0 / 4.529 GB, free: 60.16 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0008811/15.24, allocations: 127.9 kB / 4.529 GB, free: 60.04 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.02199/15.26, allocations: 5.522 MB / 4.534 GB, free: 54.45 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/15.26, allocations: 8.031 kB / 4.534 GB, free: 54.44 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002334/15.27, allocations: 0.5224 MB / 4.535 GB, free: 53.91 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01935/15.29, allocations: 1.601 MB / 4.536 GB, free: 52.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02115/15.31, allocations: 5.234 MB / 4.541 GB, free: 47 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003676/15.31, allocations: 287.5 kB / 4.542 GB, free: 46.71 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001774/15.31, allocations: 364 kB / 4.542 GB, free: 46.36 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01804/15.33, allocations: 5.137 MB / 4.547 GB, free: 41.05 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/15.33, allocations: 7.938 kB / 4.547 GB, free: 41.05 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001086/15.33, allocations: 156 kB / 4.547 GB, free: 40.89 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001792/15.33, allocations: 159.3 kB / 4.547 GB, free: 40.74 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01578/15.34, allocations: 4.741 MB / 4.552 GB, free: 35.99 MB / 0.8855 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.05224/15.4, allocations: 19.2 MB / 4.571 GB, free: 16.34 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009361/15.41, allocations: 3.442 MB / 4.574 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004583/15.41, allocations: 1.702 MB / 4.576 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00337/15.41, allocations: 2.533 MB / 4.578 GB, free: 8.109 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006134/15.42, allocations: 1.929 MB / 4.58 GB, free: 6.133 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=284): time 7.324e-06/15.42, allocations: 0 / 4.58 GB, free: 6.133 MB / 0.8855 GB Notification: Performance of matching and sorting (n=284): time 0.01482/15.44, allocations: 3.787 MB / 4.584 GB, free: 2.285 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/15.44, allocations: 287.3 kB / 4.584 GB, free: 1.941 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.7566/16.19, allocations: 3.311 MB / 4.587 GB, free: 134.3 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.001359/16.19, allocations: 79.77 kB / 4.587 GB, free: 134.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.005455/16.2, allocations: 1.947 MB / 4.589 GB, free: 134.1 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.003353/16.2, allocations: 0.967 MB / 4.59 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/16.2, allocations: 59.31 kB / 4.59 GB, free: 133.7 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0005239/16.2, allocations: 431.6 kB / 4.591 GB, free: 133.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007097/16.21, allocations: 1.391 MB / 4.592 GB, free: 133.3 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008912/16.22, allocations: 2.041 MB / 4.594 GB, free: 132.7 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008488/16.23, allocations: 1.739 MB / 4.596 GB, free: 132.6 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.652e-05/16.23, allocations: 7.656 kB / 4.596 GB, free: 132.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.01784/16.25, allocations: 4.058 MB / 4.6 GB, free: 132.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001685/16.25, allocations: 6.549 MB / 4.606 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.972e-05/16.25, allocations: 16.28 kB / 4.606 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/16.25, allocations: 110.8 kB / 4.606 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008917/16.26, allocations: 0.7912 MB / 4.607 GB, free: 125.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003425/16.26, allocations: 2.159 MB / 4.609 GB, free: 123.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009885/16.27, allocations: 0.5264 MB / 4.61 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001555/16.27, allocations: 163.6 kB / 4.61 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/16.27, allocations: 3.688 kB / 4.61 GB, free: 123.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01496/16.29, allocations: 3.712 MB / 4.613 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.903e-05/16.29, allocations: 14.34 kB / 4.613 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/16.29, allocations: 116.5 kB / 4.614 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008472/16.3, allocations: 0.7862 MB / 4.614 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002845/16.3, allocations: 1.567 MB / 4.616 GB, free: 122.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009294/16.31, allocations: 0.4918 MB / 4.616 GB, free: 122 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001283/16.31, allocations: 159.2 kB / 4.617 GB, free: 122 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.001558/16.31, allocations: 291.5 kB / 4.617 GB, free: 121.9 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001816/16.32, allocations: 384.3 kB / 4.617 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02188/16.34, allocations: 4.721 MB / 4.622 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001012/16.34, allocations: 32.22 kB / 4.622 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.49e-05/16.34, allocations: 0 / 4.622 GB, free: 121.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0147/16.35, allocations: 3.659 MB / 4.625 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03385/16.39, allocations: 9.553 MB / 4.635 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.847e-05/16.39, allocations: 0 / 4.635 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007148/16.39, allocations: 0.6097 MB / 4.635 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004909/16.4, allocations: 0.6503 MB / 4.636 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009568/16.4, allocations: 98.22 kB / 4.636 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006569/16.41, allocations: 7.524 MB / 4.643 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/16.41, allocations: 5.359 kB / 4.643 GB, free: 113.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02073/16.43, allocations: 6.186 MB / 4.649 GB, free: 113 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004739/16.43, allocations: 1.138 MB / 4.651 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001861/16.43, allocations: 58.16 kB / 4.651 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008392/16.44, allocations: 318.5 kB / 4.651 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001039/16.44, allocations: 186.7 kB / 4.651 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006317/16.44, allocations: 137.1 kB / 4.651 GB, free: 112.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.007454/16.45, allocations: 2.607 MB / 4.654 GB, free: 112.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.242e-06/16.45, allocations: 0 / 4.654 GB, free: 112.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.01551/16.47, allocations: 2.873 MB / 4.657 GB, free: 112.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (272): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.02289/16.49, allocations: 8.363 MB / 4.665 GB, free: 111 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01813/16.51, allocations: 5.794 MB / 4.67 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/16.51, allocations: 0.5625 kB / 4.67 GB, free: 110.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.006745/16.52, allocations: 1.955 MB / 4.672 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01639/16.53, allocations: 1.937 MB / 4.674 GB, free: 110.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03331/16.56, allocations: 9.455 MB / 4.683 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005922/16.57, allocations: 3.154 MB / 4.686 GB, free: 108.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.02174/16.59, allocations: 3.642 MB / 4.69 GB, free: 108 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00589/16.6, allocations: 1.841 MB / 4.692 GB, free: 108 MB / 0.8855 GB Notification: Performance of SimCode: time 2.434e-06/16.6, allocations: 0 / 4.692 GB, free: 108 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3346/16.93, allocations: 141.1 MB / 4.83 GB, free: 60.18 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002834/16.93, allocations: 227.9 kB / 4.83 GB, free: 59.95 MB / 0.8855 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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.o Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_FlatPlate_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.o] Error 1