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.001364/0.001364, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001473/0.001473, allocations: 194.9 kB / 16.25 MB, free: 6.625 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.288/1.288, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001972/0.001972, allocations: 274.9 kB / 290.4 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9675/0.9675, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001666/0.001666, allocations: 86.44 kB / 0.5947 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1528, allocations: 86.99 MB / 0.6796 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002637/0.1555, allocations: 1.652 MB / 0.6812 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008408/0.1563, allocations: 0.6079 MB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.244e-05/0.1564, allocations: 3.938 kB / 0.6818 GB, free: 14.78 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.1566, allocations: 11.88 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.1568, allocations: 39.83 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003441/0.1571, allocations: 103.8 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002173/0.1574, allocations: 199.6 kB / 0.6822 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.1575, allocations: 37.31 kB / 0.6822 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001318/0.1576, allocations: 83.75 kB / 0.6823 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.1577, allocations: 79.72 kB / 0.6824 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.552e-05/0.1578, allocations: 16 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.817e-05/0.1578, allocations: 24 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.062e-05/0.1579, allocations: 31.92 kB / 0.6824 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.252e-05/0.158, allocations: 75.64 kB / 0.6825 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001971/0.1582, allocations: 171.4 kB / 0.6827 GB, free: 13.92 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1582, allocations: 0 / 0.6827 GB, free: 13.92 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1582, allocations: 4 kB / 0.6827 GB, free: 13.92 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.1582, allocations: 0 / 0.6827 GB, free: 13.92 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.0006209/0.1589, allocations: 0.5485 MB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.1589, allocations: 8.031 kB / 0.6832 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.206e-05/0.159, allocations: 20.75 kB / 0.6832 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.1592, allocations: 236.9 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1593, allocations: 8.375 kB / 0.6835 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.853e-05/0.1593, allocations: 12.38 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002592/0.1595, allocations: 121.7 kB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1596, allocations: 0 / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.1596, allocations: 0 / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1596, allocations: 4 kB / 0.6836 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.1598, allocations: 71.94 kB / 0.6837 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007082/0.1605, allocations: 416.4 kB / 0.6841 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.1607, allocations: 90.53 kB / 0.6842 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.1609, allocations: 80.8 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-05/0.1609, allocations: 4.156 kB / 0.6842 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003252/0.1613, allocations: 182.7 kB / 0.6844 GB, free: 11.94 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.1613, allocations: 0 / 0.6844 GB, free: 11.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007403/0.162, allocations: 352.7 kB / 0.6848 GB, free: 11.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.1621, allocations: 170.2 kB / 0.6849 GB, free: 11.37 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.1623, allocations: 170.7 kB / 0.6851 GB, free: 11.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.132e-05/0.1623, allocations: 33.7 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.122e-05/0.1624, allocations: 112.3 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.264e-05/0.1625, allocations: 31.62 kB / 0.6852 GB, free: 11.01 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-05/0.1625, allocations: 37.7 kB / 0.6853 GB, free: 10.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1626, allocations: 326.8 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.1628, allocations: 51.97 kB / 0.6856 GB, free: 10.59 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1629, allocations: 102.8 kB / 0.6857 GB, free: 10.46 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003067/0.1633, allocations: 312.9 kB / 0.686 GB, free: 10.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1633, allocations: 0 / 0.686 GB, free: 10.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004953/0.1638, allocations: 348 kB / 0.6864 GB, free: 9.723 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.001e-05/0.1638, allocations: 125.1 kB / 0.6865 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1639, allocations: 0 / 0.6865 GB, free: 9.578 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1639, allocations: 4 kB / 0.6865 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.164, allocations: 15.98 kB / 0.6865 GB, free: 9.559 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.164, allocations: 4 kB / 0.6865 GB, free: 9.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.37e-05/0.1641, allocations: 12.25 kB / 0.6865 GB, free: 9.543 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.1641, allocations: 19.98 kB / 0.6865 GB, free: 9.523 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.0001355/0.1643, allocations: 206.3 kB / 0.6867 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.1643, allocations: 15.81 kB / 0.6868 GB, free: 9.285 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.1643, allocations: 13.41 kB / 0.6868 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1644, allocations: 0 / 0.6868 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1644, allocations: 3.984 kB / 0.6868 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/0.1644, allocations: 4 kB / 0.6868 GB, free: 9.266 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006568/0.165, allocations: 0.5798 MB / 0.6873 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.165, allocations: 0 / 0.6873 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.1651, allocations: 15.98 kB / 0.6874 GB, free: 8.602 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.1651, allocations: 4.281 kB / 0.6874 GB, free: 8.598 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.86e-05/0.1651, allocations: 4 kB / 0.6874 GB, free: 8.594 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1652, allocations: 3.984 kB / 0.6874 GB, free: 8.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1652, allocations: 7.875 kB / 0.6874 GB, free: 8.582 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005898/0.1658, allocations: 406.6 kB / 0.6878 GB, free: 8.156 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.1658, allocations: 88.92 kB / 0.6879 GB, free: 8.051 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.1659, allocations: 4 kB / 0.6879 GB, free: 8.047 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.166, allocations: 12 kB / 0.6879 GB, free: 8.035 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/0.166, allocations: 11.92 kB / 0.6879 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.166, allocations: 7.984 kB / 0.6879 GB, free: 8.016 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.1662, allocations: 137.4 kB / 0.688 GB, free: 7.883 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1662, allocations: 0 / 0.688 GB, free: 7.883 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.1664, allocations: 40 kB / 0.6881 GB, free: 7.844 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.0001997/0.1667, allocations: 125.3 kB / 0.6882 GB, free: 7.723 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004624/0.1671, allocations: 365.4 kB / 0.6885 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1671, allocations: 0 / 0.6885 GB, free: 7.316 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002266/0.1674, allocations: 210.7 kB / 0.6887 GB, free: 7.086 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000297/0.1677, allocations: 23.98 kB / 0.6887 GB, free: 7.062 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005332/0.1682, allocations: 316.5 kB / 0.689 GB, free: 6.727 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.1685, allocations: 0.7157 MB / 0.6897 GB, free: 5.984 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.924e-05/0.1686, allocations: 20.53 kB / 0.6898 GB, free: 5.961 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.399e-05/0.1686, allocations: 23.36 kB / 0.6898 GB, free: 5.938 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1686, allocations: 0 / 0.6898 GB, free: 5.938 MB / 494.1 MB Notification: Performance of Templates: time 0.004717/0.1733, allocations: 2.072 MB / 0.6918 GB, free: 3.902 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)