Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",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.099/2.099, allocations: 251 MB / 265.9 MB, free: 11.7 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001644/0.001643, allocations: 178.5 kB / 325.5 MB, free: 2.902 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.356/2.356, allocations: 205.4 MB / 0.5764 GB, free: 21.22 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.001114/0.001114, allocations: 100.9 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000637/0.0006369, allocations: 14.62 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.2262, allocations: 106.3 MB / 0.8988 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.276/7.502, allocations: 2.219 GB / 3.118 GB, free: 242.1 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003514/7.502, allocations: 93.36 kB / 3.118 GB, free: 242.1 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 1.981/9.483, allocations: 394.9 MB / 3.503 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.855e-06/9.483, allocations: 0 / 3.503 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001532/9.483, allocations: 35.83 kB / 3.503 GB, free: 212.6 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: 332 * Number of variables: 332 Notification: Performance of Generate backend data structure: time 0.005582/9.489, allocations: 1.77 MB / 3.505 GB, free: 211.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/9.489, allocations: 7.344 kB / 3.505 GB, free: 211.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006552/9.489, allocations: 198.2 kB / 3.505 GB, free: 211.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004227/9.494, allocations: 398.2 kB / 3.506 GB, free: 211.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004372/9.498, allocations: 1.185 MB / 3.507 GB, free: 211.4 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.857e-05/9.498, allocations: 101.5 kB / 3.507 GB, free: 211.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002645/9.499, allocations: 129.7 kB / 3.507 GB, free: 211.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004032/9.503, allocations: 1.436 MB / 3.509 GB, free: 211.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.302e-05/9.503, allocations: 0 / 3.509 GB, free: 211.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002388/9.503, allocations: 56.41 kB / 3.509 GB, free: 211.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/9.503, allocations: 30.66 kB / 3.509 GB, free: 211.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004372/9.507, allocations: 1.521 MB / 3.51 GB, free: 211.1 MB / 0.8855 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.01116/9.519, allocations: 4.967 MB / 3.515 GB, free: 209 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003702/9.522, allocations: 1.299 MB / 3.516 GB, free: 208.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000976/9.523, allocations: 420.7 kB / 3.517 GB, free: 208.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001803/9.525, allocations: 0.6376 MB / 3.517 GB, free: 208.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=98): time 4.118e-06/9.525, allocations: 3.875 kB / 3.517 GB, free: 208.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=98): time 0.006611/9.532, allocations: 1.596 MB / 3.519 GB, free: 208.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/9.532, allocations: 247 kB / 3.519 GB, free: 207.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001782/9.534, allocations: 0.7988 MB / 3.52 GB, free: 207.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0003052/9.534, allocations: 48.83 kB / 3.52 GB, free: 207.6 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005568/9.535, allocations: 0.5609 MB / 3.52 GB, free: 207.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003762/9.535, allocations: 329.4 kB / 3.521 GB, free: 207.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/9.535, allocations: 22 kB / 3.521 GB, free: 207.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.459e-05/9.535, allocations: 343.1 kB / 3.521 GB, free: 206.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/9.536, allocations: 354.3 kB / 3.521 GB, free: 206.9 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/9.538, allocations: 0.5499 MB / 3.522 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/9.539, allocations: 431.5 kB / 3.522 GB, free: 206.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.053e-06/9.539, allocations: 3.938 kB / 3.522 GB, free: 206.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.004103/9.543, allocations: 1.133 MB / 3.523 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/9.543, allocations: 11.05 kB / 3.523 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/9.543, allocations: 3.906 kB / 3.523 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009643/9.544, allocations: 94.69 kB / 3.524 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/9.546, allocations: 226.6 kB / 3.524 GB, free: 206.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/9.549, allocations: 1.544 MB / 3.525 GB, free: 205.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/9.551, allocations: 143.1 kB / 3.525 GB, free: 205.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001435/9.551, allocations: 40.75 kB / 3.525 GB, free: 205.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (110): * Single equations (assignments): 109 * 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.00107/9.553, allocations: 333.5 kB / 3.526 GB, free: 205.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/9.553, allocations: 115.9 kB / 3.526 GB, free: 205.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004872/9.558, allocations: 1.369 MB / 3.527 GB, free: 205 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/9.558, allocations: 14.62 kB / 3.527 GB, free: 205 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/9.558, allocations: 6.562 kB / 3.527 GB, free: 205 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/9.558, allocations: 11.55 kB / 3.527 GB, free: 205 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00729/9.565, allocations: 2.678 MB / 3.53 GB, free: 204.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/9.565, allocations: 7.812 kB / 3.53 GB, free: 204.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00185/9.567, allocations: 215.4 kB / 3.53 GB, free: 204.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008449/9.568, allocations: 84.98 kB / 3.53 GB, free: 204.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/9.568, allocations: 36.12 kB / 3.53 GB, free: 204.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/9.571, allocations: 1.564 MB / 3.532 GB, free: 203.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/9.571, allocations: 3.281 kB / 3.532 GB, free: 203.3 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004269/9.575, allocations: 1.265 MB / 3.533 GB, free: 203.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/9.576, allocations: 369.3 kB / 3.533 GB, free: 202.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002779/9.576, allocations: 25.83 kB / 3.533 GB, free: 202.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/9.578, allocations: 105.5 kB / 3.533 GB, free: 202.9 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/9.578, allocations: 74.02 kB / 3.534 GB, free: 202.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001644/9.579, allocations: 48.41 kB / 3.534 GB, free: 202.9 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001349/9.58, allocations: 0.6353 MB / 3.534 GB, free: 202.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4e-07/9.58, allocations: 0 / 3.534 GB, free: 202.8 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002959/9.583, allocations: 0.591 MB / 3.535 GB, free: 202.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.008788/9.592, allocations: 3.565 MB / 3.538 GB, free: 201.6 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.003746/9.596, allocations: 1.067 MB / 3.539 GB, free: 201.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/9.596, allocations: 0 / 3.539 GB, free: 201.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001887/9.598, allocations: 0.6546 MB / 3.54 GB, free: 201.3 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/9.602, allocations: 461.5 kB / 3.54 GB, free: 201.3 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02162/9.623, allocations: 8.921 MB / 3.549 GB, free: 197.1 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008665/9.624, allocations: 1.216 MB / 3.55 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002689/9.627, allocations: 387.1 kB / 3.551 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/9.628, allocations: 0.5187 MB / 3.551 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of SimCode: time 1.413e-06/9.628, allocations: 3.938 kB / 3.551 GB, free: 196.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1329/9.761, allocations: 53.02 MB / 3.603 GB, free: 159.4 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/9.761, allocations: 255.7 kB / 3.603 GB, free: 159 MB / 0.8855 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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.c In file included from Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_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_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_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_Sources_Examples_MassFlowSource_WeatherData_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.o] Error 1