Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001107/0.001107, allocations: 109.4 kB / 15.69 MB, free: 128 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.001104/0.001104, allocations: 187.6 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.109/1.109, allocations: 205.1 MB / 222.5 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.493/1.493, allocations: 292.3 MB / 0.549 GB, free: 12.71 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 69.95 kB / 0.6722 GB, free: 26.04 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1611, allocations: 114.6 MB / 0.7841 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002465/0.1636, allocations: 1.612 MB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008002/0.1644, allocations: 0.6565 MB / 0.7863 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.809e-05/0.1644, allocations: 7.938 kB / 0.7863 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.1646, allocations: 19.84 kB / 0.7864 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001664/0.1647, allocations: 43.77 kB / 0.7864 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.1651, allocations: 107.8 kB / 0.7865 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002072/0.1653, allocations: 195.6 kB / 0.7867 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.976e-05/0.1654, allocations: 33.09 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.1655, allocations: 83.81 kB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001043/0.1656, allocations: 83.66 kB / 0.7869 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.973e-05/0.1657, allocations: 12 kB / 0.7869 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.52e-05/0.1657, allocations: 31.98 kB / 0.7869 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.71e-05/0.1658, allocations: 35.84 kB / 0.787 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.206e-05/0.1659, allocations: 71.72 kB / 0.787 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.1661, allocations: 175.4 kB / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1661, allocations: 0 / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of FrontEnd: time 9.42e-07/0.1661, allocations: 0 / 0.7872 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.567e-06/0.1661, allocations: 0 / 0.7872 GB, free: 9.527 MB / 0.6075 GB 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.000528/0.1666, allocations: 0.5524 MB / 0.7877 GB, free: 8.902 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 2.609e-05/0.1666, allocations: 8.031 kB / 0.7877 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.894e-05/0.1667, allocations: 20.75 kB / 0.7878 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002438/0.1669, allocations: 244.1 kB / 0.788 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.167, allocations: 8.375 kB / 0.788 GB, free: 8.59 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.586e-05/0.167, allocations: 12.38 kB / 0.788 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.1672, allocations: 117.7 kB / 0.7881 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.1672, allocations: 0 / 0.7881 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.1673, allocations: 0 / 0.7881 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1673, allocations: 4 kB / 0.7881 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.1674, allocations: 75.88 kB / 0.7882 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005171/0.168, allocations: 412.6 kB / 0.7886 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.1681, allocations: 86.53 kB / 0.7887 GB, free: 7.832 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.1683, allocations: 80.84 kB / 0.7888 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.1683, allocations: 8 kB / 0.7888 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.1685, allocations: 170.7 kB / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.1685, allocations: 0 / 0.7889 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006143/0.1692, allocations: 360.8 kB / 0.7893 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.1692, allocations: 166.2 kB / 0.7894 GB, free: 6.98 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.1694, allocations: 179.2 kB / 0.7896 GB, free: 6.793 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.1694, allocations: 33.7 kB / 0.7896 GB, free: 6.754 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.1695, allocations: 112.3 kB / 0.7897 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.1695, allocations: 23.66 kB / 0.7898 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.363e-05/0.1696, allocations: 37.7 kB / 0.7898 GB, free: 6.574 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.46e-05/0.1697, allocations: 330.8 kB / 0.7901 GB, free: 6.242 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.1698, allocations: 47.97 kB / 0.7902 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.1699, allocations: 106.8 kB / 0.7903 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.1702, allocations: 312.9 kB / 0.7906 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1702, allocations: 0 / 0.7906 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004449/0.1707, allocations: 352 kB / 0.7909 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.921e-05/0.1707, allocations: 122.8 kB / 0.791 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1707, allocations: 0 / 0.791 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1708, allocations: 4 kB / 0.791 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.309e-05/0.1709, allocations: 15.98 kB / 0.791 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.724e-06/0.1709, allocations: 7.938 kB / 0.791 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.437e-05/0.171, allocations: 8 kB / 0.791 GB, free: 5.145 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.171, allocations: 16.25 kB / 0.7911 GB, free: 5.129 MB / 0.6075 GB 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.0001283/0.1711, allocations: 201.3 kB / 0.7913 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.1712, allocations: 15.81 kB / 0.7913 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.095e-05/0.1712, allocations: 13.41 kB / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1712, allocations: 0 / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1712, allocations: 288 / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1712, allocations: 0 / 0.7913 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006007/0.1718, allocations: 0.5992 MB / 0.7919 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1718, allocations: 0 / 0.7919 GB, free: 4.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.957e-05/0.1719, allocations: 19.92 kB / 0.7919 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1719, allocations: 0 / 0.7919 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.1719, allocations: 11.98 kB / 0.7919 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1719, allocations: 0 / 0.7919 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1719, allocations: 3.938 kB / 0.7919 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004663/0.1724, allocations: 406.6 kB / 0.7923 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.1724, allocations: 88.92 kB / 0.7924 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.871e-05/0.1725, allocations: 4 kB / 0.7924 GB, free: 3.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.1726, allocations: 12 kB / 0.7924 GB, free: 3.633 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.091e-05/0.1726, allocations: 11.86 kB / 0.7924 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.1727, allocations: 8 kB / 0.7924 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 8.58e-05/0.1727, allocations: 136.3 kB / 0.7925 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1728, allocations: 0 / 0.7925 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00027/0.173, allocations: 36 kB / 0.7926 GB, free: 3.445 MB / 0.6075 GB 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.0001728/0.1732, allocations: 129.6 kB / 0.7927 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003992/0.1736, allocations: 353.8 kB / 0.793 GB, free: 2.922 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.1736, allocations: 12.12 kB / 0.793 GB, free: 2.91 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.1738, allocations: 202.8 kB / 0.7932 GB, free: 2.688 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.1741, allocations: 23.88 kB / 0.7933 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004457/0.1746, allocations: 291.9 kB / 0.7935 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002085/0.1748, allocations: 0.7119 MB / 0.7942 GB, free: 1.609 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.522e-05/0.1749, allocations: 20.53 kB / 0.7943 GB, free: 1.59 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.739e-05/0.1749, allocations: 11.44 kB / 0.7943 GB, free: 1.582 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.1749, allocations: 3.938 kB / 0.7943 GB, free: 1.578 MB / 0.6075 GB Notification: Performance of Templates: time 0.004178/0.1791, allocations: 2.06 MB / 0.7963 GB, free: 15.55 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)