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.0007672/0.0007671, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.005435/0.005435, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.307/1.307, allocations: 223.3 MB / 240.3 MB, free: 5.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00172/0.00172, allocations: 274.5 kB / 291.7 MB, free: 1.801 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.006/1.006, allocations: 169.5 MB / 0.5004 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003927/0.0003927, allocations: 14.42 kB / 0.5987 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1522/0.1526, allocations: 88.54 MB / 0.6851 GB, free: 15.08 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.001727/0.1544, allocations: 1.319 MB / 0.6864 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008687/0.1553, allocations: 0.6243 MB / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.309e-05/0.1553, allocations: 0 / 0.687 GB, free: 13.13 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.1555, allocations: 11.88 kB / 0.687 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.1556, allocations: 51.8 kB / 0.6871 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003481/0.156, allocations: 100.3 kB / 0.6872 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.1562, allocations: 152.9 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.1563, allocations: 43.02 kB / 0.6874 GB, free: 12.78 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001295/0.1564, allocations: 67.77 kB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.1565, allocations: 77.14 kB / 0.6875 GB, free: 12.64 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.691e-05/0.1566, allocations: 8 kB / 0.6875 GB, free: 12.63 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.51e-05/0.1566, allocations: 19.97 kB / 0.6875 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.04e-05/0.1567, allocations: 25.27 kB / 0.6876 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.625e-05/0.1568, allocations: 97.34 kB / 0.6876 GB, free: 12.49 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001788/0.157, allocations: 155.4 kB / 0.6878 GB, free: 12.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.157, allocations: 3.094 kB / 0.6878 GB, free: 12.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.157, allocations: 0 / 0.6878 GB, free: 12.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.157, allocations: 3.938 kB / 0.6878 GB, free: 12.33 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.0006375/0.1577, allocations: 0.5188 MB / 0.6883 GB, free: 11.74 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.899e-05/0.1577, allocations: 8.031 kB / 0.6883 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.93e-05/0.1577, allocations: 20.75 kB / 0.6883 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.1581, allocations: 230.7 kB / 0.6886 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.1581, allocations: 12.36 kB / 0.6886 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.1581, allocations: 22.31 kB / 0.6886 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.1584, allocations: 113.7 kB / 0.6887 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.1584, allocations: 3.984 kB / 0.6887 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1584, allocations: 4.75 kB / 0.6887 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.1584, allocations: 3.984 kB / 0.6887 GB, free: 11.29 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.1586, allocations: 78.33 kB / 0.6888 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005684/0.1592, allocations: 431.3 kB / 0.6892 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.1594, allocations: 88.27 kB / 0.6893 GB, free: 10.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1596, allocations: 82.12 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.1596, allocations: 4.859 kB / 0.6894 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002471/0.1598, allocations: 180.6 kB / 0.6895 GB, free: 10.37 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.502e-06/0.1598, allocations: 3.938 kB / 0.6895 GB, free: 10.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006545/0.1605, allocations: 369.7 kB / 0.6899 GB, free: 9.988 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.483e-05/0.1606, allocations: 166.2 kB / 0.69 GB, free: 9.789 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1608, allocations: 170.6 kB / 0.6902 GB, free: 9.609 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.247e-05/0.1608, allocations: 33.7 kB / 0.6902 GB, free: 9.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.1609, allocations: 108.4 kB / 0.6903 GB, free: 9.457 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.1609, allocations: 31.55 kB / 0.6904 GB, free: 9.426 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.1609, allocations: 25.72 kB / 0.6904 GB, free: 9.395 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.967e-05/0.161, allocations: 326.8 kB / 0.6907 GB, free: 9.066 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.1612, allocations: 55.95 kB / 0.6908 GB, free: 9.012 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.1614, allocations: 106.8 kB / 0.6909 GB, free: 8.883 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.1617, allocations: 324.9 kB / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.1617, allocations: 0 / 0.6912 GB, free: 8.504 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000497/0.1622, allocations: 348.2 kB / 0.6915 GB, free: 8.133 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.34e-05/0.1623, allocations: 114.8 kB / 0.6916 GB, free: 7.996 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.1623, allocations: 7.984 kB / 0.6916 GB, free: 7.988 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.1624, allocations: 3.938 kB / 0.6916 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.1625, allocations: 24.23 kB / 0.6917 GB, free: 7.961 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.1625, allocations: 4 kB / 0.6917 GB, free: 7.957 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.476e-05/0.1626, allocations: 11.91 kB / 0.6917 GB, free: 7.945 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.1626, allocations: 12 kB / 0.6917 GB, free: 7.934 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 (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.0001603/0.1628, allocations: 210.3 kB / 0.6919 GB, free: 7.707 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.1628, allocations: 15.81 kB / 0.6919 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.457e-05/0.1629, allocations: 21.34 kB / 0.6919 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1629, allocations: 4 kB / 0.6919 GB, free: 7.668 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1629, allocations: 4 kB / 0.6919 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1629, allocations: 0 / 0.6919 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008069/0.1637, allocations: 0.5915 MB / 0.6925 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1637, allocations: 0 / 0.6925 GB, free: 7.004 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.755e-05/0.1638, allocations: 19.98 kB / 0.6925 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1638, allocations: 0 / 0.6925 GB, free: 6.984 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.1638, allocations: 4 kB / 0.6925 GB, free: 6.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1638, allocations: 4 kB / 0.6925 GB, free: 6.977 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1638, allocations: 3.938 kB / 0.6925 GB, free: 6.973 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005311/0.1644, allocations: 414.8 kB / 0.6929 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.437e-05/0.1644, allocations: 92.91 kB / 0.693 GB, free: 6.43 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.279e-05/0.1645, allocations: 8 kB / 0.693 GB, free: 6.422 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.1646, allocations: 8 kB / 0.693 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.574e-05/0.1646, allocations: 15.91 kB / 0.693 GB, free: 6.398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.726e-05/0.1647, allocations: 8 kB / 0.6931 GB, free: 6.391 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.71e-05/0.1648, allocations: 133.3 kB / 0.6932 GB, free: 6.262 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1648, allocations: 0 / 0.6932 GB, free: 6.262 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.165, allocations: 44 kB / 0.6932 GB, free: 6.219 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 (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.0002285/0.1653, allocations: 114 kB / 0.6933 GB, free: 6.102 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004739/0.1658, allocations: 369.4 kB / 0.6937 GB, free: 5.691 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1658, allocations: 0 / 0.6937 GB, free: 5.691 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002357/0.166, allocations: 214.7 kB / 0.6939 GB, free: 5.457 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.1663, allocations: 29.88 kB / 0.6939 GB, free: 5.434 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005274/0.1669, allocations: 321.9 kB / 0.6942 GB, free: 5.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.1672, allocations: 0.716 MB / 0.6949 GB, free: 4.348 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.76e-05/0.1672, allocations: 16.55 kB / 0.6949 GB, free: 4.332 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.863e-05/0.1673, allocations: 19.42 kB / 0.695 GB, free: 4.312 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1673, allocations: 0 / 0.695 GB, free: 4.312 MB / 494.1 MB Notification: Performance of Templates: time 0.004648/0.1719, allocations: 1.998 MB / 0.6969 GB, free: 2.352 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)