Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001043/0.001043, allocations: 93.42 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 177.7 kB / 16.92 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6969/0.6969, allocations: 115.4 MB / 407.5 MB, free: 2.777 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 8 kB / 495.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1722, allocations: 77.51 MB / 0.5598 GB, free: 9.16 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.002168/0.1745, allocations: 1.317 MB / 0.5611 GB, free: 7.832 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.1756, allocations: 0.6157 MB / 0.5617 GB, free: 7.211 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.159e-05/0.1758, allocations: 0 / 0.5617 GB, free: 7.211 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001755/0.1759, allocations: 19.91 kB / 0.5617 GB, free: 7.191 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.1762, allocations: 39.77 kB / 0.5617 GB, free: 7.152 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004414/0.1766, allocations: 95.91 kB / 0.5618 GB, free: 7.059 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.1768, allocations: 163.6 kB / 0.562 GB, free: 6.898 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.177, allocations: 29.09 kB / 0.562 GB, free: 6.871 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.1771, allocations: 75.77 kB / 0.5621 GB, free: 6.797 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.1773, allocations: 75.72 kB / 0.5622 GB, free: 6.723 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.328e-05/0.1773, allocations: 8 kB / 0.5622 GB, free: 6.715 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.457e-05/0.1774, allocations: 16 kB / 0.5622 GB, free: 6.699 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.14e-05/0.1775, allocations: 35.83 kB / 0.5622 GB, free: 6.664 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.306e-05/0.1776, allocations: 85.44 kB / 0.5623 GB, free: 6.574 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.1778, allocations: 159.8 kB / 0.5624 GB, free: 6.418 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1778, allocations: 0 / 0.5624 GB, free: 6.418 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1778, allocations: 0 / 0.5624 GB, free: 6.418 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.1778, allocations: 0 / 0.5624 GB, free: 6.418 MB / 430.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.0006397/0.1784, allocations: 0.529 MB / 0.563 GB, free: 5.816 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.1785, allocations: 8.031 kB / 0.563 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/0.1786, allocations: 20.75 kB / 0.563 GB, free: 5.789 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1789, allocations: 232.2 kB / 0.5632 GB, free: 5.523 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.1789, allocations: 16.38 kB / 0.5632 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.1789, allocations: 12.38 kB / 0.5632 GB, free: 5.496 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.1792, allocations: 117.7 kB / 0.5633 GB, free: 5.375 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.1793, allocations: 0 / 0.5633 GB, free: 5.375 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.1793, allocations: 4 kB / 0.5634 GB, free: 5.371 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1793, allocations: 0 / 0.5634 GB, free: 5.371 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002223/0.1795, allocations: 87.88 kB / 0.5634 GB, free: 5.285 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006741/0.1802, allocations: 416.6 kB / 0.5638 GB, free: 4.828 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/0.1804, allocations: 94.56 kB / 0.5639 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.1806, allocations: 76.81 kB / 0.564 GB, free: 4.648 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.1806, allocations: 12.14 kB / 0.564 GB, free: 4.637 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.1809, allocations: 182.7 kB / 0.5642 GB, free: 4.434 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.1809, allocations: 0 / 0.5642 GB, free: 4.434 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.00075/0.1817, allocations: 364.7 kB / 0.5645 GB, free: 4.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.402e-05/0.1818, allocations: 166.2 kB / 0.5647 GB, free: 3.859 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000182/0.182, allocations: 182.6 kB / 0.5649 GB, free: 3.668 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.587e-05/0.182, allocations: 29.7 kB / 0.5649 GB, free: 3.633 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.506e-05/0.1821, allocations: 112.3 kB / 0.565 GB, free: 3.516 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.106e-05/0.1821, allocations: 27.64 kB / 0.565 GB, free: 3.488 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.092e-05/0.1822, allocations: 25.7 kB / 0.5651 GB, free: 3.457 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1823, allocations: 334.8 kB / 0.5654 GB, free: 3.121 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.1825, allocations: 55.95 kB / 0.5654 GB, free: 3.066 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.1826, allocations: 110.8 kB / 0.5655 GB, free: 2.934 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.183, allocations: 309 kB / 0.5658 GB, free: 2.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.183, allocations: 4 kB / 0.5658 GB, free: 2.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005609/0.1836, allocations: 360 kB / 0.5662 GB, free: 2.184 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.431e-05/0.1837, allocations: 114.8 kB / 0.5663 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1837, allocations: 4 kB / 0.5663 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1837, allocations: 0 / 0.5663 GB, free: 2.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.1838, allocations: 27.92 kB / 0.5663 GB, free: 2.016 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1839, allocations: 4.25 kB / 0.5663 GB, free: 2.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.184, allocations: 19.92 kB / 0.5663 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.184, allocations: 8 kB / 0.5663 GB, free: 1.984 MB / 430.1 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 (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.0001802/0.1842, allocations: 200.3 kB / 0.5665 GB, free: 1.77 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.1842, allocations: 19.8 kB / 0.5666 GB, free: 1.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.965e-05/0.1843, allocations: 17.39 kB / 0.5666 GB, free: 1.734 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1843, allocations: 7.938 kB / 0.5666 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1843, allocations: 0 / 0.5666 GB, free: 1.727 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.1843, allocations: 4 kB / 0.5666 GB, free: 1.723 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007615/0.1851, allocations: 0.5879 MB / 0.5672 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1851, allocations: 7.875 kB / 0.5672 GB, free: 1.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.182e-05/0.1852, allocations: 12 kB / 0.5672 GB, free: 1.047 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1852, allocations: 4 kB / 0.5672 GB, free: 1.043 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.1852, allocations: 11.98 kB / 0.5672 GB, free: 1.031 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.105e-06/0.1852, allocations: 4.078 kB / 0.5672 GB, free: 1.027 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.1852, allocations: 7.922 kB / 0.5672 GB, free: 1.02 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005673/0.1858, allocations: 414.6 kB / 0.5676 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.913e-05/0.1859, allocations: 88.92 kB / 0.5677 GB, free: 492 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.1859, allocations: 7.984 kB / 0.5677 GB, free: 484 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.186, allocations: 12 kB / 0.5677 GB, free: 472 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.29e-05/0.1861, allocations: 15.86 kB / 0.5677 GB, free: 456 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.1861, allocations: 8 kB / 0.5677 GB, free: 448 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.1862, allocations: 136.3 kB / 0.5679 GB, free: 312 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1862, allocations: 0 / 0.5679 GB, free: 312 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003025/0.1865, allocations: 36 kB / 0.5679 GB, free: 276 kB / 430.1 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) * 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.0002294/0.1868, allocations: 125.8 kB / 0.568 GB, free: 148 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0005196/0.1873, allocations: 373.5 kB / 0.5684 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1873, allocations: 0 / 0.5684 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002475/0.1876, allocations: 210.8 kB / 0.5686 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.1879, allocations: 12 kB / 0.5686 GB, free: 15.49 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006004/0.1885, allocations: 330.3 kB / 0.5689 GB, free: 15.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.1888, allocations: 0.7083 MB / 0.5696 GB, free: 14.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.01e-05/0.1889, allocations: 20.53 kB / 0.5696 GB, free: 14.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.1889, allocations: 11.44 kB / 0.5696 GB, free: 14.37 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1889, allocations: 0 / 0.5696 GB, free: 14.37 MB / 446.1 MB Notification: Performance of Templates: time 0.00519/0.1941, allocations: 1.979 MB / 0.5715 GB, free: 12.43 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)