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/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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/BuildSysPro 3.5.0/package.mo): time 0.7073/0.7073, allocations: 127.3 MB / 139.8 MB, free: 15.44 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001016/0.001016, allocations: 172.9 kB / 169.7 MB, free: 1.75 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.943/1.943, allocations: 205.1 MB / 404.5 MB, free: 1.652 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 94.16 kB / 481.8 MB, free: 4.301 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.972e-05/3.974e-05, allocations: 4 kB / 0.5533 GB, free: 54.74 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1874, allocations: 76.76 MB / 0.6283 GB, free: 9.926 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6196/0.807, allocations: 104.6 MB / 0.7304 GB, free: 8.816 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.8072, allocations: 80.64 kB / 0.7304 GB, free: 8.773 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007432/0.8147, allocations: 2.565 MB / 0.733 GB, free: 6.523 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.8147, allocations: 0 / 0.733 GB, free: 6.523 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.839e-05/0.8148, allocations: 4 kB / 0.733 GB, free: 6.52 MB / 490.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.0007336/0.8155, allocations: 0.4962 MB / 0.7334 GB, free: 5.965 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.238e-05/0.8156, allocations: 12.03 kB / 0.7335 GB, free: 5.953 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.389e-05/0.8157, allocations: 41.98 kB / 0.7335 GB, free: 5.906 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.8157, allocations: 19.77 kB / 0.7335 GB, free: 5.887 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004098/0.8161, allocations: 221.9 kB / 0.7337 GB, free: 5.637 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.8162, allocations: 4 kB / 0.7337 GB, free: 5.633 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.8162, allocations: 11.56 kB / 0.7337 GB, free: 5.625 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.8165, allocations: 88.16 kB / 0.7338 GB, free: 5.547 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.8165, allocations: 4 kB / 0.7338 GB, free: 5.543 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.792e-05/0.8166, allocations: 4 kB / 0.7338 GB, free: 5.539 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.8166, allocations: 3.953 kB / 0.7338 GB, free: 5.535 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000108/0.8167, allocations: 49.48 kB / 0.7339 GB, free: 5.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.8174, allocations: 390.4 kB / 0.7343 GB, free: 5.113 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.8176, allocations: 73.33 kB / 0.7343 GB, free: 5.047 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.622e-05/0.8177, allocations: 58.34 kB / 0.7344 GB, free: 5.004 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.8177, allocations: 8.141 kB / 0.7344 GB, free: 4.996 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.818, allocations: 160.2 kB / 0.7345 GB, free: 4.832 MB / 490.7 MB Notification: Performance of pre-optimization done (n=10): time 1.653e-06/0.818, allocations: 0 / 0.7345 GB, free: 4.832 MB / 490.7 MB Notification: Performance of matching and sorting (n=10): time 0.000491/0.8185, allocations: 247.5 kB / 0.7348 GB, free: 4.605 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.8186, allocations: 161.1 kB / 0.7349 GB, free: 4.414 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.8188, allocations: 152 kB / 0.7351 GB, free: 4.277 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.8189, allocations: 29.7 kB / 0.7351 GB, free: 4.242 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.904e-05/0.819, allocations: 106.7 kB / 0.7352 GB, free: 4.148 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/0.819, allocations: 27.45 kB / 0.7352 GB, free: 4.125 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.577e-06/0.819, allocations: 3.5 kB / 0.7352 GB, free: 4.125 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.8192, allocations: 322.1 kB / 0.7355 GB, free: 3.805 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.693e-05/0.8193, allocations: 42.48 kB / 0.7356 GB, free: 3.773 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.8194, allocations: 80.92 kB / 0.7357 GB, free: 3.684 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.8196, allocations: 169.1 kB / 0.7358 GB, free: 3.508 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.609e-05/0.8196, allocations: 4 kB / 0.7358 GB, free: 3.504 MB / 490.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000418/0.82, allocations: 291.4 kB / 0.7361 GB, free: 3.219 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.96e-05/0.8202, allocations: 122.6 kB / 0.7362 GB, free: 3.078 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.8202, allocations: 8.141 kB / 0.7362 GB, free: 3.07 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.827e-05/0.8202, allocations: 8 kB / 0.7362 GB, free: 3.062 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.8204, allocations: 15.98 kB / 0.7362 GB, free: 3.047 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.8204, allocations: 4 kB / 0.7363 GB, free: 3.043 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.8205, allocations: 11.91 kB / 0.7363 GB, free: 3.031 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.43e-05/0.8205, allocations: 11.98 kB / 0.7363 GB, free: 3.02 MB / 490.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 () * 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.0001512/0.8207, allocations: 174.8 kB / 0.7364 GB, free: 2.836 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.772e-05/0.8207, allocations: 15.84 kB / 0.7365 GB, free: 2.82 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.528e-05/0.8208, allocations: 24.08 kB / 0.7365 GB, free: 2.801 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.8208, allocations: 3.953 kB / 0.7365 GB, free: 2.797 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.8208, allocations: 0 / 0.7365 GB, free: 2.797 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.8208, allocations: 0 / 0.7365 GB, free: 2.797 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006275/0.8215, allocations: 0.5197 MB / 0.737 GB, free: 2.266 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.8215, allocations: 4 kB / 0.737 GB, free: 2.262 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.587e-05/0.8215, allocations: 11.98 kB / 0.737 GB, free: 2.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.8216, allocations: 3.953 kB / 0.737 GB, free: 2.246 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.8216, allocations: 11.98 kB / 0.737 GB, free: 2.234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.8216, allocations: 0 / 0.737 GB, free: 2.234 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8216, allocations: 8 kB / 0.737 GB, free: 2.227 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004154/0.822, allocations: 348.7 kB / 0.7374 GB, free: 1.898 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.245e-05/0.8221, allocations: 100.8 kB / 0.7375 GB, free: 1.781 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.8221, allocations: 7.953 kB / 0.7375 GB, free: 1.773 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.8223, allocations: 11.75 kB / 0.7375 GB, free: 1.766 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.489e-05/0.8223, allocations: 11.98 kB / 0.7375 GB, free: 1.754 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.548e-05/0.8223, allocations: 4 kB / 0.7375 GB, free: 1.75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.8225, allocations: 131.6 kB / 0.7376 GB, free: 1.637 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8225, allocations: 0 / 0.7376 GB, free: 1.637 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002699/0.8227, allocations: 35.06 kB / 0.7377 GB, free: 1.605 MB / 490.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) * 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.0009269/0.8237, allocations: 0.9069 MB / 0.7385 GB, free: 0.707 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0003981/0.8241, allocations: 326 kB / 0.7388 GB, free: 376 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.8241, allocations: 0 / 0.7388 GB, free: 376 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001905/0.8243, allocations: 180.7 kB / 0.739 GB, free: 196 kB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.8245, allocations: 13.88 kB / 0.739 GB, free: 184 kB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000648/0.8251, allocations: 238.5 kB / 0.7393 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.8255, allocations: 0.7153 MB / 0.74 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 6.818e-05/0.8256, allocations: 16.42 kB / 0.74 GB, free: 15.18 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.888e-05/0.8256, allocations: 30.36 kB / 0.74 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of SimCode: time 4.2e-07/0.8257, allocations: 4 kB / 0.74 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.8418, allocations: 2.922 MB / 0.7429 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.8421, allocations: 162.9 kB / 0.743 GB, free: 12.14 MB / 0.4948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -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:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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