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.001076/0.001076, allocations: 107.4 kB / 16.36 MB, free: 5.824 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.001059/0.001059, allocations: 189.4 kB / 17.29 MB, free: 5.48 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.388/1.388, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8101/0.8101, allocations: 132.2 MB / 423.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 63.91 kB / 0.5032 GB, free: 10.9 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3739, allocations: 80.18 MB / 0.5815 GB, free: 27.63 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.002613/0.3766, allocations: 1.604 MB / 0.5831 GB, free: 26.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007979/0.3774, allocations: 0.6162 MB / 0.5837 GB, free: 25.91 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.453e-05/0.3775, allocations: 2.906 kB / 0.5837 GB, free: 25.91 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001333/0.3776, allocations: 21.02 kB / 0.5837 GB, free: 25.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001784/0.3778, allocations: 39.8 kB / 0.5837 GB, free: 25.86 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.3781, allocations: 123.9 kB / 0.5838 GB, free: 25.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001849/0.3783, allocations: 195.2 kB / 0.584 GB, free: 25.66 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001058/0.3784, allocations: 24.02 kB / 0.584 GB, free: 25.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.3786, allocations: 89.73 kB / 0.5841 GB, free: 25.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001131/0.3787, allocations: 84.12 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.3787, allocations: 14.59 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.926e-05/0.3788, allocations: 25.91 kB / 0.5842 GB, free: 25.55 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.029e-05/0.3789, allocations: 26.27 kB / 0.5843 GB, free: 25.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.674e-05/0.379, allocations: 80.23 kB / 0.5843 GB, free: 25.48 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.3792, allocations: 161.3 kB / 0.5845 GB, free: 25.37 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.3792, allocations: 3.938 kB / 0.5845 GB, free: 25.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3792, allocations: 0 / 0.5845 GB, free: 25.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.37e-06/0.3792, allocations: 3.938 kB / 0.5845 GB, free: 25.36 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.000525/0.3797, allocations: 0.5659 MB / 0.5851 GB, free: 24.79 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.3798, allocations: 9.875 kB / 0.5851 GB, free: 24.79 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.3798, allocations: 19.88 kB / 0.5851 GB, free: 24.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.3801, allocations: 228.3 kB / 0.5853 GB, free: 24.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.3801, allocations: 8.375 kB / 0.5853 GB, free: 24.54 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.28e-05/0.3802, allocations: 15.97 kB / 0.5853 GB, free: 24.54 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.3804, allocations: 120.3 kB / 0.5854 GB, free: 24.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.3804, allocations: 0 / 0.5854 GB, free: 24.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.514e-05/0.3804, allocations: 8.125 kB / 0.5855 GB, free: 24.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3804, allocations: 1.375 kB / 0.5855 GB, free: 24.45 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.3806, allocations: 70.66 kB / 0.5855 GB, free: 24.42 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.3812, allocations: 417.6 kB / 0.5859 GB, free: 24.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000207/0.3814, allocations: 84.78 kB / 0.586 GB, free: 23.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.3816, allocations: 76.97 kB / 0.5861 GB, free: 23.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.3816, allocations: 1.094 kB / 0.5861 GB, free: 23.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.3819, allocations: 187.7 kB / 0.5863 GB, free: 23.78 MB / 446.1 MB Notification: Performance of pre-optimization done (n=10): time 2.584e-06/0.3819, allocations: 0 / 0.5863 GB, free: 23.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007053/0.3826, allocations: 348.5 kB / 0.5866 GB, free: 23.58 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.3827, allocations: 167.4 kB / 0.5867 GB, free: 23.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001733/0.3829, allocations: 180 kB / 0.5869 GB, free: 23.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.3829, allocations: 28.55 kB / 0.5869 GB, free: 23.21 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.383, allocations: 108.8 kB / 0.5871 GB, free: 23.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.383, allocations: 28.95 kB / 0.5871 GB, free: 23.08 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.098e-05/0.3831, allocations: 44.72 kB / 0.5871 GB, free: 23.05 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.613e-05/0.3831, allocations: 329.9 kB / 0.5874 GB, free: 22.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.3833, allocations: 50.78 kB / 0.5875 GB, free: 22.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.3835, allocations: 101.4 kB / 0.5876 GB, free: 22.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003017/0.3838, allocations: 319.9 kB / 0.5879 GB, free: 22.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3838, allocations: 0 / 0.5879 GB, free: 22.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000493/0.3843, allocations: 348.3 kB / 0.5882 GB, free: 22.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.378e-05/0.3843, allocations: 121.2 kB / 0.5883 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.3844, allocations: 1.469 kB / 0.5883 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3844, allocations: 3.938 kB / 0.5883 GB, free: 21.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.3845, allocations: 16.86 kB / 0.5884 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.3845, allocations: 2.656 kB / 0.5884 GB, free: 21.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.682e-05/0.3846, allocations: 22.16 kB / 0.5884 GB, free: 21.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.3846, allocations: 11.73 kB / 0.5884 GB, free: 21.91 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.000122/0.3848, allocations: 202.2 kB / 0.5886 GB, free: 21.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.3848, allocations: 18.09 kB / 0.5886 GB, free: 21.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.303e-05/0.3848, allocations: 15.5 kB / 0.5886 GB, free: 21.69 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3848, allocations: 5.391 kB / 0.5886 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.3848, allocations: 0 / 0.5886 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3849, allocations: 4 kB / 0.5886 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/0.3855, allocations: 0.5804 MB / 0.5892 GB, free: 21.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.3855, allocations: 1.844 kB / 0.5892 GB, free: 21.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.391e-05/0.3856, allocations: 10.77 kB / 0.5892 GB, free: 21.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3856, allocations: 0.9375 kB / 0.5892 GB, free: 21.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.3856, allocations: 13.3 kB / 0.5892 GB, free: 21.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3856, allocations: 1.344 kB / 0.5892 GB, free: 21.17 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3856, allocations: 9.562 kB / 0.5892 GB, free: 21.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004833/0.3861, allocations: 405.2 kB / 0.5896 GB, free: 20.88 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.125e-05/0.3861, allocations: 84.52 kB / 0.5897 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.3862, allocations: 3.969 kB / 0.5897 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.3863, allocations: 5.875 kB / 0.5897 GB, free: 20.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.3863, allocations: 16.05 kB / 0.5897 GB, free: 20.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.3864, allocations: 11.48 kB / 0.5897 GB, free: 20.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.74e-05/0.3865, allocations: 132.4 kB / 0.5899 GB, free: 20.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3865, allocations: 3.938 kB / 0.5899 GB, free: 20.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000284/0.3868, allocations: 38.47 kB / 0.5899 GB, free: 20.65 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.0002117/0.387, allocations: 124 kB / 0.59 GB, free: 20.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004264/0.3874, allocations: 364.8 kB / 0.5904 GB, free: 20.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3874, allocations: 1.25 kB / 0.5904 GB, free: 20.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001931/0.3876, allocations: 209.4 kB / 0.5906 GB, free: 20.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.3879, allocations: 24.64 kB / 0.5906 GB, free: 20.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005179/0.3885, allocations: 279.2 kB / 0.5909 GB, free: 19.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.3886, allocations: 0.7077 MB / 0.5915 GB, free: 19.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 5.691e-05/0.3887, allocations: 22.27 kB / 0.5916 GB, free: 19.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.174e-05/0.3887, allocations: 17.36 kB / 0.5916 GB, free: 19.11 MB / 446.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3887, allocations: 0 / 0.5916 GB, free: 19.11 MB / 446.1 MB Notification: Performance of Templates: time 0.004334/0.393, allocations: 2.068 MB / 0.5936 GB, free: 17.17 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 -s gbode -lv LOG_STATS > IDEAS_IDEAS.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)