Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.0008909/0.0008908, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.00081/0.0008101, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9743/0.9743, allocations: 143.4 MB / 434.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003116/0.0003116, allocations: 12 kB / 0.5161 GB, free: 11.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1807, allocations: 83.41 MB / 0.5975 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.001803/0.1825, allocations: 1.299 MB / 0.5988 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008549/0.1834, allocations: 0.5654 MB / 0.5994 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.734e-05/0.1835, allocations: 3.938 kB / 0.5994 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.1836, allocations: 23.84 kB / 0.5994 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.1838, allocations: 31.84 kB / 0.5994 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000351/0.1842, allocations: 99.83 kB / 0.5995 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001677/0.1843, allocations: 147.6 kB / 0.5997 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.1844, allocations: 25.09 kB / 0.5997 GB, free: 5.512 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001169/0.1846, allocations: 67.77 kB / 0.5997 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.1847, allocations: 79.72 kB / 0.5998 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.1847, allocations: 8 kB / 0.5998 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.225e-05/0.1848, allocations: 19.98 kB / 0.5999 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.581e-05/0.1849, allocations: 27.91 kB / 0.5999 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.989e-05/0.1849, allocations: 49.64 kB / 0.5999 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.1851, allocations: 116 kB / 0.6 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1851, allocations: 8 kB / 0.6 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.352e-06/0.1851, allocations: 0 / 0.6 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.1851, allocations: 3.938 kB / 0.6 GB, free: 5.133 MB / 0.4981 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.000584/0.1857, allocations: 0.5211 MB / 0.6006 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.1858, allocations: 12.03 kB / 0.6006 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.1858, allocations: 38.56 kB / 0.6006 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.257e-05/0.1858, allocations: 27.81 kB / 0.6006 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002673/0.1861, allocations: 226.7 kB / 0.6008 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.1861, allocations: 12 kB / 0.6009 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.1862, allocations: 12 kB / 0.6009 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.1864, allocations: 113.6 kB / 0.601 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.1865, allocations: 0 / 0.601 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.1865, allocations: 4 kB / 0.601 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1865, allocations: 4 kB / 0.601 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.1867, allocations: 75.89 kB / 0.6011 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000626/0.1873, allocations: 428.5 kB / 0.6015 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001799/0.1875, allocations: 94.56 kB / 0.6016 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/0.1877, allocations: 84.81 kB / 0.6016 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.1877, allocations: 0 / 0.6016 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/0.188, allocations: 186.9 kB / 0.6018 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.188, allocations: 0 / 0.6018 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.000676/0.1887, allocations: 368.7 kB / 0.6022 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.449e-05/0.1888, allocations: 166.2 kB / 0.6023 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001476/0.1889, allocations: 174.6 kB / 0.6025 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.151e-05/0.189, allocations: 37.64 kB / 0.6025 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.494e-05/0.189, allocations: 112.3 kB / 0.6026 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.1891, allocations: 19.72 kB / 0.6027 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.011e-05/0.1891, allocations: 4.281 kB / 0.6027 GB, free: 2.16 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.1892, allocations: 326.8 kB / 0.603 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.1893, allocations: 55.95 kB / 0.603 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.1895, allocations: 118.7 kB / 0.6031 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001905/0.1897, allocations: 174.8 kB / 0.6033 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1897, allocations: 0 / 0.6033 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004962/0.1902, allocations: 356 kB / 0.6036 GB, free: 1.062 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.627e-05/0.1903, allocations: 119 kB / 0.6038 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1903, allocations: 4 kB / 0.6038 GB, free: 0.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1903, allocations: 4 kB / 0.6038 GB, free: 0.9141 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.1904, allocations: 15.98 kB / 0.6038 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1905, allocations: 7.953 kB / 0.6038 GB, free: 0.8906 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.1906, allocations: 19.94 kB / 0.6038 GB, free: 0.8711 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1906, allocations: 11.98 kB / 0.6038 GB, free: 0.8594 MB / 0.4981 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.0001581/0.1908, allocations: 197.2 kB / 0.604 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.1908, allocations: 19.81 kB / 0.604 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.509e-05/0.1908, allocations: 13.41 kB / 0.604 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1908, allocations: 0 / 0.604 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1909, allocations: 3.984 kB / 0.604 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1909, allocations: 3.953 kB / 0.604 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2984/0.4893, allocations: 0.5896 MB / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.4893, allocations: 0 / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.855e-05/0.4894, allocations: 12.41 kB / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.4894, allocations: 0.7188 kB / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.4894, allocations: 10.08 kB / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4894, allocations: 1.891 kB / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4895, allocations: 0.7812 kB / 0.6046 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005182/0.49, allocations: 414.5 kB / 0.605 GB, free: 40.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.49, allocations: 98 kB / 0.6051 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.4901, allocations: 4.641 kB / 0.6051 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.4902, allocations: 12.09 kB / 0.6051 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.4902, allocations: 10.61 kB / 0.6052 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.4903, allocations: 9.766 kB / 0.6052 GB, free: 40.56 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.721e-05/0.4904, allocations: 130.5 kB / 0.6053 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4904, allocations: 3.391 kB / 0.6053 GB, free: 40.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003289/0.4907, allocations: 35.88 kB / 0.6053 GB, free: 40.48 MB / 0.4981 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.0006642/0.4914, allocations: 0.9673 MB / 0.6063 GB, free: 39.77 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003586/0.4917, allocations: 368.7 kB / 0.6066 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4917, allocations: 0 / 0.6066 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001695/0.4919, allocations: 207.2 kB / 0.6068 GB, free: 39.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.4922, allocations: 24.17 kB / 0.6068 GB, free: 39.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.4935, allocations: 0.959 MB / 0.6078 GB, free: 38.95 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.4936, allocations: 0.7073 MB / 0.6085 GB, free: 38.26 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.369e-05/0.4937, allocations: 20.42 kB / 0.6085 GB, free: 38.26 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.141e-05/0.4937, allocations: 37.61 kB / 0.6085 GB, free: 38.25 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.4937, allocations: 0 / 0.6085 GB, free: 38.25 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01247/0.5062, allocations: 3.411 MB / 0.6119 GB, free: 37.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001135/0.5064, allocations: 190.8 kB / 0.612 GB, free: 37.69 MB / 0.4981 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter.o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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 -Wno-parentheses-equality -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 -c -o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: ./BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_includes.h:4:10: fatal error: 'fileWriterStructure.h' file not found #include "fileWriterStructure.h" ^~~~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1