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: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009799/0.00098, allocations: 198.8 kB / 16.14 MB, free: 6.656 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.263/1.263, allocations: 205.1 MB / 222 MB, free: 4.746 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.584/1.584, allocations: 292.2 MB / 0.5484 GB, free: 13.67 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.001253/0.001253, allocations: 66.56 kB / 0.6708 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1719, allocations: 114.5 MB / 0.7827 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002492/0.1745, allocations: 1.667 MB / 0.7843 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008599/0.1753, allocations: 0.675 MB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.1754, allocations: 0 / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.1756, allocations: 23.91 kB / 0.785 GB, free: 11.63 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.1757, allocations: 35.83 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.1761, allocations: 99.84 kB / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001372/0.1762, allocations: 159.6 kB / 0.7853 GB, free: 11.34 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.558e-05/0.1763, allocations: 29.03 kB / 0.7853 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.1764, allocations: 79.75 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.1766, allocations: 83.72 kB / 0.7854 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.1766, allocations: 4 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.145e-05/0.1767, allocations: 24 kB / 0.7855 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.854e-05/0.1767, allocations: 31.84 kB / 0.7855 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.627e-05/0.1768, allocations: 63.72 kB / 0.7856 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000173/0.177, allocations: 163.7 kB / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.177, allocations: 0 / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.61e-07/0.177, allocations: 0 / 0.7857 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.526e-06/0.177, allocations: 0 / 0.7857 GB, free: 10.87 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.000564/0.1776, allocations: 0.5602 MB / 0.7863 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.1776, allocations: 8.031 kB / 0.7863 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.1777, allocations: 20.75 kB / 0.7863 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.1779, allocations: 228.2 kB / 0.7865 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.178, allocations: 16.31 kB / 0.7865 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.178, allocations: 12.38 kB / 0.7865 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.1782, allocations: 113.7 kB / 0.7866 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.176e-06/0.1783, allocations: 4 kB / 0.7867 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.1783, allocations: 4 kB / 0.7867 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1783, allocations: 0 / 0.7867 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.1785, allocations: 71.94 kB / 0.7867 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005473/0.179, allocations: 416.6 kB / 0.7871 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001658/0.1792, allocations: 86.53 kB / 0.7872 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001408/0.1794, allocations: 72.91 kB / 0.7873 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.1794, allocations: 3.938 kB / 0.7873 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.1796, allocations: 182.7 kB / 0.7875 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.1796, allocations: 0 / 0.7875 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006438/0.1803, allocations: 364.8 kB / 0.7878 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/0.1804, allocations: 158.2 kB / 0.788 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001362/0.1805, allocations: 178.6 kB / 0.7881 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.1805, allocations: 29.7 kB / 0.7882 GB, free: 8.109 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.1806, allocations: 108.3 kB / 0.7883 GB, free: 8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.1806, allocations: 27.64 kB / 0.7883 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.055e-05/0.1807, allocations: 45.7 kB / 0.7883 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.491e-05/0.1808, allocations: 334.7 kB / 0.7886 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.1809, allocations: 47.97 kB / 0.7887 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.1811, allocations: 109.8 kB / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002857/0.1814, allocations: 308.9 kB / 0.7891 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1814, allocations: 0 / 0.7891 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004538/0.1818, allocations: 348 kB / 0.7894 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/0.1819, allocations: 119 kB / 0.7895 GB, free: 6.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.553e-06/0.1819, allocations: 8 kB / 0.7895 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1819, allocations: 4 kB / 0.7895 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.182, allocations: 19.98 kB / 0.7896 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.1821, allocations: 7.938 kB / 0.7896 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.047e-05/0.1822, allocations: 8 kB / 0.7896 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.1822, allocations: 11.98 kB / 0.7896 GB, free: 6.477 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.0001306/0.1823, allocations: 196.8 kB / 0.7898 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.126e-05/0.1824, allocations: 19.81 kB / 0.7898 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.381e-05/0.1824, allocations: 17.41 kB / 0.7898 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1824, allocations: 0 / 0.7898 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1824, allocations: 3.984 kB / 0.7898 GB, free: 6.223 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1824, allocations: 3.984 kB / 0.7898 GB, free: 6.219 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006202/0.183, allocations: 0.5875 MB / 0.7904 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1831, allocations: 0 / 0.7904 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-05/0.1831, allocations: 11.98 kB / 0.7904 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.1831, allocations: 4 kB / 0.7904 GB, free: 5.547 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/0.1832, allocations: 15.94 kB / 0.7904 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.1832, allocations: 3.984 kB / 0.7904 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.1832, allocations: 3.938 kB / 0.7904 GB, free: 5.523 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.1837, allocations: 398.9 kB / 0.7908 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.525e-05/0.1837, allocations: 88.92 kB / 0.7909 GB, free: 5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.1837, allocations: 4 kB / 0.7909 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.1839, allocations: 8 kB / 0.7909 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.1839, allocations: 15.92 kB / 0.7909 GB, free: 4.973 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.1839, allocations: 15.92 kB / 0.7909 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.24e-05/0.184, allocations: 133 kB / 0.7911 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.184, allocations: 0 / 0.7911 GB, free: 4.828 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002636/0.1843, allocations: 32 kB / 0.7911 GB, free: 4.797 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.000198/0.1845, allocations: 130.8 kB / 0.7912 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004102/0.1849, allocations: 353.5 kB / 0.7916 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1849, allocations: 0 / 0.7916 GB, free: 4.27 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.1852, allocations: 211.2 kB / 0.7918 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003602/0.1855, allocations: 29.73 kB / 0.7918 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004958/0.186, allocations: 317.7 kB / 0.7921 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.1862, allocations: 0.7082 MB / 0.7928 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.679e-05/0.1863, allocations: 16.55 kB / 0.7928 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.1863, allocations: 19.42 kB / 0.7928 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.1863, allocations: 0 / 0.7928 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of Templates: time 0.004196/0.1905, allocations: 2.002 MB / 0.7948 GB, free: 0.9297 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (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 & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)