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.001496/0.001496, allocations: 105.9 kB / 16.27 MB, free: 6.348 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.001494/0.001494, allocations: 187.6 kB / 17.2 MB, free: 5.949 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: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002475/0.002475, allocations: 294.3 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.154/1.154, allocations: 178.6 MB / 0.5079 GB, free: 12.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 100.1 kB / 0.6071 GB, free: 9.293 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1656/0.1683, allocations: 89.13 MB / 0.6942 GB, free: 80 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.00293/0.1713, allocations: 1.608 MB / 0.6957 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0009575/0.1723, allocations: 0.6157 MB / 0.6963 GB, free: 13.83 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.679e-05/0.1723, allocations: 3.938 kB / 0.6963 GB, free: 13.82 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1725, allocations: 23.84 kB / 0.6964 GB, free: 13.8 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002014/0.1727, allocations: 43.7 kB / 0.6964 GB, free: 13.76 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003453/0.173, allocations: 107.8 kB / 0.6965 GB, free: 13.65 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.1733, allocations: 203.6 kB / 0.6967 GB, free: 13.45 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.1734, allocations: 21.12 kB / 0.6967 GB, free: 13.43 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.1736, allocations: 79.81 kB / 0.6968 GB, free: 13.36 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.1737, allocations: 87.72 kB / 0.6969 GB, free: 13.27 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.757e-05/0.1737, allocations: 19.94 kB / 0.6969 GB, free: 13.25 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.817e-05/0.1738, allocations: 27.98 kB / 0.6969 GB, free: 13.22 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.228e-05/0.1739, allocations: 31.91 kB / 0.697 GB, free: 13.19 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.028e-05/0.174, allocations: 71.66 kB / 0.697 GB, free: 13.12 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.1742, allocations: 175.7 kB / 0.6972 GB, free: 12.95 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.1742, allocations: 0 / 0.6972 GB, free: 12.95 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.032e-06/0.1742, allocations: 0 / 0.6972 GB, free: 12.95 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.1743, allocations: 0 / 0.6972 GB, free: 12.95 MB / 0.545 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.0006734/0.1749, allocations: 0.5446 MB / 0.6977 GB, free: 12.33 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.168e-05/0.175, allocations: 16.03 kB / 0.6977 GB, free: 12.32 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.009e-05/0.175, allocations: 16.75 kB / 0.6977 GB, free: 12.3 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.1753, allocations: 236.2 kB / 0.698 GB, free: 12.03 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.1754, allocations: 12.38 kB / 0.698 GB, free: 12.02 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.025e-05/0.1754, allocations: 8.375 kB / 0.698 GB, free: 12.01 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002776/0.1757, allocations: 125.7 kB / 0.6981 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1757, allocations: 0 / 0.6981 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.1757, allocations: 11.94 kB / 0.6981 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-06/0.1757, allocations: 4 kB / 0.6981 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.1759, allocations: 67.95 kB / 0.6982 GB, free: 11.8 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006519/0.1766, allocations: 424.4 kB / 0.6986 GB, free: 11.34 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.1768, allocations: 90.53 kB / 0.6987 GB, free: 11.24 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001584/0.177, allocations: 76.81 kB / 0.6988 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.177, allocations: 0 / 0.6988 GB, free: 11.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.1773, allocations: 178.8 kB / 0.6989 GB, free: 10.96 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.1773, allocations: 0 / 0.6989 GB, free: 10.96 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0007687/0.1781, allocations: 356.8 kB / 0.6993 GB, free: 10.59 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.1782, allocations: 170.2 kB / 0.6994 GB, free: 10.39 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.1784, allocations: 171.7 kB / 0.6996 GB, free: 10.21 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.1784, allocations: 33.7 kB / 0.6996 GB, free: 10.18 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.997e-05/0.1785, allocations: 112.3 kB / 0.6997 GB, free: 10.06 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.161e-05/0.1785, allocations: 23.66 kB / 0.6998 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.27e-05/0.1786, allocations: 41.7 kB / 0.6998 GB, free: 9.988 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1788, allocations: 326.8 kB / 0.7001 GB, free: 9.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.1789, allocations: 55.95 kB / 0.7002 GB, free: 9.605 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.1791, allocations: 98.83 kB / 0.7003 GB, free: 9.484 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/0.1794, allocations: 316.9 kB / 0.7006 GB, free: 9.113 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.1794, allocations: 4 kB / 0.7006 GB, free: 9.109 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005228/0.18, allocations: 344 kB / 0.7009 GB, free: 8.742 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.356e-05/0.1801, allocations: 114.8 kB / 0.701 GB, free: 8.605 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.1801, allocations: 7.938 kB / 0.701 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.1801, allocations: 0 / 0.701 GB, free: 8.598 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.1802, allocations: 24.23 kB / 0.701 GB, free: 8.574 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.1802, allocations: 3.984 kB / 0.701 GB, free: 8.57 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.178e-05/0.1803, allocations: 8 kB / 0.701 GB, free: 8.562 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.1804, allocations: 12 kB / 0.7011 GB, free: 8.551 MB / 0.545 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.000165/0.1805, allocations: 205.8 kB / 0.7012 GB, free: 8.332 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.244e-05/0.1806, allocations: 20.08 kB / 0.7013 GB, free: 8.312 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.621e-05/0.1806, allocations: 17.41 kB / 0.7013 GB, free: 8.293 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1806, allocations: 4 kB / 0.7013 GB, free: 8.289 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1806, allocations: 7.938 kB / 0.7013 GB, free: 8.281 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1806, allocations: 0 / 0.7013 GB, free: 8.281 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000731/0.1814, allocations: 0.5875 MB / 0.7019 GB, free: 7.625 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.1814, allocations: 0 / 0.7019 GB, free: 7.625 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.229e-05/0.1815, allocations: 11.98 kB / 0.7019 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.1815, allocations: 0 / 0.7019 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.1815, allocations: 7.984 kB / 0.7019 GB, free: 7.605 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1815, allocations: 0 / 0.7019 GB, free: 7.605 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1815, allocations: 7.938 kB / 0.7019 GB, free: 7.598 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005488/0.1821, allocations: 402.6 kB / 0.7023 GB, free: 7.176 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.1821, allocations: 84.92 kB / 0.7024 GB, free: 7.074 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.1822, allocations: 15.97 kB / 0.7024 GB, free: 7.059 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.1823, allocations: 12 kB / 0.7024 GB, free: 7.047 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.367e-05/0.1823, allocations: 11.92 kB / 0.7024 GB, free: 7.035 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.1824, allocations: 8 kB / 0.7024 GB, free: 7.027 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001113/0.1825, allocations: 135.2 kB / 0.7025 GB, free: 6.895 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1825, allocations: 0 / 0.7025 GB, free: 6.895 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002731/0.1828, allocations: 36 kB / 0.7026 GB, free: 6.859 MB / 0.545 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.0002299/0.183, allocations: 128.2 kB / 0.7027 GB, free: 6.73 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004968/0.1835, allocations: 361.5 kB / 0.703 GB, free: 6.328 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.1835, allocations: 4 kB / 0.703 GB, free: 6.324 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.1838, allocations: 206.7 kB / 0.7032 GB, free: 6.098 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.1841, allocations: 28.38 kB / 0.7033 GB, free: 6.07 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005874/0.1847, allocations: 317.6 kB / 0.7036 GB, free: 5.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.185, allocations: 0.708 MB / 0.7043 GB, free: 4.996 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.142e-05/0.1851, allocations: 19.42 kB / 0.7043 GB, free: 4.977 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.1851, allocations: 0 / 0.7043 GB, free: 4.977 MB / 0.545 GB Notification: Performance of Templates: time 0.00405/0.1891, allocations: 2.158 MB / 0.7064 GB, free: 2.828 MB / 0.545 GB 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)