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/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.81/1.81, allocations: 292.6 MB / 307.5 MB, free: 5.227 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.001673/0.001673, allocations: 189 kB / 377.1 MB, free: 1.531 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.098/2.098, allocations: 205.4 MB / 0.6366 GB, free: 8.617 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009866/0.0009866, allocations: 89.11 kB / 0.7509 GB, free: 63.26 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004047, allocations: 8 kB / 0.8749 GB, free: 11.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3456, allocations: 116.3 MB / 0.9884 GB, free: 6.648 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9459/1.292, allocations: 141.1 MB / 1.126 GB, free: 34 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002747/1.292, allocations: 82.25 kB / 1.126 GB, free: 33.93 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01264/1.305, allocations: 5.017 MB / 1.131 GB, free: 30.35 MB / 0.7292 GB Notification: Performance of FrontEnd: time 3.256e-06/1.305, allocations: 0 / 1.131 GB, free: 30.35 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.927e-05/1.305, allocations: 8 kB / 1.131 GB, free: 30.34 MB / 0.7292 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.000648/1.305, allocations: 0.5389 MB / 1.132 GB, free: 29.75 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.193e-05/1.305, allocations: 12.02 kB / 1.132 GB, free: 29.74 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/1.305, allocations: 38.56 kB / 1.132 GB, free: 29.69 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.656e-05/1.305, allocations: 22.56 kB / 1.132 GB, free: 29.67 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/1.306, allocations: 224.9 kB / 1.132 GB, free: 29.43 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/1.306, allocations: 11.44 kB / 1.132 GB, free: 29.42 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.293e-05/1.306, allocations: 16 kB / 1.132 GB, free: 29.41 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/1.306, allocations: 118.9 kB / 1.132 GB, free: 29.31 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/1.306, allocations: 0 / 1.132 GB, free: 29.31 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/1.306, allocations: 4 kB / 1.132 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/1.306, allocations: 0 / 1.132 GB, free: 29.3 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/1.306, allocations: 83.19 kB / 1.132 GB, free: 29.24 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006307/1.307, allocations: 429.8 kB / 1.133 GB, free: 28.84 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/1.307, allocations: 89.02 kB / 1.133 GB, free: 28.75 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/1.307, allocations: 0 / 1.133 GB, free: 28.75 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002309/1.307, allocations: 191.1 kB / 1.133 GB, free: 28.57 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/1.307, allocations: 0 / 1.133 GB, free: 28.57 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10): time 0.0007571/1.308, allocations: 0.4986 MB / 1.133 GB, free: 28.05 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/1.308, allocations: 174 kB / 1.134 GB, free: 27.85 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/1.309, allocations: 166.1 kB / 1.134 GB, free: 27.69 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 2.522e-05/1.309, allocations: 34.27 kB / 1.134 GB, free: 27.65 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 6.682e-05/1.309, allocations: 103.6 kB / 1.134 GB, free: 27.54 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 3.199e-05/1.309, allocations: 22.2 kB / 1.134 GB, free: 27.52 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.255e-05/1.309, allocations: 8 kB / 1.134 GB, free: 27.52 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001036/1.309, allocations: 319.2 kB / 1.134 GB, free: 27.2 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/1.309, allocations: 62.22 kB / 1.134 GB, free: 27.15 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/1.309, allocations: 102.9 kB / 1.134 GB, free: 27.04 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000199/1.309, allocations: 180.3 kB / 1.135 GB, free: 26.84 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/1.309, allocations: 0 / 1.135 GB, free: 26.84 MB / 0.7292 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005154/1.31, allocations: 360.6 kB / 1.135 GB, free: 26.49 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 6.847e-05/1.31, allocations: 113.4 kB / 1.135 GB, free: 26.36 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/1.31, allocations: 0.6562 kB / 1.135 GB, free: 26.36 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/1.31, allocations: 4 kB / 1.135 GB, free: 26.35 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/1.31, allocations: 24.45 kB / 1.135 GB, free: 26.33 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/1.31, allocations: 8.25 kB / 1.135 GB, free: 26.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/1.31, allocations: 25.89 kB / 1.135 GB, free: 26.3 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/1.31, allocations: 16.64 kB / 1.135 GB, free: 26.29 MB / 0.7292 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.0001511/1.31, allocations: 197.1 kB / 1.135 GB, free: 26.08 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.544e-05/1.31, allocations: 11.91 kB / 1.135 GB, free: 26.07 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.755e-05/1.311, allocations: 20.59 kB / 1.135 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/1.311, allocations: 1.562 kB / 1.135 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/1.311, allocations: 0 / 1.135 GB, free: 26.05 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/1.311, allocations: 8.891 kB / 1.135 GB, free: 26.04 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007069/1.311, allocations: 0.5841 MB / 1.136 GB, free: 25.45 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/1.311, allocations: 0.6094 kB / 1.136 GB, free: 25.45 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.441e-05/1.311, allocations: 15.23 kB / 1.136 GB, free: 25.44 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/1.311, allocations: 4 kB / 1.136 GB, free: 25.43 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/1.311, allocations: 7 kB / 1.136 GB, free: 25.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/1.311, allocations: 1.562 kB / 1.136 GB, free: 25.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/1.311, allocations: 0 / 1.136 GB, free: 25.43 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005166/1.312, allocations: 418.9 kB / 1.136 GB, free: 25.02 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/1.312, allocations: 90.84 kB / 1.136 GB, free: 24.92 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/1.312, allocations: 8.625 kB / 1.136 GB, free: 24.91 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/1.312, allocations: 10.11 kB / 1.136 GB, free: 24.9 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/1.312, allocations: 6.672 kB / 1.136 GB, free: 24.9 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.012e-05/1.312, allocations: 10.16 kB / 1.136 GB, free: 24.89 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 9.581e-05/1.312, allocations: 131.1 kB / 1.137 GB, free: 24.77 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/1.312, allocations: 0 / 1.137 GB, free: 24.77 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.000286/1.313, allocations: 39.95 kB / 1.137 GB, free: 24.73 MB / 0.7292 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.0009539/1.314, allocations: 0.9822 MB / 1.138 GB, free: 23.76 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0004585/1.314, allocations: 368 kB / 1.138 GB, free: 23.38 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/1.314, allocations: 4.062 kB / 1.138 GB, free: 23.38 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002111/1.314, allocations: 212.9 kB / 1.138 GB, free: 23.16 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002459/1.315, allocations: 16.33 kB / 1.138 GB, free: 23.14 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/1.316, allocations: 1.622 MB / 1.14 GB, free: 21.48 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/1.316, allocations: 0.7091 MB / 1.14 GB, free: 20.76 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.495e-05/1.316, allocations: 20.72 kB / 1.14 GB, free: 20.75 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.292e-05/1.316, allocations: 39.42 kB / 1.14 GB, free: 20.71 MB / 0.7292 GB Notification: Performance of SimCode: time 5.01e-07/1.316, allocations: 0 / 1.14 GB, free: 20.71 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/1.339, allocations: 3.286 MB / 1.144 GB, free: 18.84 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002613/1.339, allocations: 174.9 kB / 1.144 GB, free: 18.6 MB / 0.7292 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: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 -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: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_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