Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_8_Buildings_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.0008579/0.0008577, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004958/0.004958, allocations: 169.8 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.54/1.54, allocations: 292.7 MB / 0.5502 GB, free: 14.5 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004803/0.0004803, allocations: 17 kB / 0.6744 GB, free: 25.81 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1787, allocations: 116.3 MB / 0.788 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001669/0.1804, allocations: 1.328 MB / 0.7893 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009209/0.1813, allocations: 0.6673 MB / 0.7899 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.159e-05/0.1814, allocations: 0 / 0.7899 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.1815, allocations: 7.938 kB / 0.79 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.1817, allocations: 39.83 kB / 0.79 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003486/0.182, allocations: 103.8 kB / 0.7901 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.1822, allocations: 163.6 kB / 0.7902 GB, free: 9.199 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.1823, allocations: 33.09 kB / 0.7903 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.1824, allocations: 67.77 kB / 0.7903 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.1825, allocations: 75.73 kB / 0.7904 GB, free: 9.027 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.744e-05/0.1826, allocations: 4 kB / 0.7904 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.319e-05/0.1826, allocations: 23.97 kB / 0.7904 GB, free: 9 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.202e-05/0.1827, allocations: 23.86 kB / 0.7905 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.944e-05/0.1828, allocations: 93.41 kB / 0.7906 GB, free: 8.879 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.183, allocations: 159.7 kB / 0.7907 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.183, allocations: 0 / 0.7907 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/0.183, allocations: 0 / 0.7907 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.336e-06/0.183, allocations: 4 kB / 0.7907 GB, free: 8.719 MB / 0.6075 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.0005134/0.1835, allocations: 0.5174 MB / 0.7912 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.1836, allocations: 12.03 kB / 0.7912 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.49e-05/0.1836, allocations: 38.73 kB / 0.7913 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.196e-05/0.1837, allocations: 20.75 kB / 0.7913 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000239/0.1839, allocations: 240.1 kB / 0.7915 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1839, allocations: 8.375 kB / 0.7915 GB, free: 7.77 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.871e-05/0.184, allocations: 12.38 kB / 0.7915 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.1842, allocations: 125.5 kB / 0.7917 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.1842, allocations: 0 / 0.7917 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.1842, allocations: 3.984 kB / 0.7917 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1842, allocations: 4 kB / 0.7917 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001893/0.1844, allocations: 79.89 kB / 0.7917 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005628/0.185, allocations: 432.6 kB / 0.7921 GB, free: 7.07 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.1852, allocations: 94.56 kB / 0.7922 GB, free: 6.969 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/0.1853, allocations: 76.81 kB / 0.7923 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.1854, allocations: 8 kB / 0.7923 GB, free: 6.883 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002339/0.1856, allocations: 174.7 kB / 0.7925 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1856, allocations: 0 / 0.7925 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006488/0.1863, allocations: 372.8 kB / 0.7928 GB, free: 6.305 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/0.1864, allocations: 166.2 kB / 0.793 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.1865, allocations: 170.7 kB / 0.7932 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.1865, allocations: 33.7 kB / 0.7932 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.692e-05/0.1866, allocations: 104.3 kB / 0.7933 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.1866, allocations: 31.64 kB / 0.7933 GB, free: 5.75 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.347e-05/0.1867, allocations: 21.66 kB / 0.7933 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.1868, allocations: 334.8 kB / 0.7937 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.1869, allocations: 51.97 kB / 0.7937 GB, free: 5.336 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001582/0.1871, allocations: 114.8 kB / 0.7938 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.1874, allocations: 317 kB / 0.7941 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1874, allocations: 0 / 0.7941 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004861/0.1879, allocations: 356 kB / 0.7945 GB, free: 4.449 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.188, allocations: 118.8 kB / 0.7946 GB, free: 4.309 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.188, allocations: 4 kB / 0.7946 GB, free: 4.305 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.188, allocations: 4.281 kB / 0.7946 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.1881, allocations: 19.92 kB / 0.7946 GB, free: 4.281 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1881, allocations: 8.25 kB / 0.7946 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.26e-05/0.1882, allocations: 15.94 kB / 0.7946 GB, free: 4.258 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.1882, allocations: 11.98 kB / 0.7946 GB, free: 4.246 MB / 0.6075 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 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.1884, allocations: 197.7 kB / 0.7948 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.981e-05/0.1884, allocations: 19.81 kB / 0.7948 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.1885, allocations: 13.41 kB / 0.7949 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1885, allocations: 0 / 0.7949 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1885, allocations: 0 / 0.7949 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1885, allocations: 7.984 kB / 0.7949 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006722/0.1892, allocations: 0.5914 MB / 0.7954 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1892, allocations: 0 / 0.7954 GB, free: 3.328 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.107e-05/0.1892, allocations: 15.92 kB / 0.7955 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1893, allocations: 4 kB / 0.7955 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/0.1893, allocations: 12 kB / 0.7955 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1893, allocations: 0 / 0.7955 GB, free: 3.297 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1893, allocations: 3.938 kB / 0.7955 GB, free: 3.293 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004978/0.1898, allocations: 414.6 kB / 0.7959 GB, free: 2.859 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.038e-05/0.1898, allocations: 88.92 kB / 0.796 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/0.1899, allocations: 4 kB / 0.796 GB, free: 2.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.19, allocations: 15.98 kB / 0.796 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.865e-05/0.19, allocations: 7.938 kB / 0.796 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1901, allocations: 11.92 kB / 0.796 GB, free: 2.715 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.343e-05/0.1902, allocations: 133.1 kB / 0.7961 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1902, allocations: 0 / 0.7961 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002706/0.1904, allocations: 36 kB / 0.7962 GB, free: 2.551 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008326/0.1913, allocations: 0.9826 MB / 0.7971 GB, free: 1.535 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00043/0.1917, allocations: 365.8 kB / 0.7975 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.1917, allocations: 4.125 kB / 0.7975 GB, free: 1.125 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.192, allocations: 210.7 kB / 0.7977 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.1923, allocations: 23.92 kB / 0.7977 GB, free: 0.8711 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.1945, allocations: 2.15 MB / 0.7998 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.1947, allocations: 0.7199 MB / 0.8005 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 5.933e-05/0.1948, allocations: 24.47 kB / 0.8005 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.522e-05/0.1948, allocations: 35.42 kB / 0.8006 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of SimCode: time 3.6e-07/0.1948, allocations: 0 / 0.8006 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.782/1.976, allocations: 3.341 MB / 0.8038 GB, free: 10.56 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/1.977, allocations: 198.1 kB / 0.804 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/3.673, allocations: 0 / 0.804 GB, free: 10.3 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)