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.001052/0.001052, allocations: 108 kB / 15.6 MB, free: 132 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.001144/0.001144, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.286/1.286, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001977/0.001977, allocations: 287.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9195/0.9195, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001649, allocations: 101.2 kB / 0.5952 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1515, allocations: 86.98 MB / 0.6802 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002784/0.1543, allocations: 1.593 MB / 0.6817 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008466/0.1552, allocations: 0.6199 MB / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.609e-05/0.1552, allocations: 0 / 0.6823 GB, free: 14.47 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.1554, allocations: 31.78 kB / 0.6824 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.1556, allocations: 35.77 kB / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.1559, allocations: 115.8 kB / 0.6825 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002086/0.1562, allocations: 195.6 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.1563, allocations: 25.39 kB / 0.6827 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.1564, allocations: 91.69 kB / 0.6828 GB, free: 13.99 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001257/0.1566, allocations: 87.72 kB / 0.6829 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.039e-05/0.1566, allocations: 12 kB / 0.6829 GB, free: 13.89 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.741e-05/0.1567, allocations: 27.98 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.838e-05/0.1568, allocations: 31.91 kB / 0.683 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.878e-05/0.1569, allocations: 71.66 kB / 0.683 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.1571, allocations: 175.4 kB / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1571, allocations: 0 / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1571, allocations: 0 / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1571, allocations: 0 / 0.6832 GB, free: 13.59 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.0006062/0.1577, allocations: 0.5525 MB / 0.6837 GB, free: 12.96 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.1577, allocations: 8.031 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.866e-05/0.1578, allocations: 20.75 kB / 0.6838 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.1581, allocations: 232.2 kB / 0.684 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.1581, allocations: 8.375 kB / 0.684 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.098e-05/0.1581, allocations: 16.38 kB / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.1584, allocations: 113.7 kB / 0.6841 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.1584, allocations: 0 / 0.6841 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.1585, allocations: 4 kB / 0.6841 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1585, allocations: 4 kB / 0.6841 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.1587, allocations: 71.94 kB / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005846/0.1593, allocations: 420.4 kB / 0.6846 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.1594, allocations: 94.62 kB / 0.6847 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.1596, allocations: 80.75 kB / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.1596, allocations: 0 / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.1599, allocations: 178.7 kB / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.1599, allocations: 0 / 0.6849 GB, free: 11.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.000669/0.1606, allocations: 356.8 kB / 0.6853 GB, free: 11.24 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.069e-05/0.1607, allocations: 170.2 kB / 0.6854 GB, free: 11.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.1608, allocations: 167.8 kB / 0.6856 GB, free: 10.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.104e-05/0.1608, allocations: 33.7 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.1609, allocations: 112.3 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.821e-05/0.1609, allocations: 23.66 kB / 0.6858 GB, free: 10.69 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.161, allocations: 41.7 kB / 0.6858 GB, free: 10.64 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.66e-05/0.1611, allocations: 330.8 kB / 0.6861 GB, free: 10.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.1613, allocations: 51.95 kB / 0.6862 GB, free: 10.26 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.1614, allocations: 98.83 kB / 0.6863 GB, free: 10.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003103/0.1617, allocations: 320.9 kB / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1617, allocations: 0 / 0.6866 GB, free: 9.762 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004883/0.1622, allocations: 348 kB / 0.6869 GB, free: 9.391 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.585e-05/0.1623, allocations: 118.8 kB / 0.687 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1623, allocations: 4 kB / 0.687 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1623, allocations: 256 / 0.687 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.1625, allocations: 23.98 kB / 0.687 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.1625, allocations: 3.938 kB / 0.687 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.37e-05/0.1626, allocations: 12 kB / 0.6871 GB, free: 9.207 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.111e-05/0.1626, allocations: 12 kB / 0.6871 GB, free: 9.195 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.0001366/0.1627, allocations: 204 kB / 0.6873 GB, free: 8.977 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.449e-05/0.1628, allocations: 19.81 kB / 0.6873 GB, free: 8.957 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.568e-05/0.1628, allocations: 17.41 kB / 0.6873 GB, free: 8.941 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1628, allocations: 3.938 kB / 0.6873 GB, free: 8.938 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1628, allocations: 4 kB / 0.6873 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1628, allocations: 0 / 0.6873 GB, free: 8.934 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006689/0.1635, allocations: 0.5879 MB / 0.6879 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1635, allocations: 0 / 0.6879 GB, free: 8.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.62e-05/0.1636, allocations: 15.92 kB / 0.6879 GB, free: 8.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1636, allocations: 3.938 kB / 0.6879 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.1636, allocations: 4 kB / 0.6879 GB, free: 8.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1636, allocations: 4 kB / 0.6879 GB, free: 8.25 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1637, allocations: 7.938 kB / 0.6879 GB, free: 8.242 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005142/0.1642, allocations: 394.7 kB / 0.6883 GB, free: 7.828 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.052e-05/0.1642, allocations: 92.91 kB / 0.6884 GB, free: 7.719 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.1643, allocations: 4 kB / 0.6884 GB, free: 7.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001131/0.1644, allocations: 8 kB / 0.6884 GB, free: 7.707 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.87e-05/0.1644, allocations: 19.86 kB / 0.6884 GB, free: 7.688 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.1645, allocations: 12 kB / 0.6884 GB, free: 7.676 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.187e-05/0.1645, allocations: 128.3 kB / 0.6885 GB, free: 7.551 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1646, allocations: 0 / 0.6885 GB, free: 7.551 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002854/0.1648, allocations: 36 kB / 0.6886 GB, free: 7.516 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.0002132/0.1651, allocations: 132.8 kB / 0.6887 GB, free: 7.383 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00046/0.1655, allocations: 369.4 kB / 0.6891 GB, free: 6.973 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1655, allocations: 0 / 0.6891 GB, free: 6.973 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002165/0.1658, allocations: 199.2 kB / 0.6892 GB, free: 6.754 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002957/0.1661, allocations: 24 kB / 0.6893 GB, free: 6.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005384/0.1666, allocations: 301.2 kB / 0.6896 GB, free: 6.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.1669, allocations: 0.7041 MB / 0.6902 GB, free: 5.68 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.159e-05/0.1669, allocations: 24.47 kB / 0.6903 GB, free: 5.652 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.167, allocations: 11.44 kB / 0.6903 GB, free: 5.641 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.167, allocations: 7.938 kB / 0.6903 GB, free: 5.633 MB / 494.1 MB Notification: Performance of Templates: time 0.004783/0.1718, allocations: 2.071 MB / 0.6923 GB, free: 3.602 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)