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.0009896/0.0009896, allocations: 99.55 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.001086/0.001086, allocations: 177.3 kB / 15.94 MB, free: 228 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.352/1.352, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.051/1.051, allocations: 143.3 MB / 434.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003777/0.0003778, allocations: 8 kB / 0.5159 GB, free: 11.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.1863, allocations: 83.43 MB / 0.5974 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002182/0.1886, allocations: 1.288 MB / 0.5986 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009714/0.1896, allocations: 0.5537 MB / 0.5992 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.981e-05/0.1897, allocations: 4 kB / 0.5992 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.1898, allocations: 19.84 kB / 0.5992 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002141/0.1901, allocations: 39.88 kB / 0.5992 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.1905, allocations: 99.77 kB / 0.5993 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001756/0.1907, allocations: 91.83 kB / 0.5994 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.1908, allocations: 25.09 kB / 0.5994 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001723/0.191, allocations: 71.81 kB / 0.5995 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1911, allocations: 63.75 kB / 0.5996 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.192e-05/0.1911, allocations: 8 kB / 0.5996 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.299e-05/0.1912, allocations: 19.92 kB / 0.5996 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.72e-05/0.1913, allocations: 19.92 kB / 0.5996 GB, free: 5.5 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.855e-05/0.1913, allocations: 49.64 kB / 0.5997 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.1915, allocations: 124 kB / 0.5998 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.1915, allocations: 0 / 0.5998 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.423e-06/0.1916, allocations: 4 kB / 0.5998 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.327e-06/0.1916, allocations: 0 / 0.5998 GB, free: 5.32 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.0007106/0.1923, allocations: 0.5211 MB / 0.6003 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.1923, allocations: 12.02 kB / 0.6003 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.038e-05/0.1924, allocations: 38.56 kB / 0.6003 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/0.1925, allocations: 19.81 kB / 0.6003 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.1928, allocations: 230.7 kB / 0.6006 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.1929, allocations: 16 kB / 0.6006 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.1929, allocations: 8 kB / 0.6006 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.1932, allocations: 117.6 kB / 0.6007 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1932, allocations: 0 / 0.6007 GB, free: 4.238 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.1932, allocations: 4 kB / 0.6007 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1932, allocations: 0 / 0.6007 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002045/0.1934, allocations: 83.88 kB / 0.6008 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006812/0.1941, allocations: 424.5 kB / 0.6012 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.1943, allocations: 98.56 kB / 0.6013 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.346e-05/0.1944, allocations: 0 / 0.6013 GB, free: 3.582 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003074/0.1947, allocations: 182.7 kB / 0.6015 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1947, allocations: 4 kB / 0.6015 GB, free: 3.375 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0008002/0.1955, allocations: 0.5146 MB / 0.602 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.1956, allocations: 170.2 kB / 0.6021 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.1958, allocations: 174.6 kB / 0.6023 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.1958, allocations: 33.7 kB / 0.6023 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.597e-05/0.1959, allocations: 112.3 kB / 0.6024 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.1959, allocations: 19.72 kB / 0.6025 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.124e-05/0.1959, allocations: 4 kB / 0.6025 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1961, allocations: 326.8 kB / 0.6028 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.1962, allocations: 59.89 kB / 0.6028 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.1964, allocations: 106.8 kB / 0.6029 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002098/0.1966, allocations: 174.8 kB / 0.6031 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1966, allocations: 0 / 0.6031 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000531/0.1971, allocations: 360.2 kB / 0.6034 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.218e-05/0.1972, allocations: 118.8 kB / 0.6036 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.1972, allocations: 0 / 0.6036 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1973, allocations: 4 kB / 0.6036 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.1974, allocations: 19.98 kB / 0.6036 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1974, allocations: 7.891 kB / 0.6036 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.1975, allocations: 24.06 kB / 0.6036 GB, free: 0.9492 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.103e-05/0.1976, allocations: 11.98 kB / 0.6036 GB, free: 0.9375 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.0001522/0.1977, allocations: 193.2 kB / 0.6038 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.822e-05/0.1977, allocations: 15.81 kB / 0.6038 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.941e-05/0.1978, allocations: 17.41 kB / 0.6038 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1978, allocations: 0 / 0.6038 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.1978, allocations: 3.984 kB / 0.6038 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.1978, allocations: 3.953 kB / 0.6038 GB, free: 0.6797 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007172/0.1985, allocations: 0.5915 MB / 0.6044 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.1986, allocations: 0 / 0.6044 GB, free: 20 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.6e-05/0.1986, allocations: 12.27 kB / 0.6044 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.1986, allocations: 4 kB / 0.6044 GB, free: 4 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2867/0.4853, allocations: 6.859 kB / 0.6044 GB, free: 41.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.085e-06/0.4854, allocations: 9.641 kB / 0.6044 GB, free: 41.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.4854, allocations: 1.969 kB / 0.6045 GB, free: 41.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000734/0.4862, allocations: 408.3 kB / 0.6048 GB, free: 41.01 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.732e-05/0.4862, allocations: 92.02 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.091e-05/0.4863, allocations: 6.5 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.4864, allocations: 10.86 kB / 0.6049 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.4865, allocations: 12.28 kB / 0.605 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.4865, allocations: 12.5 kB / 0.605 GB, free: 40.91 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001028/0.4866, allocations: 128.6 kB / 0.6051 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4866, allocations: 3.016 kB / 0.6051 GB, free: 40.84 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004005/0.487, allocations: 34.12 kB / 0.6051 GB, free: 40.84 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.0008019/0.4878, allocations: 0.9698 MB / 0.6061 GB, free: 40.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004316/0.4883, allocations: 367.2 kB / 0.6064 GB, free: 39.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.4883, allocations: 3.469 kB / 0.6064 GB, free: 39.87 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001897/0.4885, allocations: 208.6 kB / 0.6066 GB, free: 39.75 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.4887, allocations: 26.17 kB / 0.6067 GB, free: 39.74 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009724/0.4897, allocations: 1.617 MB / 0.6082 GB, free: 38.28 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001686/0.4899, allocations: 0.7123 MB / 0.6089 GB, free: 37.59 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.431e-05/0.49, allocations: 23.47 kB / 0.6089 GB, free: 37.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.49, allocations: 41.7 kB / 0.609 GB, free: 37.58 MB / 0.4981 GB Notification: Performance of SimCode: time 8.12e-07/0.49, allocations: 0 / 0.609 GB, free: 37.58 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01344/0.5035, allocations: 3.363 MB / 0.6123 GB, free: 37.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001171/0.5036, allocations: 189.9 kB / 0.6125 GB, free: 37.03 MB / 0.4981 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 -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: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 -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: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 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