Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0008289/0.0008289, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001014/0.001014, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 223.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001706/0.001706, allocations: 274.4 kB / 291.4 MB, free: 1.961 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9174/0.9174, allocations: 169.5 MB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000424/0.000424, allocations: 10.12 kB / 0.598 GB, free: 28.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1777, allocations: 88.54 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.00177/0.1795, allocations: 1.302 MB / 0.6858 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007709/0.1803, allocations: 0.5682 MB / 0.6863 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.1804, allocations: 4 kB / 0.6863 GB, free: 13.57 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001429/0.1806, allocations: 19.91 kB / 0.6863 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.1807, allocations: 39.7 kB / 0.6864 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003445/0.1811, allocations: 95.89 kB / 0.6865 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.1812, allocations: 143.6 kB / 0.6866 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.131e-05/0.1813, allocations: 26.58 kB / 0.6866 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1815, allocations: 76.25 kB / 0.6867 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.1816, allocations: 76.44 kB / 0.6868 GB, free: 13.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.1816, allocations: 8 kB / 0.6868 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.283e-05/0.1817, allocations: 26.16 kB / 0.6868 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.359e-05/0.1818, allocations: 27.91 kB / 0.6868 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.017e-05/0.1818, allocations: 49.64 kB / 0.6869 GB, free: 13 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.182, allocations: 116 kB / 0.687 GB, free: 12.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.182, allocations: 0 / 0.687 GB, free: 12.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.877e-06/0.182, allocations: 0 / 0.687 GB, free: 12.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.182, allocations: 4.438 kB / 0.687 GB, free: 12.88 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.0005421/0.1825, allocations: 0.5224 MB / 0.6875 GB, free: 12.29 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.1826, allocations: 8.531 kB / 0.6875 GB, free: 12.28 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/0.1826, allocations: 21.03 kB / 0.6875 GB, free: 12.26 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.1829, allocations: 224 kB / 0.6877 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.1829, allocations: 12.66 kB / 0.6878 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.1829, allocations: 12 kB / 0.6878 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002361/0.1832, allocations: 121.2 kB / 0.6879 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.1832, allocations: 0 / 0.6879 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.1832, allocations: 4 kB / 0.6879 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1832, allocations: 0 / 0.6879 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001794/0.1834, allocations: 76.67 kB / 0.688 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005578/0.184, allocations: 431.7 kB / 0.6884 GB, free: 11.31 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.1842, allocations: 94.53 kB / 0.6885 GB, free: 11.21 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001404/0.1843, allocations: 80.75 kB / 0.6885 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.1843, allocations: 4 kB / 0.6885 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.1846, allocations: 186.9 kB / 0.6887 GB, free: 10.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.1846, allocations: 0 / 0.6887 GB, free: 10.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.000641/0.1853, allocations: 364.7 kB / 0.6891 GB, free: 10.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.677e-05/0.1853, allocations: 170.5 kB / 0.6892 GB, free: 10.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.1855, allocations: 170.7 kB / 0.6894 GB, free: 10.16 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.147e-05/0.1855, allocations: 29.7 kB / 0.6894 GB, free: 10.12 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.419e-05/0.1856, allocations: 112.3 kB / 0.6895 GB, free: 10 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.1856, allocations: 31.55 kB / 0.6896 GB, free: 9.973 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.449e-05/0.1857, allocations: 8 kB / 0.6896 GB, free: 9.965 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.422e-05/0.1858, allocations: 322.8 kB / 0.6899 GB, free: 9.641 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.1859, allocations: 59.95 kB / 0.6899 GB, free: 9.582 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.186, allocations: 104.2 kB / 0.69 GB, free: 9.457 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.1862, allocations: 178.7 kB / 0.6902 GB, free: 9.258 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1862, allocations: 0 / 0.6902 GB, free: 9.258 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004696/0.1867, allocations: 348.2 kB / 0.6905 GB, free: 8.887 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.92e-05/0.1868, allocations: 125.1 kB / 0.6907 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1868, allocations: 0 / 0.6907 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1868, allocations: 4 kB / 0.6907 GB, free: 8.738 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1869, allocations: 28.12 kB / 0.6907 GB, free: 8.711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.81e-06/0.187, allocations: 4 kB / 0.6907 GB, free: 8.707 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.169e-05/0.1871, allocations: 23.89 kB / 0.6907 GB, free: 8.684 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.861e-05/0.1871, allocations: 8 kB / 0.6907 GB, free: 8.676 MB / 494.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 ($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.0001409/0.1872, allocations: 201.5 kB / 0.6909 GB, free: 8.461 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.769e-05/0.1873, allocations: 19.8 kB / 0.6909 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.518e-05/0.1873, allocations: 21.39 kB / 0.6909 GB, free: 8.422 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1873, allocations: 0 / 0.6909 GB, free: 8.422 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1873, allocations: 7.953 kB / 0.691 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1873, allocations: 0 / 0.691 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006518/0.188, allocations: 0.5838 MB / 0.6915 GB, free: 7.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.188, allocations: 4 kB / 0.6915 GB, free: 7.758 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/0.1881, allocations: 19.92 kB / 0.6915 GB, free: 7.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.1881, allocations: 4 kB / 0.6916 GB, free: 7.734 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.895e-05/0.1881, allocations: 7.984 kB / 0.6916 GB, free: 7.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1881, allocations: 3.953 kB / 0.6916 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.02e-07/0.1881, allocations: 0 / 0.6916 GB, free: 7.723 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005127/0.1886, allocations: 414.6 kB / 0.692 GB, free: 7.289 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.1887, allocations: 88.95 kB / 0.692 GB, free: 7.184 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.841e-05/0.1887, allocations: 8 kB / 0.6921 GB, free: 7.176 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001107/0.1888, allocations: 11.98 kB / 0.6921 GB, free: 7.164 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.1889, allocations: 7.953 kB / 0.6921 GB, free: 7.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.1889, allocations: 11.98 kB / 0.6921 GB, free: 7.145 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.552e-05/0.189, allocations: 128.3 kB / 0.6922 GB, free: 7.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.189, allocations: 0 / 0.6922 GB, free: 7.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.1893, allocations: 47.89 kB / 0.6922 GB, free: 6.973 MB / 494.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 (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.0001951/0.1895, allocations: 110.4 kB / 0.6924 GB, free: 6.859 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.19, allocations: 377.4 kB / 0.6927 GB, free: 6.441 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.19, allocations: 0 / 0.6927 GB, free: 6.441 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.1902, allocations: 198.8 kB / 0.6929 GB, free: 6.223 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.1905, allocations: 26.5 kB / 0.6929 GB, free: 6.199 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005371/0.191, allocations: 314.2 kB / 0.6932 GB, free: 5.863 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.1913, allocations: 0.7121 MB / 0.6939 GB, free: 5.125 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.952e-05/0.1913, allocations: 20.53 kB / 0.6939 GB, free: 5.105 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.918e-05/0.1914, allocations: 15.44 kB / 0.694 GB, free: 5.09 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1914, allocations: 0 / 0.694 GB, free: 5.09 MB / 494.1 MB Notification: Performance of Templates: time 0.004654/0.196, allocations: 1.938 MB / 0.6958 GB, free: 3.188 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)