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.001072/0.001072, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001181/0.001181, allocations: 192.8 kB / 16.14 MB, free: 6.715 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.32/1.32, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002005/0.002005, allocations: 286.1 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9326/0.9326, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001686/0.001686, allocations: 85.59 kB / 0.5945 GB, free: 28.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1597, allocations: 86.99 MB / 0.6794 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002951/0.1627, allocations: 1.66 MB / 0.6811 GB, free: 15.52 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009874/0.1637, allocations: 0.6275 MB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.113e-05/0.1638, allocations: 4 kB / 0.6817 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001498/0.164, allocations: 15.92 kB / 0.6817 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001818/0.1642, allocations: 40.39 kB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.1645, allocations: 103.9 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.1647, allocations: 163.6 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.1648, allocations: 29.36 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001194/0.1649, allocations: 71.77 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.165, allocations: 79.72 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.163e-05/0.1651, allocations: 12 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.754e-05/0.1652, allocations: 23.98 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.542e-05/0.1652, allocations: 31.84 kB / 0.6822 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.6e-05/0.1653, allocations: 63.72 kB / 0.6823 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1655, allocations: 159.5 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1655, allocations: 0 / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1656, allocations: 0 / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.1656, allocations: 0 / 0.6824 GB, free: 14.11 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.0006116/0.1662, allocations: 0.5563 MB / 0.683 GB, free: 13.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.979e-05/0.1662, allocations: 16.03 kB / 0.683 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.664e-05/0.1663, allocations: 20.75 kB / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.1665, allocations: 228.7 kB / 0.6832 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.1666, allocations: 12.38 kB / 0.6832 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.1666, allocations: 8.375 kB / 0.6833 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.1669, allocations: 117.7 kB / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.1669, allocations: 0 / 0.6834 GB, free: 13.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.1669, allocations: 4 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-06/0.1669, allocations: 0 / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.1671, allocations: 79.88 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006112/0.1677, allocations: 412.5 kB / 0.6838 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001892/0.1679, allocations: 94.56 kB / 0.6839 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.1681, allocations: 76.91 kB / 0.684 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.863e-05/0.1681, allocations: 7.984 kB / 0.684 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002645/0.1684, allocations: 178.7 kB / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.864e-06/0.1684, allocations: 0 / 0.6842 GB, free: 12.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007095/0.1691, allocations: 352.7 kB / 0.6845 GB, free: 11.76 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.661e-05/0.1692, allocations: 166.2 kB / 0.6847 GB, free: 11.56 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001496/0.1694, allocations: 170.7 kB / 0.6848 GB, free: 11.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.1694, allocations: 29.7 kB / 0.6849 GB, free: 11.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.866e-05/0.1695, allocations: 116.2 kB / 0.685 GB, free: 11.23 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.745e-05/0.1695, allocations: 23.66 kB / 0.685 GB, free: 11.21 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.815e-05/0.1696, allocations: 45.7 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.1697, allocations: 326.8 kB / 0.6854 GB, free: 10.83 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.1699, allocations: 55.95 kB / 0.6854 GB, free: 10.77 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.1701, allocations: 106.7 kB / 0.6855 GB, free: 10.64 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003249/0.1704, allocations: 305 kB / 0.6858 GB, free: 10.29 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.1704, allocations: 8 kB / 0.6858 GB, free: 10.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005236/0.1709, allocations: 348 kB / 0.6861 GB, free: 9.906 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.235e-05/0.171, allocations: 114.8 kB / 0.6863 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.171, allocations: 4 kB / 0.6863 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.1711, allocations: 0 / 0.6863 GB, free: 9.766 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.1712, allocations: 32.17 kB / 0.6863 GB, free: 9.734 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1712, allocations: 0 / 0.6863 GB, free: 9.734 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.696e-05/0.1713, allocations: 8 kB / 0.6863 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.1713, allocations: 8 kB / 0.6863 GB, free: 9.719 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.0001568/0.1715, allocations: 212.4 kB / 0.6865 GB, free: 9.492 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.7e-05/0.1715, allocations: 19.81 kB / 0.6865 GB, free: 9.473 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.359e-05/0.1716, allocations: 9.406 kB / 0.6865 GB, free: 9.465 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1716, allocations: 4 kB / 0.6865 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1716, allocations: 3.938 kB / 0.6865 GB, free: 9.457 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1716, allocations: 4 kB / 0.6865 GB, free: 9.453 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007043/0.1723, allocations: 0.584 MB / 0.6871 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.1723, allocations: 0 / 0.6871 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.57e-05/0.1724, allocations: 15.92 kB / 0.6871 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1724, allocations: 0 / 0.6871 GB, free: 8.785 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.1724, allocations: 8 kB / 0.6871 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1724, allocations: 0 / 0.6871 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1724, allocations: 7.938 kB / 0.6871 GB, free: 8.77 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005427/0.173, allocations: 406.6 kB / 0.6875 GB, free: 8.344 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.054e-05/0.1731, allocations: 92.91 kB / 0.6876 GB, free: 8.234 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.1731, allocations: 4 kB / 0.6876 GB, free: 8.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.1732, allocations: 4 kB / 0.6876 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.594e-05/0.1733, allocations: 15.92 kB / 0.6876 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.576e-05/0.1733, allocations: 8 kB / 0.6877 GB, free: 8.203 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.1734, allocations: 133.3 kB / 0.6878 GB, free: 8.074 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.1734, allocations: 0 / 0.6878 GB, free: 8.074 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002942/0.1737, allocations: 43.94 kB / 0.6878 GB, free: 8.031 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.0002074/0.1739, allocations: 135.9 kB / 0.688 GB, free: 7.898 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004794/0.1744, allocations: 361.4 kB / 0.6883 GB, free: 7.496 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1744, allocations: 0 / 0.6883 GB, free: 7.496 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.1747, allocations: 206.8 kB / 0.6885 GB, free: 7.27 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.175, allocations: 17.98 kB / 0.6885 GB, free: 7.254 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005828/0.1756, allocations: 329.7 kB / 0.6888 GB, free: 6.902 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.1758, allocations: 0.7083 MB / 0.6895 GB, free: 6.168 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.716e-05/0.1759, allocations: 24.47 kB / 0.6895 GB, free: 6.141 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.176, allocations: 11.44 kB / 0.6895 GB, free: 6.129 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.176, allocations: 0 / 0.6895 GB, free: 6.129 MB / 494.1 MB Notification: Performance of Templates: time 0.004745/0.1807, allocations: 2.003 MB / 0.6915 GB, free: 4.16 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)