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.0012/0.0012, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001171/0.001171, allocations: 193.2 kB / 17.31 MB, free: 5.613 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.277/1.277, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7673/0.7673, allocations: 135.1 MB / 426.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.91 kB / 0.5068 GB, free: 7.637 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.3612, allocations: 80.9 MB / 0.5858 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002791/0.364, allocations: 1.609 MB / 0.5873 GB, free: 24.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008412/0.3649, allocations: 0.6087 MB / 0.5879 GB, free: 23.88 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.592e-05/0.365, allocations: 3.062 kB / 0.5879 GB, free: 23.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.3651, allocations: 21.14 kB / 0.588 GB, free: 23.86 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.3653, allocations: 43.03 kB / 0.588 GB, free: 23.83 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.3657, allocations: 120.8 kB / 0.5881 GB, free: 23.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002384/0.3659, allocations: 194.6 kB / 0.5883 GB, free: 23.64 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001251/0.366, allocations: 20.25 kB / 0.5883 GB, free: 23.63 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.3662, allocations: 92.89 kB / 0.5884 GB, free: 23.58 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.3663, allocations: 84.31 kB / 0.5885 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.3664, allocations: 14.44 kB / 0.5885 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.984e-05/0.3664, allocations: 26.03 kB / 0.5885 GB, free: 23.52 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-05/0.3665, allocations: 27.28 kB / 0.5885 GB, free: 23.5 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.502e-05/0.3666, allocations: 80.72 kB / 0.5886 GB, free: 23.45 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001948/0.3668, allocations: 166.9 kB / 0.5888 GB, free: 23.33 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3668, allocations: 1.25 kB / 0.5888 GB, free: 23.33 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.3668, allocations: 0 / 0.5888 GB, free: 23.33 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.3668, allocations: 0 / 0.5888 GB, free: 23.33 MB / 446.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.0005752/0.3674, allocations: 0.553 MB / 0.5893 GB, free: 22.77 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.3675, allocations: 11.23 kB / 0.5893 GB, free: 22.77 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.958e-05/0.3675, allocations: 24.06 kB / 0.5894 GB, free: 22.76 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002477/0.3678, allocations: 247.6 kB / 0.5896 GB, free: 22.49 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.3678, allocations: 5.875 kB / 0.5896 GB, free: 22.49 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.511e-05/0.3678, allocations: 16.38 kB / 0.5896 GB, free: 22.47 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.3681, allocations: 117.6 kB / 0.5897 GB, free: 22.35 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3681, allocations: 4.594 kB / 0.5897 GB, free: 22.35 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.3681, allocations: 4 kB / 0.5897 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3681, allocations: 5.375 kB / 0.5897 GB, free: 22.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.3683, allocations: 59.95 kB / 0.5898 GB, free: 22.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005078/0.3688, allocations: 418.3 kB / 0.5902 GB, free: 21.82 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.369, allocations: 87.83 kB / 0.5903 GB, free: 21.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.3691, allocations: 78.75 kB / 0.5904 GB, free: 21.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.3691, allocations: 0 / 0.5904 GB, free: 21.65 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.3693, allocations: 183.5 kB / 0.5905 GB, free: 21.45 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 2.565e-06/0.3693, allocations: 0 / 0.5905 GB, free: 21.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005576/0.3699, allocations: 346.2 kB / 0.5909 GB, free: 21.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.357e-05/0.37, allocations: 174.8 kB / 0.591 GB, free: 20.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001105/0.3701, allocations: 185.8 kB / 0.5912 GB, free: 20.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.3701, allocations: 29.7 kB / 0.5912 GB, free: 20.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.3701, allocations: 104.4 kB / 0.5913 GB, free: 20.55 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-05/0.3702, allocations: 27.66 kB / 0.5914 GB, free: 20.52 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.392e-05/0.3702, allocations: 39.14 kB / 0.5914 GB, free: 20.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.789e-05/0.3703, allocations: 330.8 kB / 0.5917 GB, free: 20.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.3704, allocations: 53.05 kB / 0.5918 GB, free: 20.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.3705, allocations: 104.6 kB / 0.5919 GB, free: 19.97 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.3708, allocations: 313.9 kB / 0.5922 GB, free: 19.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3708, allocations: 0 / 0.5922 GB, free: 19.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003851/0.3712, allocations: 343.1 kB / 0.5925 GB, free: 19.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.3712, allocations: 122.8 kB / 0.5926 GB, free: 19.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3712, allocations: 0 / 0.5926 GB, free: 19.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.3712, allocations: 10.08 kB / 0.5926 GB, free: 19.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.95e-05/0.3713, allocations: 15.98 kB / 0.5926 GB, free: 19.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.3714, allocations: 4 kB / 0.5926 GB, free: 19.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.107e-05/0.3715, allocations: 27.77 kB / 0.5927 GB, free: 19.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.3715, allocations: 13.34 kB / 0.5927 GB, free: 19.04 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.0001012/0.3716, allocations: 202 kB / 0.5929 GB, free: 18.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.3716, allocations: 13.28 kB / 0.5929 GB, free: 18.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.112e-05/0.3717, allocations: 17.39 kB / 0.5929 GB, free: 18.79 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3717, allocations: 0 / 0.5929 GB, free: 18.79 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3717, allocations: 2.062 kB / 0.5929 GB, free: 18.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.3717, allocations: 0 / 0.5929 GB, free: 18.79 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005181/0.3722, allocations: 0.5875 MB / 0.5935 GB, free: 18.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3722, allocations: 0 / 0.5935 GB, free: 18.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.758e-05/0.3723, allocations: 8.969 kB / 0.5935 GB, free: 18.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3723, allocations: 0 / 0.5935 GB, free: 18.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.3723, allocations: 13.42 kB / 0.5935 GB, free: 18.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.3723, allocations: 4 kB / 0.5935 GB, free: 18.11 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3723, allocations: 3.938 kB / 0.5935 GB, free: 18.11 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004056/0.3727, allocations: 400.1 kB / 0.5939 GB, free: 17.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.718e-05/0.3728, allocations: 89.8 kB / 0.594 GB, free: 17.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.275e-05/0.3728, allocations: 8 kB / 0.594 GB, free: 17.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001056/0.3729, allocations: 9.047 kB / 0.594 GB, free: 17.57 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.527e-05/0.373, allocations: 7.938 kB / 0.594 GB, free: 17.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.603e-05/0.373, allocations: 17.42 kB / 0.594 GB, free: 17.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.476e-05/0.3731, allocations: 123.2 kB / 0.5941 GB, free: 17.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3731, allocations: 0 / 0.5941 GB, free: 17.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.3733, allocations: 39.92 kB / 0.5942 GB, free: 17.39 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.0001943/0.3735, allocations: 134.9 kB / 0.5943 GB, free: 17.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.3739, allocations: 359.5 kB / 0.5946 GB, free: 16.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3739, allocations: 2.5 kB / 0.5946 GB, free: 16.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001729/0.3741, allocations: 206.9 kB / 0.5948 GB, free: 16.63 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002792/0.3744, allocations: 22.66 kB / 0.5949 GB, free: 16.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/0.3749, allocations: 284.5 kB / 0.5951 GB, free: 16.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.375, allocations: 0.7092 MB / 0.5958 GB, free: 15.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.444e-05/0.3751, allocations: 22.19 kB / 0.5958 GB, free: 15.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.843e-05/0.3751, allocations: 15.44 kB / 0.5959 GB, free: 15.54 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3751, allocations: 0 / 0.5959 GB, free: 15.54 MB / 446.1 MB Notification: Performance of Templates: time 0.004576/0.3797, allocations: 2.076 MB / 0.5979 GB, free: 13.54 MB / 446.1 MB 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 -s cvode -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)