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.001353/0.001353, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001399/0.001399, allocations: 190.2 kB / 16.25 MB, free: 6.637 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.448/1.448, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9947/0.9947, allocations: 135.2 MB / 425.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 68.36 kB / 0.5049 GB, free: 5.629 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1696, allocations: 80.93 MB / 0.5839 GB, free: 4.859 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003129/0.1728, allocations: 1.658 MB / 0.5856 GB, free: 3.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009652/0.1738, allocations: 0.5962 MB / 0.5861 GB, free: 2.586 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.408e-05/0.1739, allocations: 4 kB / 0.5861 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.174, allocations: 31.78 kB / 0.5862 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.1742, allocations: 27.84 kB / 0.5862 GB, free: 2.523 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.1746, allocations: 107.8 kB / 0.5863 GB, free: 2.418 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002417/0.1748, allocations: 187.6 kB / 0.5865 GB, free: 2.234 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.1749, allocations: 29.09 kB / 0.5865 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.1751, allocations: 87.75 kB / 0.5866 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001294/0.1752, allocations: 83.72 kB / 0.5867 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.671e-05/0.1753, allocations: 19.94 kB / 0.5867 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.407e-05/0.1754, allocations: 28 kB / 0.5867 GB, free: 1.988 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.897e-05/0.1754, allocations: 31.89 kB / 0.5867 GB, free: 1.957 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.959e-05/0.1755, allocations: 71.72 kB / 0.5868 GB, free: 1.887 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002211/0.1758, allocations: 163.8 kB / 0.587 GB, free: 1.727 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1758, allocations: 0 / 0.587 GB, free: 1.727 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1758, allocations: 0 / 0.587 GB, free: 1.727 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.1758, allocations: 0 / 0.587 GB, free: 1.727 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.0007303/0.1765, allocations: 0.5678 MB / 0.5875 GB, free: 1.086 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1766, allocations: 8.031 kB / 0.5875 GB, free: 1.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.1767, allocations: 20.84 kB / 0.5876 GB, free: 1.059 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003177/0.177, allocations: 236.9 kB / 0.5878 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.177, allocations: 8.375 kB / 0.5878 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.995e-05/0.1771, allocations: 20.36 kB / 0.5878 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.1773, allocations: 113.7 kB / 0.5879 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.1774, allocations: 4 kB / 0.5879 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.785e-05/0.1774, allocations: 4 kB / 0.5879 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1774, allocations: 0 / 0.5879 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.1776, allocations: 63.95 kB / 0.588 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006936/0.1783, allocations: 420.6 kB / 0.5884 GB, free: 116 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.1785, allocations: 82.53 kB / 0.5885 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002385/0.1788, allocations: 77.05 kB / 0.5885 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.1788, allocations: 7.906 kB / 0.5885 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003605/0.1792, allocations: 178.6 kB / 0.5887 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 4.689e-06/0.1792, allocations: 96 / 0.5887 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.000888/0.1801, allocations: 352.7 kB / 0.5891 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000142/0.1802, allocations: 166.2 kB / 0.5892 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.1805, allocations: 187.3 kB / 0.5894 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.076e-05/0.1805, allocations: 37.58 kB / 0.5894 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001048/0.1806, allocations: 108.4 kB / 0.5895 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.434e-05/0.1807, allocations: 23.7 kB / 0.5896 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.069e-05/0.1808, allocations: 37.7 kB / 0.5896 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0002064/0.181, allocations: 330.8 kB / 0.5899 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.1811, allocations: 51.95 kB / 0.59 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1813, allocations: 102.8 kB / 0.5901 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.1818, allocations: 308.9 kB / 0.5903 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1818, allocations: 0 / 0.5903 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005828/0.1824, allocations: 344.1 kB / 0.5907 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/0.1825, allocations: 122.8 kB / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1825, allocations: 0 / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1825, allocations: 4 kB / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.1826, allocations: 23.92 kB / 0.5908 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.1827, allocations: 4 kB / 0.5908 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.1828, allocations: 23.83 kB / 0.5908 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.1828, allocations: 8.219 kB / 0.5909 GB, free: 13.32 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.0002032/0.183, allocations: 209 kB / 0.5911 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.1831, allocations: 11.91 kB / 0.5911 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.634e-05/0.1831, allocations: 17.39 kB / 0.5911 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1831, allocations: 0 / 0.5911 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1831, allocations: 0 / 0.5911 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.1831, allocations: 0 / 0.5911 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000852/0.184, allocations: 0.5952 MB / 0.5917 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.184, allocations: 0 / 0.5917 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.188e-05/0.1841, allocations: 8 kB / 0.5917 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1841, allocations: 0 / 0.5917 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.371e-05/0.1841, allocations: 12.27 kB / 0.5917 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1841, allocations: 0 / 0.5917 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1841, allocations: 3.938 kB / 0.5917 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006049/0.1847, allocations: 410.6 kB / 0.5921 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.1848, allocations: 88.92 kB / 0.5922 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.1849, allocations: 11.94 kB / 0.5922 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.185, allocations: 11.98 kB / 0.5922 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.185, allocations: 3.938 kB / 0.5922 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/0.1851, allocations: 15.98 kB / 0.5922 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001149/0.1852, allocations: 129.1 kB / 0.5923 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1852, allocations: 0 / 0.5923 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002961/0.1855, allocations: 39.98 kB / 0.5924 GB, free: 11.63 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.0002452/0.1858, allocations: 126.7 kB / 0.5925 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005933/0.1864, allocations: 365.8 kB / 0.5928 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1864, allocations: 8 kB / 0.5928 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000258/0.1866, allocations: 202.7 kB / 0.593 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003086/0.187, allocations: 19.98 kB / 0.5931 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000627/0.1876, allocations: 319.8 kB / 0.5934 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003673/0.188, allocations: 0.708 MB / 0.5941 GB, free: 9.777 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.592e-05/0.188, allocations: 20.53 kB / 0.5941 GB, free: 9.758 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.419e-05/0.1881, allocations: 15.44 kB / 0.5941 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.1881, allocations: 0 / 0.5941 GB, free: 9.742 MB / 0.4981 GB Notification: Performance of Templates: time 0.006037/0.1941, allocations: 2.065 MB / 0.5961 GB, free: 7.719 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)