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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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.001041/0.001041, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7254/0.7254, allocations: 132.2 MB / 422.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.7 kB / 0.5018 GB, free: 3.824 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3598/0.3611, allocations: 80.21 MB / 0.5801 GB, free: 4.535 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002692/0.3638, allocations: 1.601 MB / 0.5817 GB, free: 3.422 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007939/0.3646, allocations: 0.6183 MB / 0.5823 GB, free: 2.992 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.989e-05/0.3647, allocations: 5 kB / 0.5823 GB, free: 2.988 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.3649, allocations: 17.02 kB / 0.5823 GB, free: 2.977 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.365, allocations: 43.91 kB / 0.5823 GB, free: 2.949 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003411/0.3654, allocations: 118.5 kB / 0.5824 GB, free: 2.883 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.3656, allocations: 189 kB / 0.5826 GB, free: 2.805 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.3657, allocations: 28.22 kB / 0.5826 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.3658, allocations: 86.05 kB / 0.5827 GB, free: 2.758 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001187/0.366, allocations: 83.95 kB / 0.5828 GB, free: 2.723 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.758e-05/0.366, allocations: 17.78 kB / 0.5828 GB, free: 2.719 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.123e-05/0.3661, allocations: 26.97 kB / 0.5829 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.771e-05/0.3662, allocations: 31.44 kB / 0.5829 GB, free: 2.699 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 8.178e-05/0.3662, allocations: 69.94 kB / 0.583 GB, free: 2.664 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.3665, allocations: 169.2 kB / 0.5831 GB, free: 2.594 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3665, allocations: 0.6562 kB / 0.5831 GB, free: 2.594 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3665, allocations: 0.875 kB / 0.5831 GB, free: 2.594 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.3665, allocations: 0 / 0.5831 GB, free: 2.594 MB / 430.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.0005781/0.3671, allocations: 0.5535 MB / 0.5837 GB, free: 2.051 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.3671, allocations: 10.03 kB / 0.5837 GB, free: 2.051 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.818e-05/0.3672, allocations: 20.5 kB / 0.5837 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.3674, allocations: 241.7 kB / 0.5839 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.3674, allocations: 7.219 kB / 0.5839 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.3675, allocations: 11.19 kB / 0.5839 GB, free: 1.805 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.3677, allocations: 115.5 kB / 0.584 GB, free: 1.75 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.3677, allocations: 1.188 kB / 0.584 GB, free: 1.75 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.3678, allocations: 6.344 kB / 0.584 GB, free: 1.746 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3678, allocations: 5.266 kB / 0.5841 GB, free: 1.742 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.368, allocations: 72.34 kB / 0.5841 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.3685, allocations: 419.5 kB / 0.5845 GB, free: 1.395 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.3687, allocations: 90.17 kB / 0.5846 GB, free: 1.348 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.3689, allocations: 75.88 kB / 0.5847 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.3689, allocations: 1.125 kB / 0.5847 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002725/0.3692, allocations: 175.3 kB / 0.5848 GB, free: 1.191 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.3692, allocations: 0 / 0.5848 GB, free: 1.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007696/0.37, allocations: 358.9 kB / 0.5852 GB, free: 1.02 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.37, allocations: 166.3 kB / 0.5854 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001529/0.3702, allocations: 174.4 kB / 0.5855 GB, free: 0.707 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.076e-05/0.3702, allocations: 37.34 kB / 0.5856 GB, free: 0.668 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.929e-05/0.3703, allocations: 107.3 kB / 0.5857 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.775e-05/0.3703, allocations: 25.59 kB / 0.5857 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.3704, allocations: 39.69 kB / 0.5857 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.257e-05/0.3705, allocations: 326.6 kB / 0.586 GB, free: 208 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.3706, allocations: 59.42 kB / 0.5861 GB, free: 188 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.3708, allocations: 104.8 kB / 0.5862 GB, free: 104 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.3712, allocations: 313.5 kB / 0.5865 GB, free: 15.81 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3712, allocations: 1.031 kB / 0.5865 GB, free: 15.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005722/0.3718, allocations: 343.8 kB / 0.5868 GB, free: 15.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.184e-05/0.3719, allocations: 119.2 kB / 0.5869 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.3719, allocations: 3 kB / 0.5869 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.3719, allocations: 2.906 kB / 0.5869 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.372, allocations: 20.55 kB / 0.587 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.3721, allocations: 7.859 kB / 0.587 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.995e-05/0.3722, allocations: 17.52 kB / 0.587 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.3722, allocations: 16.45 kB / 0.587 GB, free: 15.44 MB / 446.1 MB 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.0001597/0.3724, allocations: 196.8 kB / 0.5872 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.3724, allocations: 14.23 kB / 0.5872 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.784e-05/0.3725, allocations: 18.52 kB / 0.5872 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.3725, allocations: 2.047 kB / 0.5872 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3725, allocations: 0 / 0.5872 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3725, allocations: 5.75 kB / 0.5872 GB, free: 15.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/0.3732, allocations: 0.5841 MB / 0.5878 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.3732, allocations: 0.6094 kB / 0.5878 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.308e-05/0.3733, allocations: 11.33 kB / 0.5878 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.3733, allocations: 288 / 0.5878 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.3733, allocations: 11.06 kB / 0.5878 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3733, allocations: 1.641 kB / 0.5878 GB, free: 14.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3733, allocations: 7.875 kB / 0.5878 GB, free: 14.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005259/0.3739, allocations: 404.3 kB / 0.5882 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.766e-05/0.3739, allocations: 85.25 kB / 0.5883 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.671e-05/0.3739, allocations: 8.156 kB / 0.5883 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.3741, allocations: 12.47 kB / 0.5883 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-05/0.3741, allocations: 8.859 kB / 0.5883 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.3741, allocations: 12.27 kB / 0.5883 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001043/0.3743, allocations: 137.1 kB / 0.5885 GB, free: 14.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3743, allocations: 0 / 0.5885 GB, free: 14.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002898/0.3746, allocations: 40.17 kB / 0.5885 GB, free: 14.3 MB / 446.1 MB 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.0002397/0.3748, allocations: 116.3 kB / 0.5886 GB, free: 14.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000509/0.3753, allocations: 376.2 kB / 0.589 GB, free: 13.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3753, allocations: 0 / 0.589 GB, free: 13.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002425/0.3756, allocations: 204.3 kB / 0.5892 GB, free: 13.74 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002853/0.3759, allocations: 24.06 kB / 0.5892 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005361/0.3764, allocations: 288.3 kB / 0.5895 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.3767, allocations: 0.7101 MB / 0.5902 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.431e-05/0.3767, allocations: 19.62 kB / 0.5902 GB, free: 12.84 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.3768, allocations: 15.41 kB / 0.5902 GB, free: 12.84 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3768, allocations: 0 / 0.5902 GB, free: 12.84 MB / 446.1 MB Notification: Performance of Templates: time 0.005563/0.3824, allocations: 2.07 MB / 0.5922 GB, free: 12.57 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.makefile (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)