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.0008365/0.0008364, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.0008224/0.0008226, allocations: 177.3 kB / 15.94 MB, free: 228 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.182/1.182, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.85/0.85, allocations: 135.2 MB / 426.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002719/0.0002719, allocations: 12 kB / 0.5068 GB, free: 5.242 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1463, allocations: 82.3 MB / 0.5872 GB, free: 3.105 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001573/0.1479, allocations: 1.288 MB / 0.5884 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007658/0.1487, allocations: 0.546 MB / 0.589 GB, free: 1.258 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.984e-05/0.1488, allocations: 3.938 kB / 0.589 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.1489, allocations: 19.86 kB / 0.589 GB, free: 1.234 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001634/0.1491, allocations: 42.75 kB / 0.589 GB, free: 1.195 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.1494, allocations: 95.83 kB / 0.5891 GB, free: 1.102 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.1495, allocations: 99.81 kB / 0.5892 GB, free: 1.004 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.66e-05/0.1496, allocations: 17.11 kB / 0.5892 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.1497, allocations: 75.75 kB / 0.5893 GB, free: 0.9102 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001082/0.1498, allocations: 63.8 kB / 0.5894 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.1499, allocations: 8 kB / 0.5894 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.094e-05/0.1499, allocations: 19.94 kB / 0.5894 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.376e-05/0.15, allocations: 19.92 kB / 0.5894 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.234e-05/0.1501, allocations: 53.64 kB / 0.5895 GB, free: 0.7422 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001371/0.1502, allocations: 112 kB / 0.5896 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1502, allocations: 0 / 0.5896 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1502, allocations: 3.938 kB / 0.5896 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.1502, allocations: 0 / 0.5896 GB, free: 0.6289 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.0005325/0.1508, allocations: 0.5288 MB / 0.5901 GB, free: 28 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.1508, allocations: 8.031 kB / 0.5901 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.1508, allocations: 15.91 kB / 0.5901 GB, free: 4 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.1511, allocations: 244.2 kB / 0.5904 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.839e-05/0.1512, allocations: 4 kB / 0.5904 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.1512, allocations: 16 kB / 0.5904 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002305/0.1514, allocations: 119.2 kB / 0.5905 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.361e-06/0.1514, allocations: 0 / 0.5905 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.1515, allocations: 8 kB / 0.5905 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1515, allocations: 4 kB / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.1517, allocations: 71.94 kB / 0.5906 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005767/0.1522, allocations: 432.6 kB / 0.591 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.1524, allocations: 86.53 kB / 0.5911 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.1525, allocations: 3.984 kB / 0.5911 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002529/0.1527, allocations: 182.7 kB / 0.5912 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 3.256e-06/0.1527, allocations: 96 / 0.5912 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.000746/0.1535, allocations: 0.5147 MB / 0.5918 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.144e-05/0.1536, allocations: 162.2 kB / 0.5919 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001701/0.1538, allocations: 188.2 kB / 0.5921 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.413e-05/0.1538, allocations: 33.92 kB / 0.5921 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.341e-05/0.1539, allocations: 112.3 kB / 0.5922 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.1539, allocations: 19.72 kB / 0.5922 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/0.1539, allocations: 7.938 kB / 0.5923 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001126/0.154, allocations: 326.8 kB / 0.5926 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.1542, allocations: 55.95 kB / 0.5926 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.1543, allocations: 106.8 kB / 0.5927 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.1546, allocations: 174.8 kB / 0.5929 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1546, allocations: 0 / 0.5929 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004696/0.155, allocations: 356 kB / 0.5932 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.206e-05/0.1551, allocations: 118.8 kB / 0.5933 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.1551, allocations: 8 kB / 0.5933 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1552, allocations: 8.25 kB / 0.5934 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.1553, allocations: 23.86 kB / 0.5934 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1553, allocations: 4 kB / 0.5934 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.281e-05/0.1554, allocations: 15.94 kB / 0.5934 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.123e-05/0.1554, allocations: 19.94 kB / 0.5934 GB, free: 12.28 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.0001345/0.1556, allocations: 190.4 kB / 0.5936 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.571e-05/0.1556, allocations: 19.81 kB / 0.5936 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.1556, allocations: 17.41 kB / 0.5936 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1556, allocations: 3.984 kB / 0.5936 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1556, allocations: 3.938 kB / 0.5936 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.1556, allocations: 0 / 0.5936 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006413/0.1563, allocations: 0.5876 MB / 0.5942 GB, free: 11.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.1563, allocations: 8 kB / 0.5942 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.269e-05/0.1564, allocations: 19.92 kB / 0.5942 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1564, allocations: 0 / 0.5942 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.1564, allocations: 11.98 kB / 0.5942 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1564, allocations: 0 / 0.5942 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1564, allocations: 0 / 0.5942 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004825/0.1569, allocations: 414.5 kB / 0.5946 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.902e-05/0.157, allocations: 88.92 kB / 0.5947 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.157, allocations: 8 kB / 0.5947 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001073/0.1571, allocations: 15.92 kB / 0.5948 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.1572, allocations: 4 kB / 0.5948 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.563e-05/0.1572, allocations: 7.984 kB / 0.5948 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.633e-05/0.1573, allocations: 136.3 kB / 0.5949 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1573, allocations: 0 / 0.5949 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002701/0.1576, allocations: 43.94 kB / 0.5949 GB, free: 10.58 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.0001936/0.1578, allocations: 121.6 kB / 0.5951 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.1582, allocations: 369.4 kB / 0.5954 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1582, allocations: 3.938 kB / 0.5954 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002125/0.1584, allocations: 207.3 kB / 0.5956 GB, free: 9.82 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.1586, allocations: 27.55 kB / 0.5956 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004857/0.1591, allocations: 313.9 kB / 0.5959 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000242/0.1594, allocations: 0.7121 MB / 0.5966 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.913e-05/0.1594, allocations: 24.47 kB / 0.5966 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.945e-05/0.1595, allocations: 19.44 kB / 0.5967 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.1595, allocations: 0 / 0.5967 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of Templates: time 0.004152/0.1636, allocations: 1.914 MB / 0.5985 GB, free: 6.805 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: