Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.313/2.313, allocations: 393.5 MB / 408.4 MB, free: 11.02 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 190.5 kB / 0.4901 GB, free: 2.238 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 223.1 MB / 0.7992 GB, free: 15.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 92.33 kB / 0.9396 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003983, allocations: 7.484 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3405, allocations: 143 MB / 1.229 GB, free: 85.41 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2106/0.5511, allocations: 152.2 MB / 1.378 GB, free: 13.05 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003456/0.5515, allocations: 79.95 kB / 1.378 GB, free: 12.97 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01468/0.5663, allocations: 5.089 MB / 1.383 GB, free: 7.852 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.685e-06/0.5663, allocations: 4 kB / 1.383 GB, free: 7.848 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.625e-05/0.5663, allocations: 0 / 1.383 GB, free: 7.848 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000782/0.5671, allocations: 0.5328 MB / 1.383 GB, free: 7.242 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.5672, allocations: 8.562 kB / 1.383 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.952e-05/0.5673, allocations: 42.56 kB / 1.383 GB, free: 7.184 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.031e-05/0.5673, allocations: 23.77 kB / 1.384 GB, free: 7.16 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.5677, allocations: 222.8 kB / 1.384 GB, free: 6.902 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.5677, allocations: 8 kB / 1.384 GB, free: 6.895 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.5677, allocations: 15.94 kB / 1.384 GB, free: 6.879 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.5681, allocations: 117.5 kB / 1.384 GB, free: 6.758 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.5681, allocations: 7.984 kB / 1.384 GB, free: 6.75 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.694e-05/0.5681, allocations: 7.938 kB / 1.384 GB, free: 6.742 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.5681, allocations: 0 / 1.384 GB, free: 6.742 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00021/0.5684, allocations: 79.94 kB / 1.384 GB, free: 6.664 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007731/0.5691, allocations: 428.5 kB / 1.384 GB, free: 6.195 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.5693, allocations: 90.53 kB / 1.384 GB, free: 6.098 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.5694, allocations: 3.984 kB / 1.384 GB, free: 6.094 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.5697, allocations: 186.8 kB / 1.385 GB, free: 5.887 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.784e-06/0.5697, allocations: 0 / 1.385 GB, free: 5.887 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0008357/0.5705, allocations: 0.5186 MB / 1.385 GB, free: 5.312 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.5706, allocations: 162.2 kB / 1.385 GB, free: 5.117 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.5708, allocations: 158.6 kB / 1.385 GB, free: 4.953 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.5709, allocations: 33.7 kB / 1.385 GB, free: 4.914 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.916e-05/0.5709, allocations: 104.4 kB / 1.386 GB, free: 4.805 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.778e-05/0.571, allocations: 31.55 kB / 1.386 GB, free: 4.773 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.571, allocations: 4 kB / 1.386 GB, free: 4.77 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.5712, allocations: 326.8 kB / 1.386 GB, free: 4.441 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.5713, allocations: 59.95 kB / 1.386 GB, free: 4.383 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.5715, allocations: 98.83 kB / 1.386 GB, free: 4.262 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.5717, allocations: 186.7 kB / 1.386 GB, free: 4.055 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.5717, allocations: 0 / 1.386 GB, free: 4.055 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005432/0.5723, allocations: 348.2 kB / 1.387 GB, free: 3.684 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.774e-05/0.5723, allocations: 115.1 kB / 1.387 GB, free: 3.547 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.5724, allocations: 4 kB / 1.387 GB, free: 3.543 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.179e-05/0.5724, allocations: 256 / 1.387 GB, free: 3.543 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.5725, allocations: 35.86 kB / 1.387 GB, free: 3.508 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.5725, allocations: 7.953 kB / 1.387 GB, free: 3.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001175/0.5727, allocations: 11.91 kB / 1.387 GB, free: 3.488 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.5727, allocations: 15.97 kB / 1.387 GB, free: 3.473 MB / 0.8855 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.0001781/0.5729, allocations: 201.1 kB / 1.387 GB, free: 3.254 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.057e-05/0.5729, allocations: 11.91 kB / 1.387 GB, free: 3.242 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.167e-05/0.573, allocations: 13.41 kB / 1.387 GB, free: 3.23 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.573, allocations: 8 kB / 1.387 GB, free: 3.223 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.573, allocations: 3.938 kB / 1.387 GB, free: 3.219 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.573, allocations: 7.938 kB / 1.387 GB, free: 3.211 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007421/0.5737, allocations: 0.5837 MB / 1.388 GB, free: 2.559 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.5738, allocations: 0 / 1.388 GB, free: 2.559 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.5738, allocations: 19.98 kB / 1.388 GB, free: 2.539 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.5738, allocations: 0 / 1.388 GB, free: 2.539 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.272e-05/0.5739, allocations: 8 kB / 1.388 GB, free: 2.531 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.5739, allocations: 3.953 kB / 1.388 GB, free: 2.527 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.5739, allocations: 0 / 1.388 GB, free: 2.527 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000556/0.5745, allocations: 406.8 kB / 1.388 GB, free: 2.102 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.5745, allocations: 88.92 kB / 1.388 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.5746, allocations: 8 kB / 1.388 GB, free: 1.988 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.5747, allocations: 15.98 kB / 1.388 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.5748, allocations: 11.94 kB / 1.388 GB, free: 1.961 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.5748, allocations: 8 kB / 1.388 GB, free: 1.953 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001093/0.5749, allocations: 128.3 kB / 1.388 GB, free: 1.828 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5749, allocations: 4 kB / 1.388 GB, free: 1.824 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002978/0.5752, allocations: 36 kB / 1.388 GB, free: 1.789 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: 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.001023/0.5762, allocations: 0.9777 MB / 1.389 GB, free: 0.7734 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005004/0.5768, allocations: 373.6 kB / 1.39 GB, free: 368 kB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.5768, allocations: 0 / 1.39 GB, free: 368 kB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000238/0.577, allocations: 206.8 kB / 1.39 GB, free: 136 kB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002378/0.5773, allocations: 20.91 kB / 1.39 GB, free: 112 kB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001428/0.5787, allocations: 1.621 MB / 1.391 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.579, allocations: 0.7121 MB / 1.392 GB, free: 13.67 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 7.601e-05/0.5791, allocations: 20.53 kB / 1.392 GB, free: 13.65 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.431e-05/0.5792, allocations: 39.42 kB / 1.392 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of SimCode: time 7.61e-07/0.5792, allocations: 0 / 1.392 GB, free: 13.61 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01668/0.5959, allocations: 3.289 MB / 1.395 GB, free: 10.47 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.5961, allocations: 187.8 kB / 1.396 GB, free: 10.23 MB / 0.9011 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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./Buildings_latest_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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1