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.001476/0.001476, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001679/0.001679, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.435/1.435, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8797/0.8797, allocations: 135.1 MB / 425.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 65.2 kB / 0.5047 GB, free: 5.785 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1572, allocations: 80.92 MB / 0.5837 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002814/0.1601, allocations: 1.655 MB / 0.5853 GB, free: 3.355 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.1611, allocations: 0.6313 MB / 0.5859 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.465e-05/0.1612, allocations: 3.938 kB / 0.5859 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.1613, allocations: 11.88 kB / 0.586 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001677/0.1615, allocations: 42.83 kB / 0.586 GB, free: 2.664 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003703/0.1619, allocations: 95.89 kB / 0.5861 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001518/0.162, allocations: 159.6 kB / 0.5862 GB, free: 2.414 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.1622, allocations: 29.11 kB / 0.5863 GB, free: 2.383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001261/0.1623, allocations: 83.69 kB / 0.5863 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.1624, allocations: 79.72 kB / 0.5864 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.1625, allocations: 8 kB / 0.5864 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.35e-05/0.1625, allocations: 16 kB / 0.5864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.447e-05/0.1626, allocations: 35.91 kB / 0.5865 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.325e-05/0.1627, allocations: 63.66 kB / 0.5865 GB, free: 2.102 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002103/0.1629, allocations: 163.8 kB / 0.5867 GB, free: 1.941 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.163, allocations: 0 / 0.5867 GB, free: 1.941 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.163, allocations: 4 kB / 0.5867 GB, free: 1.938 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.163, allocations: 0 / 0.5867 GB, free: 1.938 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.0006548/0.1636, allocations: 0.5523 MB / 0.5872 GB, free: 1.312 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.1637, allocations: 8.031 kB / 0.5872 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.208e-05/0.1637, allocations: 20.78 kB / 0.5873 GB, free: 1.285 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.164, allocations: 241.7 kB / 0.5875 GB, free: 1.012 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.1641, allocations: 8.375 kB / 0.5875 GB, free: 1.004 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.12e-05/0.1641, allocations: 12.38 kB / 0.5875 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002771/0.1644, allocations: 121.7 kB / 0.5876 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.1644, allocations: 7.875 kB / 0.5876 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.672e-05/0.1644, allocations: 0 / 0.5876 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.1644, allocations: 4 kB / 0.5876 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.1646, allocations: 67.94 kB / 0.5877 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.1653, allocations: 416.6 kB / 0.5881 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002034/0.1655, allocations: 94.52 kB / 0.5882 GB, free: 236 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.1657, allocations: 76.81 kB / 0.5883 GB, free: 156 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.1657, allocations: 4 kB / 0.5883 GB, free: 152 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.166, allocations: 174.6 kB / 0.5884 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.166, allocations: 0 / 0.5884 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007214/0.1667, allocations: 357 kB / 0.5888 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.542e-05/0.1668, allocations: 170.2 kB / 0.5889 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.167, allocations: 184.1 kB / 0.5891 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.167, allocations: 33.7 kB / 0.5891 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/0.1671, allocations: 108.4 kB / 0.5893 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.1671, allocations: 19.72 kB / 0.5893 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.796e-05/0.1672, allocations: 37.7 kB / 0.5893 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.1673, allocations: 330.7 kB / 0.5896 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001376/0.1675, allocations: 59.95 kB / 0.5897 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001591/0.1676, allocations: 102.8 kB / 0.5898 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003659/0.168, allocations: 312.9 kB / 0.5901 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.168, allocations: 0 / 0.5901 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005131/0.1686, allocations: 344.1 kB / 0.5904 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.907e-05/0.1686, allocations: 122.8 kB / 0.5905 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.1686, allocations: 0 / 0.5905 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1687, allocations: 4 kB / 0.5905 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1688, allocations: 19.92 kB / 0.5905 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1688, allocations: 4 kB / 0.5905 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.1689, allocations: 20.09 kB / 0.5906 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.1689, allocations: 12 kB / 0.5906 GB, free: 13.53 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.000153/0.1691, allocations: 205.7 kB / 0.5908 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.299e-05/0.1691, allocations: 11.91 kB / 0.5908 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.574e-05/0.1692, allocations: 17.41 kB / 0.5908 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1692, allocations: 0 / 0.5908 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1692, allocations: 3.938 kB / 0.5908 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1693, allocations: 4 kB / 0.5908 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007007/0.17, allocations: 0.5913 MB / 0.5914 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.17, allocations: 0 / 0.5914 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.761e-05/0.17, allocations: 11.98 kB / 0.5914 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1701, allocations: 4.281 kB / 0.5914 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1701, allocations: 4 kB / 0.5914 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1701, allocations: 0 / 0.5914 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1701, allocations: 7.875 kB / 0.5914 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005246/0.1706, allocations: 398.7 kB / 0.5918 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.645e-05/0.1707, allocations: 92.91 kB / 0.5919 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.692e-05/0.1707, allocations: 7.984 kB / 0.5919 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.1709, allocations: 12 kB / 0.5919 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.934e-05/0.1709, allocations: 11.92 kB / 0.5919 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.1709, allocations: 4 kB / 0.5919 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.181e-05/0.171, allocations: 136.3 kB / 0.592 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.51e-07/0.171, allocations: 4 kB / 0.592 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002946/0.1713, allocations: 36 kB / 0.5921 GB, free: 11.84 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.000213/0.1716, allocations: 124.2 kB / 0.5922 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000503/0.1721, allocations: 365.3 kB / 0.5926 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1721, allocations: 0 / 0.5926 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002455/0.1723, allocations: 206.8 kB / 0.5927 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.1727, allocations: 19.95 kB / 0.5928 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000608/0.1733, allocations: 330 kB / 0.5931 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.1736, allocations: 0.7083 MB / 0.5938 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.642e-05/0.1737, allocations: 24.53 kB / 0.5938 GB, free: 9.961 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.419e-05/0.1737, allocations: 15.44 kB / 0.5938 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1737, allocations: 0 / 0.5938 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of Templates: time 0.005014/0.1787, allocations: 1.962 MB / 0.5957 GB, free: 8.02 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)