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.0007996/0.0007996, allocations: 86.8 kB / 15.06 MB, free: 1.09 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.0008622/0.0008622, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.153/1.153, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6639/0.6639, allocations: 132.3 MB / 423.4 MB, free: 2.055 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002555/0.0002555, allocations: 11.98 kB / 0.5034 GB, free: 4.223 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3243, allocations: 81.57 MB / 0.5831 GB, free: 3.961 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.IO.Files.Examples.CSVWriter): time 0.001402/0.3257, allocations: 1.296 MB / 0.5843 GB, free: 3.027 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006494/0.3264, allocations: 0.5774 MB / 0.5849 GB, free: 2.629 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.079e-05/0.3264, allocations: 5.656 kB / 0.5849 GB, free: 2.625 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001181/0.3266, allocations: 18.34 kB / 0.5849 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.3267, allocations: 39.59 kB / 0.585 GB, free: 2.59 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003037/0.327, allocations: 97.7 kB / 0.5851 GB, free: 2.539 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.3272, allocations: 142.7 kB / 0.5852 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.546e-05/0.3273, allocations: 18.77 kB / 0.5852 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.3274, allocations: 71.25 kB / 0.5853 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001209/0.3275, allocations: 87.61 kB / 0.5854 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.3276, allocations: 10.03 kB / 0.5854 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.15e-05/0.3276, allocations: 14.34 kB / 0.5854 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 6.277e-05/0.3277, allocations: 26.91 kB / 0.5854 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.175e-05/0.3277, allocations: 49.3 kB / 0.5855 GB, free: 2.359 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.3279, allocations: 113.5 kB / 0.5856 GB, free: 2.332 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3279, allocations: 4.844 kB / 0.5856 GB, free: 2.328 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3279, allocations: 0 / 0.5856 GB, free: 2.328 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.366e-06/0.3279, allocations: 1.375 kB / 0.5856 GB, free: 2.328 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.0004472/0.3284, allocations: 0.5229 MB / 0.5861 GB, free: 1.797 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.3284, allocations: 8.969 kB / 0.5861 GB, free: 1.797 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.3284, allocations: 14.91 kB / 0.5861 GB, free: 1.793 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.3287, allocations: 239.1 kB / 0.5863 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.3287, allocations: 10.94 kB / 0.5864 GB, free: 1.555 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.3287, allocations: 10.28 kB / 0.5864 GB, free: 1.555 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002372/0.329, allocations: 119.4 kB / 0.5865 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.329, allocations: 0 / 0.5865 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.329, allocations: 3.719 kB / 0.5865 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.329, allocations: 1.312 kB / 0.5865 GB, free: 1.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001824/0.3292, allocations: 78.62 kB / 0.5866 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005168/0.3297, allocations: 426.7 kB / 0.587 GB, free: 1.152 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.3299, allocations: 93.7 kB / 0.5871 GB, free: 1.105 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.3301, allocations: 83.7 kB / 0.5871 GB, free: 1.074 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.3301, allocations: 5.625 kB / 0.5871 GB, free: 1.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.3303, allocations: 177.7 kB / 0.5873 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.3303, allocations: 0 / 0.5873 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006282/0.331, allocations: 370.5 kB / 0.5877 GB, free: 0.7695 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.331, allocations: 165.6 kB / 0.5878 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.3312, allocations: 171.8 kB / 0.588 GB, free: 464 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.3312, allocations: 41.67 kB / 0.588 GB, free: 420 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.3312, allocations: 106.9 kB / 0.5881 GB, free: 316 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.431e-05/0.3313, allocations: 30.97 kB / 0.5882 GB, free: 292 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.129e-05/0.3313, allocations: 3.031 kB / 0.5882 GB, free: 292 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.511e-05/0.3313, allocations: 327.3 kB / 0.5885 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.3315, allocations: 50.11 kB / 0.5885 GB, free: 15.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3316, allocations: 111.6 kB / 0.5886 GB, free: 15.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.3318, allocations: 177.4 kB / 0.5888 GB, free: 15.72 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3318, allocations: 0.8438 kB / 0.5888 GB, free: 15.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004954/0.3323, allocations: 355.5 kB / 0.5891 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.635e-05/0.3324, allocations: 119.9 kB / 0.5892 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3324, allocations: 6.281 kB / 0.5893 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.3324, allocations: 2.594 kB / 0.5893 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.3326, allocations: 22.19 kB / 0.5893 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.3326, allocations: 7.953 kB / 0.5893 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.251e-05/0.3327, allocations: 19.39 kB / 0.5893 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.3327, allocations: 13.34 kB / 0.5893 GB, free: 15.35 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.3328, allocations: 189.5 kB / 0.5895 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.3329, allocations: 16.59 kB / 0.5895 GB, free: 15.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.432e-05/0.3329, allocations: 19.95 kB / 0.5895 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.3329, allocations: 5.375 kB / 0.5895 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3329, allocations: 3.953 kB / 0.5895 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3329, allocations: 0.5625 kB / 0.5895 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006674/0.3336, allocations: 0.5918 MB / 0.5901 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3336, allocations: 0 / 0.5901 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.264e-05/0.3337, allocations: 13.09 kB / 0.5901 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3337, allocations: 4.969 kB / 0.5901 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.841e-05/0.3337, allocations: 7.594 kB / 0.5901 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3337, allocations: 7.953 kB / 0.5901 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3337, allocations: 1.125 kB / 0.5901 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.3342, allocations: 406.8 kB / 0.5905 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.456e-05/0.3343, allocations: 94.12 kB / 0.5906 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.296e-05/0.3343, allocations: 4.375 kB / 0.5906 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.3345, allocations: 14.14 kB / 0.5906 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.3345, allocations: 14.61 kB / 0.5907 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3345, allocations: 11.39 kB / 0.5907 GB, free: 14.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.398e-05/0.3346, allocations: 129.9 kB / 0.5908 GB, free: 14.22 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3346, allocations: 0 / 0.5908 GB, free: 14.22 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.3349, allocations: 39.02 kB / 0.5908 GB, free: 14.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001865/0.3351, allocations: 134.9 kB / 0.591 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004489/0.3356, allocations: 367.5 kB / 0.5913 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.3356, allocations: 0 / 0.5913 GB, free: 13.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002148/0.3358, allocations: 215.3 kB / 0.5915 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002677/0.3361, allocations: 18.55 kB / 0.5915 GB, free: 13.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005162/0.3366, allocations: 316 kB / 0.5918 GB, free: 13.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.3368, allocations: 0.7057 MB / 0.5925 GB, free: 12.74 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.023e-05/0.3369, allocations: 28.28 kB / 0.5926 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.001e-05/0.3369, allocations: 14.09 kB / 0.5926 GB, free: 12.72 MB / 446.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3369, allocations: 1.5 kB / 0.5926 GB, free: 12.72 MB / 446.1 MB Notification: Performance of Templates: time 0.004544/0.3415, allocations: 1.923 MB / 0.5944 GB, free: 12.47 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)