Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.0007778/0.000778, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008866/0.0008867, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9317/0.9317, allocations: 135.3 MB / 426.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002922, allocations: 8 kB / 0.507 GB, free: 5.105 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1608/0.1611, allocations: 82.3 MB / 0.5874 GB, free: 2.973 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001998/0.1632, allocations: 1.297 MB / 0.5886 GB, free: 1.664 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009078/0.1641, allocations: 0.5771 MB / 0.5892 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.117e-05/0.1642, allocations: 0 / 0.5892 GB, free: 1.082 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.1644, allocations: 15.92 kB / 0.5892 GB, free: 1.066 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001823/0.1646, allocations: 45.3 kB / 0.5893 GB, free: 1.023 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004785/0.165, allocations: 87.89 kB / 0.5893 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001659/0.1652, allocations: 147.6 kB / 0.5895 GB, free: 0.793 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.1653, allocations: 25.05 kB / 0.5895 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.1655, allocations: 79.75 kB / 0.5896 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001381/0.1656, allocations: 75.72 kB / 0.5897 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.1657, allocations: 4 kB / 0.5897 GB, free: 0.6094 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.623e-05/0.1657, allocations: 16 kB / 0.5897 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.186e-05/0.1658, allocations: 23.91 kB / 0.5897 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.85e-05/0.1659, allocations: 53.64 kB / 0.5898 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001828/0.1661, allocations: 112 kB / 0.5899 GB, free: 412 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1661, allocations: 0 / 0.5899 GB, free: 412 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1661, allocations: 0 / 0.5899 GB, free: 412 kB / 494.1 MB Notification: Performance of Transformations before backend: time 8.936e-06/0.1661, allocations: 4 kB / 0.5899 GB, free: 408 kB / 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.0006876/0.1668, allocations: 0.5211 MB / 0.5904 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.1668, allocations: 11.97 kB / 0.5904 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.1669, allocations: 23.81 kB / 0.5904 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.1672, allocations: 236.2 kB / 0.5906 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.1672, allocations: 8 kB / 0.5906 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.1673, allocations: 12 kB / 0.5906 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.1675, allocations: 121.5 kB / 0.5908 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1676, allocations: 0 / 0.5908 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1676, allocations: 4 kB / 0.5908 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.1676, allocations: 4 kB / 0.5908 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.1678, allocations: 75.94 kB / 0.5908 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006455/0.1684, allocations: 420.6 kB / 0.5912 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.1686, allocations: 90.53 kB / 0.5913 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.1688, allocations: 84.8 kB / 0.5914 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.1689, allocations: 4.141 kB / 0.5914 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.1692, allocations: 190.7 kB / 0.5916 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 3.256e-06/0.1692, allocations: 3.984 kB / 0.5916 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007382/0.1699, allocations: 360.7 kB / 0.5919 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.17, allocations: 174.2 kB / 0.5921 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/0.1702, allocations: 180.2 kB / 0.5923 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.1703, allocations: 29.7 kB / 0.5923 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.901e-05/0.1704, allocations: 112.3 kB / 0.5924 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.083e-05/0.1704, allocations: 23.7 kB / 0.5924 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.47e-05/0.1704, allocations: 8 kB / 0.5925 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1706, allocations: 326.8 kB / 0.5928 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.1707, allocations: 55.97 kB / 0.5928 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1709, allocations: 102.8 kB / 0.5929 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002269/0.1712, allocations: 186.7 kB / 0.5931 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1712, allocations: 0 / 0.5931 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005364/0.1717, allocations: 352 kB / 0.5934 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.67e-05/0.1718, allocations: 118.8 kB / 0.5935 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.1718, allocations: 4 kB / 0.5935 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1719, allocations: 0 / 0.5935 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.172, allocations: 23.92 kB / 0.5936 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.172, allocations: 8.25 kB / 0.5936 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.875e-05/0.1721, allocations: 19.88 kB / 0.5936 GB, free: 12.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.108e-05/0.1721, allocations: 8 kB / 0.5936 GB, free: 12.17 MB / 0.4981 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.1723, allocations: 200.6 kB / 0.5938 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.905e-05/0.1723, allocations: 19.81 kB / 0.5938 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.262e-05/0.1724, allocations: 17.39 kB / 0.5938 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1724, allocations: 4 kB / 0.5938 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1724, allocations: 0 / 0.5938 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.1724, allocations: 4 kB / 0.5938 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000782/0.1732, allocations: 0.5917 MB / 0.5944 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.1732, allocations: 3.938 kB / 0.5944 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.533e-05/0.1733, allocations: 12 kB / 0.5944 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.1733, allocations: 4 kB / 0.5944 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.1733, allocations: 11.98 kB / 0.5944 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1733, allocations: 0 / 0.5944 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.1733, allocations: 7.953 kB / 0.5945 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000559/0.1739, allocations: 410.6 kB / 0.5948 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.291e-05/0.174, allocations: 88.92 kB / 0.5949 GB, free: 10.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.712e-05/0.174, allocations: 7.984 kB / 0.5949 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.1741, allocations: 12 kB / 0.5949 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.328e-05/0.1742, allocations: 7.984 kB / 0.595 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.1742, allocations: 11.95 kB / 0.595 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001013/0.1743, allocations: 132.3 kB / 0.5951 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.31e-07/0.1743, allocations: 0 / 0.5951 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002969/0.1746, allocations: 40 kB / 0.5951 GB, free: 10.46 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002634/0.1749, allocations: 128.6 kB / 0.5953 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000527/0.1755, allocations: 373.5 kB / 0.5956 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1755, allocations: 0 / 0.5956 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002481/0.1757, allocations: 210.8 kB / 0.5958 GB, free: 9.691 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003142/0.176, allocations: 12.19 kB / 0.5958 GB, free: 9.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006322/0.1767, allocations: 318.3 kB / 0.5961 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.177, allocations: 0.7083 MB / 0.5968 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.648e-05/0.1771, allocations: 20.53 kB / 0.5968 GB, free: 8.586 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.1772, allocations: 15.44 kB / 0.5969 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1772, allocations: 0 / 0.5969 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of Templates: time 0.005187/0.1824, allocations: 1.926 MB / 0.5987 GB, free: 6.676 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)