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.005626/0.005626, allocations: 104.8 kB / 15.74 MB, free: 5.984 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.001323/0.001323, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.294/1.294, 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.7865/0.7865, allocations: 135.1 MB / 425.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 73.05 kB / 0.5856 GB, free: 21.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1495, allocations: 80.92 MB / 0.6646 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003251/0.1528, allocations: 1.593 MB / 0.6662 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000935/0.1537, allocations: 0.6233 MB / 0.6668 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.399e-05/0.1538, allocations: 3.938 kB / 0.6668 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.154, allocations: 15.86 kB / 0.6668 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.1542, allocations: 43.75 kB / 0.6669 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.1545, allocations: 107.8 kB / 0.667 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.1548, allocations: 207.6 kB / 0.6672 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.1549, allocations: 28.84 kB / 0.6672 GB, free: 3.164 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.155, allocations: 87.75 kB / 0.6673 GB, free: 3.078 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.1552, allocations: 83.66 kB / 0.6673 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.424e-05/0.1552, allocations: 20 kB / 0.6674 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.551e-05/0.1553, allocations: 24 kB / 0.6674 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.9e-05/0.1554, allocations: 35.89 kB / 0.6674 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.896e-05/0.1555, allocations: 71.66 kB / 0.6675 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000261/0.1558, allocations: 175.4 kB / 0.6677 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1558, allocations: 0 / 0.6677 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.014e-06/0.1558, allocations: 0 / 0.6677 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.883e-06/0.1558, allocations: 0 / 0.6677 GB, free: 2.676 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.0007901/0.1566, allocations: 0.5446 MB / 0.6682 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1566, allocations: 17.11 kB / 0.6682 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.66e-05/0.1567, allocations: 16.75 kB / 0.6682 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.1571, allocations: 236.1 kB / 0.6685 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.631e-05/0.1571, allocations: 12.38 kB / 0.6685 GB, free: 1.746 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.349e-05/0.1571, allocations: 12.38 kB / 0.6685 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.1574, allocations: 113.7 kB / 0.6686 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1575, allocations: 0 / 0.6686 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.1575, allocations: 4 kB / 0.6686 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.1575, allocations: 4 kB / 0.6686 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.1577, allocations: 71.94 kB / 0.6687 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006378/0.1583, allocations: 420.4 kB / 0.6691 GB, free: 1.078 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.1585, allocations: 94.62 kB / 0.6691 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/0.1587, allocations: 80.75 kB / 0.6692 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.106e-05/0.1588, allocations: 0 / 0.6692 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.159, allocations: 174.7 kB / 0.6694 GB, free: 0.6992 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.159, allocations: 3.938 kB / 0.6694 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007261/0.1598, allocations: 356.8 kB / 0.6697 GB, free: 336 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.636e-05/0.1599, allocations: 170.2 kB / 0.6699 GB, free: 128 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001855/0.1601, allocations: 172.1 kB / 0.6701 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.1601, allocations: 33.7 kB / 0.6701 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 6.846e-05/0.1602, allocations: 108.4 kB / 0.6702 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.1602, allocations: 27.56 kB / 0.6702 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.987e-05/0.1603, allocations: 41.7 kB / 0.6703 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1604, allocations: 326.8 kB / 0.6706 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.1606, allocations: 55.95 kB / 0.6706 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.1607, allocations: 98.83 kB / 0.6707 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.1611, allocations: 312.9 kB / 0.671 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.1611, allocations: 4 kB / 0.671 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000538/0.1616, allocations: 344.1 kB / 0.6714 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.221e-05/0.1617, allocations: 114.8 kB / 0.6715 GB, free: 14.34 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.1617, allocations: 11.98 kB / 0.6715 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.1618, allocations: 0 / 0.6715 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/0.1619, allocations: 19.98 kB / 0.6715 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.1619, allocations: 8.188 kB / 0.6715 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.162, allocations: 11.91 kB / 0.6715 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.162, allocations: 15.94 kB / 0.6715 GB, free: 14.27 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.0001534/0.1622, allocations: 197.2 kB / 0.6717 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.431e-05/0.1622, allocations: 19.81 kB / 0.6717 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.553e-05/0.1623, allocations: 13.39 kB / 0.6717 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.1623, allocations: 4 kB / 0.6718 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1623, allocations: 0 / 0.6718 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1623, allocations: 0 / 0.6718 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007262/0.163, allocations: 0.5952 MB / 0.6723 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1631, allocations: 0 / 0.6723 GB, free: 13.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.158e-05/0.1631, allocations: 16.2 kB / 0.6723 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.1631, allocations: 0 / 0.6723 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.1632, allocations: 8 kB / 0.6724 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1632, allocations: 3.938 kB / 0.6724 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1632, allocations: 3.938 kB / 0.6724 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005397/0.1637, allocations: 402.7 kB / 0.6727 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.215e-05/0.1638, allocations: 89 kB / 0.6728 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.1638, allocations: 4 kB / 0.6728 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.1639, allocations: 4 kB / 0.6728 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.881e-05/0.164, allocations: 19.86 kB / 0.6729 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.164, allocations: 4 kB / 0.6729 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001072/0.1641, allocations: 139.2 kB / 0.673 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1641, allocations: 0 / 0.673 GB, free: 12.63 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000294/0.1644, allocations: 43.91 kB / 0.673 GB, free: 12.59 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.0002152/0.1647, allocations: 117 kB / 0.6732 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0004816/0.1651, allocations: 373.3 kB / 0.6735 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1652, allocations: 0 / 0.6735 GB, free: 12.06 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.000247/0.1654, allocations: 202.8 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.0003081/0.1657, allocations: 18.81 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.0005793/0.1663, 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.0002693/0.1666, allocations: 0.708 MB / 0.6747 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 6.852e-05/0.1667, 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 4.604e-05/0.1667, allocations: 19.38 kB / 0.6747 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.1667, allocations: 0 / 0.6747 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of Templates: time 0.004995/0.1717, allocations: 2.071 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)