Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.908/2.908, allocations: 287.3 MB / 302.3 MB, free: 8.293 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.001604/0.001604, allocations: 178.9 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.193/2.193, allocations: 205.4 MB / 0.6295 GB, free: 10.59 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.001216/0.001216, allocations: 88.17 kB / 0.7428 GB, free: 6.617 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0008232/0.0008235, allocations: 12.19 kB / 0.8657 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2509, allocations: 115.3 MB / 0.9783 GB, free: 28.31 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.9004/1.151, allocations: 146.9 MB / 1.122 GB, free: 488 kB / 0.6823 GB Notification: Performance of NFInst.instExpressions: time 0.02106/1.172, allocations: 10.46 MB / 1.132 GB, free: 15.64 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001697/1.174, allocations: 36.22 kB / 1.132 GB, free: 15.62 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.001644/1.176, allocations: 276 kB / 1.132 GB, free: 15.55 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.003985/1.18, allocations: 0.731 MB / 1.133 GB, free: 15.5 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.005663/1.186, allocations: 1.191 MB / 1.134 GB, free: 15.45 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.003652/1.189, allocations: 1.355 MB / 1.135 GB, free: 15.38 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002826/1.192, allocations: 1.14 MB / 1.137 GB, free: 15.23 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004142/1.196, allocations: 1.084 MB / 1.138 GB, free: 15.07 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/1.198, allocations: 0.5025 MB / 1.138 GB, free: 14.93 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0005421/1.199, allocations: 40.44 kB / 1.138 GB, free: 14.93 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003555/1.202, allocations: 0.6797 MB / 1.139 GB, free: 14.91 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0008115/1.203, allocations: 300 kB / 1.139 GB, free: 14.87 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.0006853/1.204, allocations: 282.3 kB / 1.139 GB, free: 14.79 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.004209/1.208, allocations: 1.702 MB / 1.141 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/1.208, allocations: 1.859 kB / 1.141 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd: time 3.416e-06/1.208, allocations: 1 kB / 1.141 GB, free: 14.19 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.399e-05/1.208, allocations: 0 / 1.141 GB, free: 14.19 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.005348/1.214, allocations: 1.559 MB / 1.143 GB, free: 13.11 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/1.214, allocations: 11.48 kB / 1.143 GB, free: 13.11 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007028/1.214, allocations: 191.4 kB / 1.143 GB, free: 13.04 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004463/1.219, allocations: 411.5 kB / 1.143 GB, free: 12.87 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002848/1.222, allocations: 0.9204 MB / 1.144 GB, free: 12.35 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/1.222, allocations: 92.7 kB / 1.144 GB, free: 12.35 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003113/1.222, allocations: 134.8 kB / 1.144 GB, free: 12.34 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004521/1.227, allocations: 1.423 MB / 1.146 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.783e-05/1.227, allocations: 1.062 kB / 1.146 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003581/1.227, allocations: 56.78 kB / 1.146 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.244e-05/1.227, allocations: 31.91 kB / 1.146 GB, free: 11.84 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005855/1.233, allocations: 1.526 MB / 1.147 GB, free: 11.46 MB / 0.698 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.01251/1.246, allocations: 4.898 MB / 1.152 GB, free: 8.367 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004269/1.25, allocations: 1.304 MB / 1.153 GB, free: 7.98 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009579/1.251, allocations: 257.6 kB / 1.154 GB, free: 7.766 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001942/1.253, allocations: 0.6207 MB / 1.154 GB, free: 7.539 MB / 0.698 GB Notification: Performance of pre-optimization done (n=98): time 3.997e-06/1.253, allocations: 1 kB / 1.154 GB, free: 7.539 MB / 0.698 GB Notification: Performance of matching and sorting (n=98): time 0.006774/1.26, allocations: 1.536 MB / 1.156 GB, free: 7.109 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/1.26, allocations: 195.9 kB / 1.156 GB, free: 6.883 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001816/1.262, allocations: 0.8133 MB / 1.157 GB, free: 6.469 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0003395/1.262, allocations: 49.64 kB / 1.157 GB, free: 6.422 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007043/1.263, allocations: 0.5673 MB / 1.157 GB, free: 5.918 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005414/1.264, allocations: 332.5 kB / 1.158 GB, free: 5.637 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.749e-05/1.264, allocations: 19.5 kB / 1.158 GB, free: 5.621 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001806/1.264, allocations: 342.8 kB / 1.158 GB, free: 5.289 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/1.265, allocations: 336.8 kB / 1.158 GB, free: 5.129 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002792/1.268, allocations: 0.5169 MB / 1.159 GB, free: 4.75 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/1.27, allocations: 423.5 kB / 1.159 GB, free: 4.531 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/1.27, allocations: 4.906 kB / 1.159 GB, free: 4.527 MB / 0.698 GB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004603/1.275, allocations: 1.092 MB / 1.16 GB, free: 3.977 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/1.275, allocations: 14.22 kB / 1.16 GB, free: 3.969 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/1.275, allocations: 2.438 kB / 1.16 GB, free: 3.969 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009905/1.276, allocations: 90.86 kB / 1.16 GB, free: 3.926 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002157/1.278, allocations: 229.8 kB / 1.161 GB, free: 3.871 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003328/1.281, allocations: 1.544 MB / 1.162 GB, free: 2.363 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/1.283, allocations: 141.9 kB / 1.162 GB, free: 2.277 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/1.284, allocations: 44.31 kB / 1.162 GB, free: 2.262 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (111): * Single equations (assignments): 110 * 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.001095/1.285, allocations: 327.3 kB / 1.163 GB, free: 2.02 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004462/1.285, allocations: 120.8 kB / 1.163 GB, free: 1.953 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00541/1.291, allocations: 1.345 MB / 1.164 GB, free: 1.188 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/1.291, allocations: 10.25 kB / 1.164 GB, free: 1.188 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.291, allocations: 0 / 1.164 GB, free: 1.188 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.697e-05/1.291, allocations: 7.969 kB / 1.164 GB, free: 1.18 MB / 0.698 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 postOpt removeSimpleEquations (simulation): time 0.008536/1.299, allocations: 2.712 MB / 1.167 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/1.299, allocations: 128 / 1.167 GB, free: 15.36 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00199/1.301, allocations: 227.8 kB / 1.167 GB, free: 15.3 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008887/1.302, allocations: 83.38 kB / 1.167 GB, free: 15.26 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002246/1.302, allocations: 34.28 kB / 1.167 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002938/1.305, allocations: 1.573 MB / 1.168 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.305, allocations: 2.375 kB / 1.168 GB, free: 13.71 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/1.31, allocations: 1.299 MB / 1.17 GB, free: 12.93 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001372/1.311, allocations: 349.2 kB / 1.17 GB, free: 12.63 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004437/1.312, allocations: 27.25 kB / 1.17 GB, free: 12.61 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002119/1.314, allocations: 109.8 kB / 1.17 GB, free: 12.56 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/1.315, allocations: 73.3 kB / 1.17 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002129/1.315, allocations: 49 kB / 1.17 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.00144/1.316, allocations: 0.5703 MB / 1.171 GB, free: 12.17 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.11e-07/1.316, allocations: 0 / 1.171 GB, free: 12.17 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.002451/1.319, allocations: 441.6 kB / 1.171 GB, free: 12.04 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.007251/1.326, allocations: 2.667 MB / 1.174 GB, free: 10.26 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.003707/1.33, allocations: 1.031 MB / 1.175 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.33, allocations: 2.531 kB / 1.175 GB, free: 9.727 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.00197/1.332, allocations: 0.6442 MB / 1.176 GB, free: 9.371 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003655/1.336, allocations: 459.7 kB / 1.176 GB, free: 9.141 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02276/1.358, allocations: 8.922 MB / 1.185 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/1.359, allocations: 1.204 MB / 1.186 GB, free: 1.824 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.002513/1.362, allocations: 373.7 kB / 1.186 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001255/1.363, allocations: 0.518 MB / 1.187 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of SimCode: time 1.332e-06/1.363, allocations: 0 / 1.187 GB, free: 1.211 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1367/1.5, allocations: 31.16 MB / 1.217 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004023/1.501, allocations: 265.3 kB / 1.217 GB, free: 3.02 MB / 0.7448 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_Sources_Examples_MassFlowSource_WeatherData.o Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.c In file included from Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.c:7: In file included from ./Buildings_8_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:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222: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_Sources_Examples_MassFlowSource_WeatherData_functions.o Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.c In file included from Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_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_Sources_Examples_MassFlowSource_WeatherData_functions.o' failed make: *** [Buildings_8_0_0_Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData_functions.o] Error 1