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.0009969/0.0009968, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007253/0.007253, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.422/1.422, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.024/1.024, allocations: 135.3 MB / 426.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003027, allocations: 13.58 kB / 0.5076 GB, free: 4.746 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1554, allocations: 82.31 MB / 0.588 GB, free: 2.605 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.00239/0.1579, allocations: 1.308 MB / 0.5893 GB, free: 1.285 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.159, allocations: 0.6119 MB / 0.5898 GB, free: 0.668 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.606e-05/0.1591, allocations: 4 kB / 0.5899 GB, free: 0.6641 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.1592, allocations: 23.84 kB / 0.5899 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.1594, allocations: 35.83 kB / 0.5899 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.1598, allocations: 99.89 kB / 0.59 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.16, allocations: 159.6 kB / 0.5902 GB, free: 360 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001288/0.1602, allocations: 29.09 kB / 0.5902 GB, free: 328 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.1604, allocations: 71.77 kB / 0.5903 GB, free: 256 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.1605, allocations: 75.72 kB / 0.5903 GB, free: 180 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.862e-05/0.1606, allocations: 4 kB / 0.5903 GB, free: 176 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.653e-05/0.1606, allocations: 27.94 kB / 0.5904 GB, free: 148 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.736e-05/0.1608, allocations: 27.89 kB / 0.5904 GB, free: 120 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000212/0.161, allocations: 85.44 kB / 0.5905 GB, free: 28 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002997/0.1613, allocations: 159.8 kB / 0.5906 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1613, allocations: 4 kB / 0.5906 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.784e-06/0.1613, allocations: 0 / 0.5906 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.201e-05/0.1613, allocations: 0 / 0.5906 GB, free: 15.86 MB / 0.4981 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.0009383/0.1623, allocations: 0.529 MB / 0.5911 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.1623, allocations: 12.03 kB / 0.5911 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.48e-05/0.1624, allocations: 20.75 kB / 0.5912 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003698/0.1628, allocations: 241.5 kB / 0.5914 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.1628, allocations: 12.38 kB / 0.5914 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.126e-05/0.1629, allocations: 8.375 kB / 0.5914 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003626/0.1632, allocations: 121.7 kB / 0.5915 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1633, allocations: 0 / 0.5915 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.1633, allocations: 0 / 0.5915 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.1633, allocations: 7.938 kB / 0.5915 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000228/0.1635, allocations: 79.94 kB / 0.5916 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000794/0.1644, allocations: 416.8 kB / 0.592 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002272/0.1646, allocations: 94.47 kB / 0.5921 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1648, allocations: 80.81 kB / 0.5922 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.1648, allocations: 12.14 kB / 0.5922 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003386/0.1652, allocations: 174.7 kB / 0.5924 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.1652, allocations: 0 / 0.5924 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.000789/0.166, allocations: 368.7 kB / 0.5927 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.1661, allocations: 166.2 kB / 0.5929 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/0.1663, allocations: 184.1 kB / 0.593 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.1663, allocations: 33.7 kB / 0.5931 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.366e-05/0.1664, allocations: 112.3 kB / 0.5932 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.1665, allocations: 23.7 kB / 0.5932 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.1665, allocations: 21.7 kB / 0.5932 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.1667, allocations: 330.8 kB / 0.5935 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.1668, allocations: 60.17 kB / 0.5936 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.167, allocations: 114.1 kB / 0.5937 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004469/0.1675, allocations: 316.9 kB / 0.594 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.1675, allocations: 3.938 kB / 0.594 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005698/0.168, allocations: 352.1 kB / 0.5944 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.889e-05/0.1682, allocations: 124.7 kB / 0.5945 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1682, allocations: 0 / 0.5945 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1682, allocations: 4 kB / 0.5945 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.1683, allocations: 20.17 kB / 0.5945 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.1683, allocations: 12.06 kB / 0.5945 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1685, allocations: 19.92 kB / 0.5945 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.1685, allocations: 12 kB / 0.5945 GB, free: 11.42 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 (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.0001753/0.1687, allocations: 200.4 kB / 0.5947 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.318e-05/0.1687, allocations: 15.81 kB / 0.5947 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.1687, allocations: 17.39 kB / 0.5948 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.1688, allocations: 0 / 0.5948 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1688, allocations: 0 / 0.5948 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1688, allocations: 4 kB / 0.5948 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007554/0.1695, allocations: 0.603 MB / 0.5954 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1696, allocations: 0 / 0.5954 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.383e-05/0.1696, allocations: 8 kB / 0.5954 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.1696, allocations: 8 kB / 0.5954 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.189e-05/0.1697, allocations: 11.98 kB / 0.5954 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1697, allocations: 0 / 0.5954 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1697, allocations: 3.938 kB / 0.5954 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005632/0.1702, allocations: 410.7 kB / 0.5958 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-05/0.1703, allocations: 88.92 kB / 0.5959 GB, free: 9.926 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.138e-05/0.1704, allocations: 7.984 kB / 0.5959 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.1705, allocations: 15.94 kB / 0.5959 GB, free: 9.902 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.1706, allocations: 11.92 kB / 0.5959 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.1706, allocations: 8 kB / 0.5959 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001151/0.1707, allocations: 132.3 kB / 0.596 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1707, allocations: 0 / 0.596 GB, free: 9.754 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002988/0.1711, allocations: 39.94 kB / 0.5961 GB, free: 9.715 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 (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.0002193/0.1713, allocations: 119 kB / 0.5962 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004981/0.1718, allocations: 373.5 kB / 0.5965 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.1719, allocations: 4 kB / 0.5965 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002346/0.1721, allocations: 206.8 kB / 0.5967 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00031/0.1724, allocations: 19.38 kB / 0.5968 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005524/0.173, allocations: 330.2 kB / 0.5971 GB, free: 8.582 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004562/0.1734, allocations: 0.7083 MB / 0.5978 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.047e-05/0.1735, allocations: 20.53 kB / 0.5978 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.273e-05/0.1736, allocations: 19.44 kB / 0.5978 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1736, allocations: 0 / 0.5978 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of Templates: time 0.0052/0.1788, allocations: 1.966 MB / 0.5997 GB, free: 5.879 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)