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.001545/0.001545, allocations: 107.3 kB / 15.33 MB, free: 0.5039 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.001556/0.001556, allocations: 197.1 kB / 16.26 MB, free: 6.633 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.343/1.343, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9156/0.9156, allocations: 135.6 MB / 425.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 65.12 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1572, allocations: 81.03 MB / 0.5845 GB, free: 4.352 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.003013/0.1603, allocations: 1.663 MB / 0.5861 GB, free: 2.672 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009615/0.1613, allocations: 0.5923 MB / 0.5867 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.057e-05/0.1614, allocations: 4 kB / 0.5867 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001561/0.1615, allocations: 15.92 kB / 0.5867 GB, free: 2.055 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.1617, allocations: 39.77 kB / 0.5868 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.1621, allocations: 103.9 kB / 0.5869 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.1623, allocations: 195.6 kB / 0.587 GB, free: 1.723 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1625, allocations: 37.09 kB / 0.5871 GB, free: 1.684 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.1626, allocations: 87.69 kB / 0.5872 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.1628, allocations: 83.72 kB / 0.5872 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.1628, allocations: 16 kB / 0.5873 GB, free: 1.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.58e-05/0.1629, allocations: 24 kB / 0.5873 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/0.163, allocations: 27.92 kB / 0.5873 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.1631, allocations: 75.64 kB / 0.5874 GB, free: 1.375 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.1633, allocations: 163.8 kB / 0.5875 GB, free: 1.215 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1633, allocations: 0 / 0.5875 GB, free: 1.215 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1633, allocations: 0 / 0.5875 GB, free: 1.215 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.1633, allocations: 0 / 0.5875 GB, free: 1.215 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.0007239/0.1641, allocations: 0.564 MB / 0.5881 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1641, allocations: 8.031 kB / 0.5881 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.1642, allocations: 16.84 kB / 0.5881 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.1645, allocations: 236.1 kB / 0.5883 GB, free: 292 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.1645, allocations: 8.375 kB / 0.5883 GB, free: 284 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.1646, allocations: 12.38 kB / 0.5884 GB, free: 272 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.1648, allocations: 117.7 kB / 0.5885 GB, free: 148 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.1649, allocations: 12 kB / 0.5885 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.1649, allocations: 0 / 0.5885 GB, free: 136 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1649, allocations: 7.938 kB / 0.5885 GB, free: 128 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.1651, allocations: 71.88 kB / 0.5886 GB, free: 56 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.1658, allocations: 412.6 kB / 0.589 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000206/0.166, allocations: 94.55 kB / 0.589 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.1662, allocations: 76.81 kB / 0.5891 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.1662, allocations: 4 kB / 0.5891 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003283/0.1665, allocations: 182.8 kB / 0.5893 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.1665, allocations: 0 / 0.5893 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=10): time 0.0007376/0.1673, allocations: 348.8 kB / 0.5896 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.1674, allocations: 166.2 kB / 0.5898 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001778/0.1676, allocations: 179.3 kB / 0.59 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.876e-05/0.1676, allocations: 33.7 kB / 0.59 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.515e-05/0.1677, allocations: 108.4 kB / 0.5901 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.1677, allocations: 27.7 kB / 0.5901 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.073e-05/0.1678, allocations: 37.7 kB / 0.5902 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.168, allocations: 330.8 kB / 0.5905 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.1681, allocations: 47.97 kB / 0.5905 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000173/0.1683, allocations: 110.8 kB / 0.5906 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.1687, allocations: 309 kB / 0.5909 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1687, allocations: 0 / 0.5909 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005443/0.1692, allocations: 344 kB / 0.5912 GB, free: 13.01 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.46e-05/0.1693, allocations: 123 kB / 0.5914 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1694, allocations: 4 kB / 0.5914 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1694, allocations: 4 kB / 0.5914 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.1695, allocations: 19.92 kB / 0.5914 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1695, allocations: 4 kB / 0.5914 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.772e-05/0.1696, allocations: 15.84 kB / 0.5914 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.1696, allocations: 12 kB / 0.5914 GB, free: 12.8 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.0001801/0.1698, allocations: 197.2 kB / 0.5916 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.1699, allocations: 11.91 kB / 0.5916 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.1699, allocations: 21.41 kB / 0.5916 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.1699, allocations: 0 / 0.5916 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.1699, allocations: 0 / 0.5916 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.1699, allocations: 288 / 0.5916 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007848/0.1707, allocations: 0.599 MB / 0.5922 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.1707, allocations: 0 / 0.5922 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.557e-05/0.1708, allocations: 15.92 kB / 0.5922 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.1708, allocations: 4 kB / 0.5922 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/0.1709, allocations: 8 kB / 0.5922 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1709, allocations: 0 / 0.5922 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1709, allocations: 3.938 kB / 0.5923 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005852/0.1715, allocations: 398.7 kB / 0.5926 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.455e-05/0.1715, allocations: 92.86 kB / 0.5927 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.1716, allocations: 8 kB / 0.5927 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.1717, allocations: 16 kB / 0.5927 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.1718, allocations: 11.92 kB / 0.5928 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.1718, allocations: 4 kB / 0.5928 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001125/0.1719, allocations: 137.1 kB / 0.5929 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.1719, allocations: 0 / 0.5929 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003041/0.1722, allocations: 36 kB / 0.5929 GB, free: 11.12 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.0002513/0.1725, allocations: 129.1 kB / 0.593 GB, free: 10.99 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005394/0.173, allocations: 361.4 kB / 0.5934 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.173, allocations: 0 / 0.5934 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.1733, allocations: 203.2 kB / 0.5936 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.1736, allocations: 31.88 kB / 0.5936 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006263/0.1743, allocations: 327.7 kB / 0.5939 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003424/0.1746, allocations: 0.7041 MB / 0.5946 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.332e-05/0.1747, allocations: 20.53 kB / 0.5946 GB, free: 9.242 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.464e-05/0.1747, allocations: 15.42 kB / 0.5947 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1747, allocations: 0 / 0.5947 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of Templates: time 0.005482/0.1802, allocations: 2.049 MB / 0.5967 GB, free: 7.219 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)