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.005706/0.005706, allocations: 101 kB / 15.73 MB, free: 6.055 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.001312/0.001312, allocations: 196.6 kB / 16.68 MB, free: 5.969 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7659/0.7659, allocations: 135.1 MB / 425.7 MB, free: 4.094 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 67.44 kB / 0.5856 GB, free: 21.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1343, allocations: 80.92 MB / 0.6646 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002672/0.137, allocations: 1.605 MB / 0.6662 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009558/0.138, allocations: 0.6156 MB / 0.6668 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.942e-05/0.1381, allocations: 0 / 0.6668 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.1382, allocations: 27.78 kB / 0.6668 GB, free: 3.551 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.1384, allocations: 39.77 kB / 0.6669 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000376/0.1388, allocations: 111.8 kB / 0.667 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002565/0.1391, allocations: 203.6 kB / 0.6672 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.1392, allocations: 24.86 kB / 0.6672 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001553/0.1394, allocations: 87.69 kB / 0.6673 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.1395, allocations: 83.72 kB / 0.6673 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.1395, allocations: 16 kB / 0.6674 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.788e-05/0.1396, allocations: 31.98 kB / 0.6674 GB, free: 2.961 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.054e-05/0.1397, allocations: 31.91 kB / 0.6674 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.1398, allocations: 71.66 kB / 0.6675 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002505/0.1401, allocations: 171.4 kB / 0.6677 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1401, allocations: 0 / 0.6677 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.615e-06/0.1401, allocations: 0 / 0.6677 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.783e-06/0.1401, allocations: 3.938 kB / 0.6677 GB, free: 2.688 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.0006542/0.1408, allocations: 0.5486 MB / 0.6682 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.1408, allocations: 17.11 kB / 0.6682 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.359e-05/0.1409, allocations: 16.75 kB / 0.6682 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.1412, allocations: 232.2 kB / 0.6684 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.1412, allocations: 12.38 kB / 0.6685 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.82e-05/0.1413, allocations: 16.36 kB / 0.6685 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002711/0.1416, allocations: 117.7 kB / 0.6686 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1416, allocations: 0 / 0.6686 GB, free: 1.621 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.895e-05/0.1416, allocations: 4 kB / 0.6686 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.359e-06/0.1416, allocations: 4 kB / 0.6686 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.1418, allocations: 71.94 kB / 0.6687 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006472/0.1425, allocations: 420.4 kB / 0.6691 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002018/0.1427, allocations: 90.53 kB / 0.6692 GB, free: 0.9844 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.1428, allocations: 84.75 kB / 0.6692 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.1429, allocations: 0 / 0.6692 GB, free: 0.8984 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.1431, allocations: 174.8 kB / 0.6694 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.403e-06/0.1431, allocations: 3.938 kB / 0.6694 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007055/0.1439, allocations: 356.9 kB / 0.6697 GB, free: 340 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.645e-05/0.144, allocations: 162.2 kB / 0.6699 GB, free: 140 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1441, allocations: 179.9 kB / 0.6701 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.1442, allocations: 29.7 kB / 0.6701 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.233e-05/0.1443, allocations: 108.4 kB / 0.6702 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.1443, allocations: 27.56 kB / 0.6702 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/0.1444, allocations: 45.7 kB / 0.6703 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000118/0.1445, allocations: 330.8 kB / 0.6706 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.1446, allocations: 51.97 kB / 0.6706 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.1448, allocations: 98.91 kB / 0.6707 GB, free: 15.22 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003292/0.1451, allocations: 316.9 kB / 0.671 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1451, allocations: 0 / 0.671 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005161/0.1457, allocations: 340.2 kB / 0.6714 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.21e-05/0.1457, allocations: 114.8 kB / 0.6715 GB, free: 14.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.1458, allocations: 7.984 kB / 0.6715 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.1458, allocations: 7.938 kB / 0.6715 GB, free: 14.33 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.1459, allocations: 19.98 kB / 0.6715 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.1459, allocations: 4.25 kB / 0.6715 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.146, allocations: 15.91 kB / 0.6715 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.126e-05/0.146, allocations: 11.94 kB / 0.6715 GB, free: 14.28 MB / 0.5137 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.0001649/0.1462, allocations: 205.1 kB / 0.6717 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.681e-05/0.1463, allocations: 19.81 kB / 0.6717 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.37e-05/0.1463, allocations: 13.41 kB / 0.6718 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1463, allocations: 0 / 0.6718 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.1463, allocations: 0 / 0.6718 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.1463, allocations: 3.984 kB / 0.6718 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006998/0.147, allocations: 0.5917 MB / 0.6723 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.1471, allocations: 4 kB / 0.6723 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.625e-05/0.1471, allocations: 11.98 kB / 0.6724 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.1471, allocations: 0 / 0.6724 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.1472, allocations: 8 kB / 0.6724 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1472, allocations: 0 / 0.6724 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.1472, allocations: 7.938 kB / 0.6724 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005409/0.1477, allocations: 406.6 kB / 0.6728 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.449e-05/0.1478, allocations: 85.02 kB / 0.6728 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.1478, allocations: 4 kB / 0.6728 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00012/0.1479, allocations: 4 kB / 0.6728 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.148, allocations: 19.91 kB / 0.6729 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.148, allocations: 8 kB / 0.6729 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 9.428e-05/0.1481, allocations: 135.2 kB / 0.673 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1481, allocations: 0 / 0.673 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003001/0.1484, allocations: 39.91 kB / 0.673 GB, free: 12.6 MB / 0.5137 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.0002136/0.1486, allocations: 124.4 kB / 0.6732 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005085/0.1492, allocations: 365.4 kB / 0.6735 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1492, allocations: 0 / 0.6735 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002375/0.1494, allocations: 206.7 kB / 0.6737 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.1497, allocations: 19.94 kB / 0.6737 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005394/0.1503, allocations: 296.3 kB / 0.674 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.1506, allocations: 0.708 MB / 0.6747 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.483e-05/0.1506, allocations: 20.53 kB / 0.6747 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.416e-05/0.1507, allocations: 19.42 kB / 0.6747 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/0.1507, allocations: 4 kB / 0.6747 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of Templates: time 0.004884/0.1556, allocations: 2.062 MB / 0.6768 GB, free: 8.688 MB / 0.5137 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)