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.0009443/0.0009444, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0008719/0.0008719, allocations: 190.3 kB / 16.25 MB, free: 6.617 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.12/1.12, allocations: 205.1 MB / 222.1 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.461/1.461, allocations: 292.2 MB / 0.5485 GB, free: 13.64 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.001174/0.001174, allocations: 66.19 kB / 0.671 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1687, allocations: 114.6 MB / 0.7829 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002638/0.1714, allocations: 1.663 MB / 0.7845 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008441/0.1722, allocations: 0.6477 MB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.564e-05/0.1723, allocations: 4 kB / 0.7851 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.1725, allocations: 19.92 kB / 0.7851 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.1727, allocations: 35.77 kB / 0.7852 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003176/0.173, allocations: 103.9 kB / 0.7853 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001883/0.1732, allocations: 187.6 kB / 0.7854 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.1733, allocations: 33.09 kB / 0.7855 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.1734, allocations: 87.7 kB / 0.7856 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.1735, allocations: 83.72 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.1736, allocations: 16 kB / 0.7857 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.623e-05/0.1736, allocations: 31.98 kB / 0.7857 GB, free: 10.97 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.65e-05/0.1737, allocations: 35.84 kB / 0.7857 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.302e-05/0.1738, allocations: 71.7 kB / 0.7858 GB, free: 10.87 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001817/0.174, allocations: 167.7 kB / 0.7859 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.174, allocations: 0 / 0.7859 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.373e-06/0.174, allocations: 0 / 0.7859 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.007e-06/0.174, allocations: 0 / 0.7859 GB, free: 10.7 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.0005643/0.1746, allocations: 0.5563 MB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.805e-05/0.1746, allocations: 12.03 kB / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.735e-05/0.1747, allocations: 20.75 kB / 0.7865 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.1749, allocations: 232.1 kB / 0.7867 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.1749, allocations: 8.375 kB / 0.7868 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.519e-05/0.175, allocations: 16.38 kB / 0.7868 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.1752, allocations: 109.7 kB / 0.7869 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1752, allocations: 0 / 0.7869 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.1752, allocations: 7.984 kB / 0.7869 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.1752, allocations: 0 / 0.7869 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.1754, allocations: 75.89 kB / 0.787 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005264/0.1759, allocations: 412.6 kB / 0.7873 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/0.1761, allocations: 94.56 kB / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001401/0.1763, allocations: 76.81 kB / 0.7875 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.1763, allocations: 0 / 0.7875 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002292/0.1765, allocations: 174.9 kB / 0.7877 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.1765, allocations: 0 / 0.7877 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006155/0.1772, allocations: 361 kB / 0.788 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.1773, allocations: 170.1 kB / 0.7882 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001347/0.1774, allocations: 174.6 kB / 0.7883 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.1774, allocations: 33.7 kB / 0.7884 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.288e-05/0.1775, allocations: 104.3 kB / 0.7885 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.1775, allocations: 31.64 kB / 0.7885 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.266e-05/0.1776, allocations: 41.64 kB / 0.7886 GB, free: 7.754 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.001e-05/0.1777, allocations: 334.8 kB / 0.7889 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.1778, allocations: 47.95 kB / 0.7889 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.1779, allocations: 110.8 kB / 0.789 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002889/0.1782, allocations: 305 kB / 0.7893 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.1783, allocations: 4 kB / 0.7893 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004639/0.1787, allocations: 344 kB / 0.7896 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.06e-05/0.1788, allocations: 122.8 kB / 0.7898 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.1788, allocations: 0 / 0.7898 GB, free: 6.363 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.1788, allocations: 4 kB / 0.7898 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1789, allocations: 24.17 kB / 0.7898 GB, free: 6.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.1789, allocations: 4 kB / 0.7898 GB, free: 6.332 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.133e-05/0.179, allocations: 15.98 kB / 0.7898 GB, free: 6.316 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.1791, allocations: 8 kB / 0.7898 GB, free: 6.309 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.0001329/0.1792, allocations: 196.8 kB / 0.79 GB, free: 6.098 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.043e-05/0.1792, allocations: 15.81 kB / 0.79 GB, free: 6.082 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.1793, allocations: 21.39 kB / 0.79 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1793, allocations: 0 / 0.79 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1793, allocations: 0 / 0.79 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1793, allocations: 4 kB / 0.79 GB, free: 6.055 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006341/0.1799, allocations: 0.5875 MB / 0.7906 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1799, allocations: 0 / 0.7906 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.923e-05/0.18, allocations: 11.94 kB / 0.7906 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.18, allocations: 0 / 0.7906 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.18, allocations: 15.98 kB / 0.7906 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.18, allocations: 0 / 0.7906 GB, free: 5.371 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.1801, allocations: 7.938 kB / 0.7906 GB, free: 5.363 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.1805, allocations: 406.5 kB / 0.791 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.806e-05/0.1806, allocations: 88.92 kB / 0.7911 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.368e-05/0.1806, allocations: 8 kB / 0.7911 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.1807, allocations: 11.98 kB / 0.7911 GB, free: 4.812 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.1808, allocations: 7.922 kB / 0.7911 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.777e-05/0.1808, allocations: 23.92 kB / 0.7912 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.853e-05/0.1809, allocations: 129.1 kB / 0.7913 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.1809, allocations: 0 / 0.7913 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002702/0.1812, allocations: 35.98 kB / 0.7913 GB, free: 4.621 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.0001871/0.1814, allocations: 131.8 kB / 0.7915 GB, free: 4.496 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004322/0.1818, allocations: 377.4 kB / 0.7918 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.1818, allocations: 0 / 0.7918 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001955/0.182, allocations: 198.8 kB / 0.792 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.1823, allocations: 23.98 kB / 0.792 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004832/0.1828, allocations: 320.3 kB / 0.7923 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.183, allocations: 0.7119 MB / 0.793 GB, free: 2.754 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.799e-05/0.1831, allocations: 20.53 kB / 0.793 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.725e-05/0.1831, allocations: 11.44 kB / 0.7931 GB, free: 2.727 MB / 0.6075 GB Notification: Performance of SimCode: time 3.2e-07/0.1831, allocations: 4 kB / 0.7931 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of Templates: time 0.004189/0.1873, allocations: 2.061 MB / 0.7951 GB, free: 0.6836 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)