Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001546, allocations: 99.16 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001816/0.001816, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.044/3.044, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.415/3.415, allocations: 292.6 MB / 0.5497 GB, free: 14.59 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008656/0.0008658, allocations: 13.81 kB / 0.6737 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5649/0.5657, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003952/0.5698, allocations: 1.297 MB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001799/0.5716, allocations: 0.5936 MB / 0.7891 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.5718, allocations: 4 kB / 0.7891 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002268/0.572, allocations: 19.86 kB / 0.7891 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003709/0.5724, allocations: 35.88 kB / 0.7891 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007552/0.5732, allocations: 99.77 kB / 0.7892 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002531/0.5734, allocations: 91.88 kB / 0.7893 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.5736, allocations: 29.05 kB / 0.7894 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002937/0.574, allocations: 67.81 kB / 0.7894 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002081/0.5742, allocations: 67.73 kB / 0.7895 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.976e-05/0.5742, allocations: 8 kB / 0.7895 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001069/0.5744, allocations: 16 kB / 0.7895 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.5745, allocations: 19.91 kB / 0.7895 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001039/0.5746, allocations: 57.58 kB / 0.7896 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.5749, allocations: 108 kB / 0.7897 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.5749, allocations: 0 / 0.7897 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.769e-06/0.575, allocations: 4 kB / 0.7897 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.477e-06/0.575, allocations: 0 / 0.7897 GB, free: 9.328 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001146/0.5761, allocations: 0.5211 MB / 0.7902 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.363e-05/0.5762, allocations: 8.031 kB / 0.7902 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.022e-05/0.5763, allocations: 38.56 kB / 0.7902 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.747e-05/0.5764, allocations: 23.8 kB / 0.7903 GB, free: 8.656 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005774/0.577, allocations: 230.7 kB / 0.7905 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.236e-05/0.5771, allocations: 16 kB / 0.7905 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.5771, allocations: 8 kB / 0.7905 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004551/0.5776, allocations: 125.5 kB / 0.7906 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.5776, allocations: 0 / 0.7906 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.81e-05/0.5777, allocations: 0 / 0.7906 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.5777, allocations: 4 kB / 0.7906 GB, free: 8.234 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004034/0.5781, allocations: 75.95 kB / 0.7907 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001219/0.5794, allocations: 436.4 kB / 0.7911 GB, free: 7.684 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003359/0.5797, allocations: 94.53 kB / 0.7912 GB, free: 7.582 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 4.111e-05/0.5798, allocations: 4.031 kB / 0.7912 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005668/0.5803, allocations: 182.9 kB / 0.7914 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 2.314e-06/0.5804, allocations: 4 kB / 0.7914 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.001403/0.5818, allocations: 0.5029 MB / 0.7919 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001781/0.582, allocations: 174.2 kB / 0.792 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000372/0.5824, allocations: 167.2 kB / 0.7922 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.5824, allocations: 37.7 kB / 0.7922 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.5826, allocations: 112.3 kB / 0.7924 GB, free: 6.273 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.165e-05/0.5827, allocations: 23.66 kB / 0.7924 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.629e-05/0.5827, allocations: 0 / 0.7924 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002469/0.583, allocations: 326.8 kB / 0.7927 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.5833, allocations: 59.95 kB / 0.7927 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002604/0.5836, allocations: 110.8 kB / 0.7928 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.584, allocations: 178.7 kB / 0.793 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.584, allocations: 0 / 0.793 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001162/0.5852, allocations: 360.2 kB / 0.7934 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.5853, allocations: 115.1 kB / 0.7935 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.5853, allocations: 4 kB / 0.7935 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.5854, allocations: 4 kB / 0.7935 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001982/0.5856, allocations: 23.92 kB / 0.7935 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.02e-05/0.5856, allocations: 7.953 kB / 0.7935 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.5858, allocations: 24.05 kB / 0.7935 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.5859, allocations: 8 kB / 0.7935 GB, free: 4.941 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003145/0.5862, allocations: 193.2 kB / 0.7937 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.782e-05/0.5863, allocations: 19.81 kB / 0.7937 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.595e-05/0.5864, allocations: 17.39 kB / 0.7938 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.5864, allocations: 0 / 0.7938 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.5864, allocations: 0 / 0.7938 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.5864, allocations: 3.953 kB / 0.7938 GB, free: 4.688 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.5878, allocations: 0.5876 MB / 0.7943 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.5879, allocations: 11.98 kB / 0.7943 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001082/0.588, allocations: 8 kB / 0.7944 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.588, allocations: 0 / 0.7944 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.464e-05/0.5881, allocations: 15.98 kB / 0.7944 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.5881, allocations: 4 kB / 0.7944 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5881, allocations: 3.953 kB / 0.7944 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009635/0.5891, allocations: 410.6 kB / 0.7948 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.5892, allocations: 88.92 kB / 0.7949 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.019e-05/0.5892, allocations: 11.98 kB / 0.7949 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/0.5895, allocations: 8 kB / 0.7949 GB, free: 3.434 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.852e-05/0.5896, allocations: 15.94 kB / 0.7949 GB, free: 3.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.213e-05/0.5896, allocations: 4 kB / 0.7949 GB, free: 3.414 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002084/0.5898, allocations: 137.1 kB / 0.795 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.31e-07/0.5898, allocations: 0 / 0.795 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0005977/0.5904, allocations: 28 kB / 0.7951 GB, free: 3.254 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,combiTimeTableWriter.str,combiTimeTableWriter.sampleTrigger,csvWriter.str,csvWriter.sampleTrigger) * Number of discrete states: 4 (combiTimeTableWriter.str,$whenCondition2,csvWriter.str,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001843/0.5923, allocations: 0.9715 MB / 0.796 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001041/0.5934, allocations: 365.4 kB / 0.7963 GB, free: 1.844 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.5934, allocations: 3.938 kB / 0.7964 GB, free: 1.84 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0004511/0.5939, allocations: 215.6 kB / 0.7966 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004188/0.5943, allocations: 12.19 kB / 0.7966 GB, free: 1.594 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00296/0.5973, allocations: 1.621 MB / 0.7982 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007804/0.5981, allocations: 0.716 MB / 0.7989 GB, free: 15.15 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000143/0.5982, allocations: 16.55 kB / 0.7989 GB, free: 15.13 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001194/0.5984, allocations: 39.42 kB / 0.7989 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of SimCode: time 1.923e-06/0.5984, allocations: 0 / 0.7989 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08045/0.6789, allocations: 3.313 MB / 0.8021 GB, free: 11.92 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000611/0.6796, allocations: 188.3 kB / 0.8023 GB, free: 11.67 MB / 0.6231 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_Utilities_IO_Files_Examples_CSVWriter.o Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.c In file included from Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_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 -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_Utilities_IO_Files_Examples_CSVWriter_functions.o Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_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_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterFree.c:7:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1