Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.conf.json 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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 184 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5125/0.5125, allocations: 91.98 MB / 108.5 MB, free: 13.08 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 223.1 MB / 354.3 MB, free: 10.5 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001092, allocations: 107.2 kB / 427.4 MB, free: 2.168 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003733/0.0003734, allocations: 8 kB / 0.4983 GB, free: 41.98 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1647, allocations: 72.31 MB / 0.5689 GB, free: 1.605 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5161/0.6809, allocations: 103.6 MB / 0.6701 GB, free: 0.7266 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002336/0.6812, allocations: 79.95 kB / 0.6702 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01397/0.6952, allocations: 5.096 MB / 0.6752 GB, free: 11.54 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.6952, allocations: 0 / 0.6752 GB, free: 11.54 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.6952, allocations: 0 / 0.6752 GB, free: 11.54 MB / 474.7 MB 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.0006498/0.6959, allocations: 0.545 MB / 0.6757 GB, free: 10.93 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.6959, allocations: 8.031 kB / 0.6757 GB, free: 10.92 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/0.696, allocations: 42.55 kB / 0.6758 GB, free: 10.87 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.567e-05/0.6961, allocations: 19.86 kB / 0.6758 GB, free: 10.85 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.6964, allocations: 226.8 kB / 0.676 GB, free: 10.59 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.6964, allocations: 12 kB / 0.676 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.6965, allocations: 8 kB / 0.676 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002709/0.6967, allocations: 117.6 kB / 0.6761 GB, free: 10.45 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.6968, allocations: 0 / 0.6761 GB, free: 10.45 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.6968, allocations: 3.984 kB / 0.6761 GB, free: 10.44 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.6968, allocations: 7.953 kB / 0.6761 GB, free: 10.43 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001971/0.697, allocations: 71.95 kB / 0.6762 GB, free: 10.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007513/0.6978, allocations: 424.6 kB / 0.6766 GB, free: 9.898 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.698, allocations: 98.52 kB / 0.6767 GB, free: 9.793 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.6981, allocations: 16.11 kB / 0.6767 GB, free: 9.777 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003309/0.6984, allocations: 178.7 kB / 0.6769 GB, free: 9.578 MB / 474.7 MB Notification: Performance of pre-optimization done (n=10): time 1.823e-06/0.6984, allocations: 0 / 0.6769 GB, free: 9.578 MB / 474.7 MB Notification: Performance of matching and sorting (n=10): time 0.0009751/0.6994, allocations: 0.5145 MB / 0.6774 GB, free: 9.008 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.6996, allocations: 166.2 kB / 0.6776 GB, free: 8.809 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001852/0.6998, allocations: 149.8 kB / 0.6777 GB, free: 8.652 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.085e-05/0.6998, allocations: 33.7 kB / 0.6777 GB, free: 8.613 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.6999, allocations: 116.2 kB / 0.6778 GB, free: 8.492 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.7, allocations: 23.72 kB / 0.6779 GB, free: 8.469 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/0.7, allocations: 4 kB / 0.6779 GB, free: 8.465 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002292/0.7002, allocations: 326.8 kB / 0.6782 GB, free: 8.137 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.7004, allocations: 55.95 kB / 0.6782 GB, free: 8.082 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.7006, allocations: 102.8 kB / 0.6783 GB, free: 7.957 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.7008, allocations: 186.7 kB / 0.6785 GB, free: 7.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.7008, allocations: 0 / 0.6785 GB, free: 7.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000572/0.7014, allocations: 356.2 kB / 0.6789 GB, free: 7.371 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.805e-05/0.7015, allocations: 118.8 kB / 0.679 GB, free: 7.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.7016, allocations: 7.953 kB / 0.679 GB, free: 7.223 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.545e-05/0.7016, allocations: 4 kB / 0.679 GB, free: 7.219 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001295/0.7017, allocations: 19.98 kB / 0.679 GB, free: 7.199 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.7017, allocations: 4 kB / 0.679 GB, free: 7.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.7019, allocations: 15.94 kB / 0.679 GB, free: 7.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/0.7019, allocations: 15.98 kB / 0.679 GB, free: 7.164 MB / 474.7 MB 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.0002026/0.7021, allocations: 200.5 kB / 0.6792 GB, free: 6.949 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.393e-05/0.7022, allocations: 19.81 kB / 0.6792 GB, free: 6.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.369e-05/0.7022, allocations: 13.41 kB / 0.6793 GB, free: 6.914 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.7022, allocations: 3.953 kB / 0.6793 GB, free: 6.91 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.7022, allocations: 0 / 0.6793 GB, free: 6.91 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.303e-06/0.7023, allocations: 3.984 kB / 0.6793 GB, free: 6.906 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008311/0.7031, allocations: 0.5838 MB / 0.6798 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/0.7031, allocations: 288 / 0.6798 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.863e-05/0.7032, allocations: 15.98 kB / 0.6799 GB, free: 6.238 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.7032, allocations: 7.891 kB / 0.6799 GB, free: 6.23 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.074e-05/0.7032, allocations: 11.94 kB / 0.6799 GB, free: 6.219 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.7032, allocations: 4 kB / 0.6799 GB, free: 6.215 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.7033, allocations: 0 / 0.6799 GB, free: 6.215 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000583/0.7038, allocations: 418.6 kB / 0.6803 GB, free: 5.777 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.581e-05/0.7039, allocations: 85.02 kB / 0.6804 GB, free: 5.676 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.958e-05/0.704, allocations: 11.94 kB / 0.6804 GB, free: 5.664 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001179/0.7041, allocations: 12 kB / 0.6804 GB, free: 5.652 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.811e-05/0.7041, allocations: 7.984 kB / 0.6804 GB, free: 5.645 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.7042, allocations: 8 kB / 0.6804 GB, free: 5.637 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001113/0.7043, allocations: 132.3 kB / 0.6805 GB, free: 5.508 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7043, allocations: 4 kB / 0.6805 GB, free: 5.504 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002788/0.7046, allocations: 35.84 kB / 0.6806 GB, free: 5.469 MB / 474.7 MB 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.0009892/0.7056, allocations: 0.9639 MB / 0.6815 GB, free: 4.473 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0005173/0.7061, allocations: 373.4 kB / 0.6819 GB, free: 4.059 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7061, allocations: 0 / 0.6819 GB, free: 4.059 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.7064, allocations: 206.8 kB / 0.682 GB, free: 3.832 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002593/0.7066, allocations: 27.14 kB / 0.6821 GB, free: 3.805 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001318/0.708, allocations: 1.618 MB / 0.6837 GB, free: 2.109 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.7083, allocations: 0.7121 MB / 0.6844 GB, free: 1.371 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.62e-05/0.7084, allocations: 20.53 kB / 0.6844 GB, free: 1.352 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.677e-05/0.7084, allocations: 35.42 kB / 0.6844 GB, free: 1.316 MB / 474.7 MB Notification: Performance of SimCode: time 3.81e-07/0.7084, allocations: 0 / 0.6844 GB, free: 1.316 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01444/0.7229, allocations: 3.284 MB / 0.6876 GB, free: 14.17 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001773/0.7231, allocations: 173 kB / 0.6878 GB, free: 13.93 MB / 490.7 MB 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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./IBPSA_latest_IBPSA_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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: *** [: IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1