Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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_IDEAS.Utilities.IO.Files.Examples.CSVWriter") translateModel(IDEAS.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.0008027/0.0008027, 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.0008688/0.0008688, 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.195/1.195, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8515/0.8515, allocations: 135.2 MB / 426.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003352, allocations: 9.938 kB / 0.5068 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1407, allocations: 82.31 MB / 0.5872 GB, free: 3.098 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001771/0.1425, allocations: 1.28 MB / 0.5884 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008434/0.1434, allocations: 0.5594 MB / 0.589 GB, free: 1.246 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.346e-05/0.1434, allocations: 7.938 kB / 0.589 GB, free: 1.238 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.561e-05/0.1435, allocations: 11.92 kB / 0.589 GB, free: 1.227 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001269/0.1436, allocations: 35.88 kB / 0.589 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003189/0.144, allocations: 99.77 kB / 0.5891 GB, free: 1.094 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000109/0.1441, allocations: 99.81 kB / 0.5892 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.532e-05/0.1442, allocations: 25.09 kB / 0.5893 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.1443, allocations: 71.81 kB / 0.5893 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.864e-05/0.1444, allocations: 67.73 kB / 0.5894 GB, free: 0.832 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.1444, allocations: 8 kB / 0.5894 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.828e-05/0.1445, allocations: 15.94 kB / 0.5894 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.859e-05/0.1445, allocations: 23.91 kB / 0.5894 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.851e-05/0.1446, allocations: 53.58 kB / 0.5895 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.1447, allocations: 104.1 kB / 0.5896 GB, free: 0.625 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.202e-06/0.1447, allocations: 0 / 0.5896 GB, free: 0.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.1448, allocations: 4 kB / 0.5896 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.545e-06/0.1448, allocations: 0 / 0.5896 GB, free: 0.6211 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.0004387/0.1452, allocations: 0.5327 MB / 0.5901 GB, free: 16 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 1.98e-05/0.1452, allocations: 8.031 kB / 0.5901 GB, free: 8 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.253e-05/0.1453, allocations: 16.08 kB / 0.5901 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.1455, allocations: 239.9 kB / 0.5904 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1455, allocations: 12 kB / 0.5904 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.152e-05/0.1456, allocations: 12 kB / 0.5904 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002084/0.1458, allocations: 121.6 kB / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.889e-06/0.1458, allocations: 0 / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.1458, allocations: 0 / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1458, allocations: 4 kB / 0.5905 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.146, allocations: 83.88 kB / 0.5906 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.1466, allocations: 412.7 kB / 0.591 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.1468, allocations: 98.56 kB / 0.5911 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.1468, allocations: 0 / 0.5911 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002491/0.1471, allocations: 186.9 kB / 0.5913 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.223e-06/0.1471, allocations: 0 / 0.5913 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0006875/0.1478, allocations: 0.5068 MB / 0.5917 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.1479, allocations: 170.2 kB / 0.5919 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.148, allocations: 176.5 kB / 0.5921 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.148, allocations: 41.69 kB / 0.5921 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.1481, allocations: 108.3 kB / 0.5922 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.1481, allocations: 31.62 kB / 0.5923 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.959e-06/0.1481, allocations: 4 kB / 0.5923 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.589e-05/0.1482, allocations: 326.8 kB / 0.5926 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.1484, allocations: 55.95 kB / 0.5926 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.1485, allocations: 106.8 kB / 0.5927 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001761/0.1487, allocations: 178.7 kB / 0.5929 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1487, allocations: 0 / 0.5929 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004606/0.1492, allocations: 356.2 kB / 0.5932 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.1492, allocations: 122.8 kB / 0.5933 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.1492, allocations: 0 / 0.5933 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-06/0.1493, allocations: 7.938 kB / 0.5934 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.015e-05/0.1494, allocations: 19.98 kB / 0.5934 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.526e-06/0.1494, allocations: 0 / 0.5934 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.34e-05/0.1495, allocations: 23.89 kB / 0.5934 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1495, allocations: 16.11 kB / 0.5934 GB, free: 12.27 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.0001266/0.1496, allocations: 196.4 kB / 0.5936 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.776e-05/0.1497, allocations: 19.81 kB / 0.5936 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.1497, allocations: 13.41 kB / 0.5936 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1497, allocations: 0 / 0.5936 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.1497, allocations: 0 / 0.5936 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1497, allocations: 3.984 kB / 0.5936 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006646/0.1504, allocations: 0.5954 MB / 0.5942 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1504, allocations: 0 / 0.5942 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.483e-05/0.1505, allocations: 19.97 kB / 0.5942 GB, free: 11.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.1505, allocations: 4 kB / 0.5942 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.1505, allocations: 4 kB / 0.5942 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1505, allocations: 0 / 0.5942 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1505, allocations: 4 kB / 0.5942 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004764/0.151, allocations: 418.7 kB / 0.5946 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.966e-05/0.1511, allocations: 92.92 kB / 0.5947 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.1511, allocations: 7.938 kB / 0.5947 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1512, allocations: 15.98 kB / 0.5948 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.18e-05/0.1512, allocations: 8 kB / 0.5948 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1513, allocations: 7.984 kB / 0.5948 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.08e-05/0.1514, allocations: 132.2 kB / 0.5949 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1514, allocations: 0 / 0.5949 GB, free: 10.61 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002618/0.1516, allocations: 36 kB / 0.5949 GB, free: 10.57 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.0001712/0.1518, allocations: 129.2 kB / 0.5951 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004889/0.1523, allocations: 369.8 kB / 0.5954 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1523, allocations: 4.062 kB / 0.5954 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002177/0.1525, allocations: 210.7 kB / 0.5956 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.1527, allocations: 17.16 kB / 0.5956 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004687/0.1532, allocations: 306 kB / 0.5959 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.1535, allocations: 0.716 MB / 0.5966 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.857e-05/0.1535, allocations: 24.48 kB / 0.5966 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.1536, allocations: 19.42 kB / 0.5967 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/0.1536, allocations: 0 / 0.5967 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of Templates: time 0.004113/0.1577, allocations: 1.92 MB / 0.5985 GB, free: 6.793 MB / 0.4981 GB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile Environment - environmentSimulation: (rm -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.sim & ./IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) Environment - environmentSimulation: