Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="IDEAS_dev_IDEAS_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.001465/0.001465, allocations: 99.86 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.001993/0.001993, 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 2.327/2.327, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.509/1.509, allocations: 135.2 MB / 426.2 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005659/0.000566, allocations: 8.625 kB / 0.5069 GB, free: 5.137 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1778, allocations: 82.31 MB / 0.5873 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001872/0.1797, allocations: 1.288 MB / 0.5885 GB, free: 1.695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009105/0.1807, allocations: 0.5499 MB / 0.5891 GB, free: 1.141 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.1807, allocations: 7.938 kB / 0.5891 GB, free: 1.133 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.1809, allocations: 11.92 kB / 0.5891 GB, free: 1.121 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001853/0.1811, allocations: 43.88 kB / 0.5891 GB, free: 1.078 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003481/0.1814, allocations: 95.77 kB / 0.5892 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.1816, allocations: 91.83 kB / 0.5893 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.1817, allocations: 29.09 kB / 0.5893 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001314/0.1818, allocations: 67.81 kB / 0.5894 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001188/0.182, allocations: 71.73 kB / 0.5895 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.613e-05/0.182, allocations: 4 kB / 0.5895 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.365e-05/0.1821, allocations: 15.94 kB / 0.5895 GB, free: 0.707 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.703e-05/0.1821, allocations: 19.92 kB / 0.5895 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.334e-05/0.1822, allocations: 49.64 kB / 0.5896 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.1824, allocations: 123.9 kB / 0.5897 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.1824, allocations: 0 / 0.5897 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1824, allocations: 8 kB / 0.5897 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.468e-06/0.1824, allocations: 0 / 0.5897 GB, free: 0.5039 MB / 494.1 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.0006582/0.1831, allocations: 0.519 MB / 0.5902 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1831, allocations: 12.03 kB / 0.5902 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.1831, allocations: 42.55 kB / 0.5902 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.437e-05/0.1832, allocations: 15.84 kB / 0.5903 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003007/0.1835, allocations: 240.1 kB / 0.5905 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.1835, allocations: 16 kB / 0.5905 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.728e-05/0.1836, allocations: 12 kB / 0.5905 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002505/0.1838, allocations: 113.6 kB / 0.5906 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.1838, allocations: 0 / 0.5906 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.1839, allocations: 4 kB / 0.5906 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.1839, allocations: 0 / 0.5906 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1841, allocations: 79.89 kB / 0.5907 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006351/0.1847, allocations: 426.4 kB / 0.5911 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.1849, allocations: 90.56 kB / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.1849, allocations: 8 kB / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002809/0.1852, allocations: 178.7 kB / 0.5914 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.1852, allocations: 0 / 0.5914 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.000764/0.186, allocations: 0.5069 MB / 0.5919 GB, free: 14 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.604e-05/0.1861, allocations: 166.2 kB / 0.592 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.1863, allocations: 192.3 kB / 0.5922 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.201e-05/0.1863, allocations: 29.7 kB / 0.5922 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/0.1864, allocations: 112.4 kB / 0.5923 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.1865, allocations: 23.66 kB / 0.5924 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.132e-05/0.1865, allocations: 4 kB / 0.5924 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001207/0.1866, allocations: 326.8 kB / 0.5927 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1867, allocations: 51.97 kB / 0.5927 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.1869, allocations: 113.9 kB / 0.5928 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002105/0.1871, allocations: 178.8 kB / 0.593 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1871, allocations: 4 kB / 0.593 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004909/0.1876, allocations: 352.1 kB / 0.5933 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.639e-05/0.1877, allocations: 122.8 kB / 0.5935 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1877, allocations: 3.938 kB / 0.5935 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.1878, allocations: 4 kB / 0.5935 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.1879, allocations: 19.98 kB / 0.5935 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1879, allocations: 0 / 0.5935 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.188, allocations: 36.03 kB / 0.5935 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.015e-05/0.188, allocations: 8 kB / 0.5935 GB, free: 12.12 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.000151/0.1882, allocations: 196.5 kB / 0.5937 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.839e-05/0.1882, allocations: 15.81 kB / 0.5937 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.815e-05/0.1883, allocations: 21.39 kB / 0.5938 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1883, allocations: 0 / 0.5938 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1883, allocations: 0 / 0.5938 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1883, allocations: 4 kB / 0.5938 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007082/0.189, allocations: 0.5992 MB / 0.5943 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.189, allocations: 0 / 0.5943 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.551e-05/0.1891, allocations: 12 kB / 0.5944 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1891, allocations: 0 / 0.5944 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.1891, allocations: 15.97 kB / 0.5944 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.1891, allocations: 80 / 0.5944 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1891, allocations: 3.984 kB / 0.5944 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005237/0.1897, allocations: 406.6 kB / 0.5948 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-05/0.1897, allocations: 88.92 kB / 0.5949 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.714e-05/0.1898, allocations: 19.92 kB / 0.5949 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1899, allocations: 8 kB / 0.5949 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.19, allocations: 7.984 kB / 0.5949 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.784e-05/0.19, allocations: 12 kB / 0.5949 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.359e-05/0.1901, allocations: 132.2 kB / 0.595 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1901, allocations: 0 / 0.595 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003239/0.1904, allocations: 36 kB / 0.5951 GB, free: 10.42 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.0009128/0.1913, allocations: 0.9639 MB / 0.596 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004787/0.1918, allocations: 365.4 kB / 0.5963 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1918, allocations: 4.438 kB / 0.5964 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002334/0.1921, allocations: 218.7 kB / 0.5966 GB, free: 8.773 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002086/0.1923, allocations: 15.14 kB / 0.5966 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.1935, allocations: 1.613 MB / 0.5981 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.1938, allocations: 0.716 MB / 0.5988 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.555e-05/0.1939, allocations: 20.53 kB / 0.5989 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.741e-05/0.1939, allocations: 39.42 kB / 0.5989 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of SimCode: time 5.31e-07/0.1939, allocations: 0 / 0.5989 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01453/0.2085, allocations: 3.306 MB / 0.6021 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/0.2087, allocations: 178.4 kB / 0.6023 GB, free: 2.875 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 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -c -o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.c In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter.c:7: In file included from ./IDEAS_dev_IDEAS_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 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -c -o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.o IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c In file included from IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c:2: In file included from ./IDEAS_dev_IDEAS_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 IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.c:7: In file included from ./IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_includes.h:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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: *** [: IDEAS_dev_IDEAS_Utilities_IO_Files_Examples_CSVWriter_functions.o] Error 1