Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7947/0.7947, allocations: 143.4 MB / 158.3 MB, free: 5.797 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 179.8 kB / 191.5 MB, free: 5.754 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 223.2 MB / 447.7 MB, free: 6.508 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000932/0.0009319, allocations: 84.33 kB / 0.5188 GB, free: 2.863 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001888/0.001888, allocations: 268.3 kB / 0.6005 GB, free: 48.95 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004611/0.0004609, allocations: 12 kB / 0.6929 GB, free: 2.266 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4587/0.4592, allocations: 82.77 MB / 0.7737 GB, free: 26.2 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1695/0.6288, allocations: 110.7 MB / 0.8819 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.6291, allocations: 91.81 kB / 0.8819 GB, free: 11.22 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01378/0.6429, allocations: 5.09 MB / 0.8869 GB, free: 6.105 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.877e-06/0.6429, allocations: 4 kB / 0.8869 GB, free: 6.102 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.643, allocations: 0 / 0.8869 GB, free: 6.102 MB / 0.5417 GB 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.0006505/0.6436, allocations: 0.5367 MB / 0.8874 GB, free: 5.492 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.6437, allocations: 11.97 kB / 0.8875 GB, free: 5.48 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.823e-05/0.6437, allocations: 19.81 kB / 0.8875 GB, free: 5.461 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003013/0.644, allocations: 228.4 kB / 0.8877 GB, free: 5.199 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.6441, allocations: 4 kB / 0.8877 GB, free: 5.195 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.443e-05/0.6441, allocations: 19.94 kB / 0.8877 GB, free: 5.176 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.6444, allocations: 121.5 kB / 0.8878 GB, free: 5.051 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.6444, allocations: 0 / 0.8878 GB, free: 5.051 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.6444, allocations: 4 kB / 0.8878 GB, free: 5.047 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.6445, allocations: 3.984 kB / 0.8878 GB, free: 5.043 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.6447, allocations: 83.94 kB / 0.8879 GB, free: 4.961 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006823/0.6454, allocations: 428.5 kB / 0.8883 GB, free: 4.492 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001819/0.6456, allocations: 86.53 kB / 0.8884 GB, free: 4.398 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.6456, allocations: 0 / 0.8884 GB, free: 4.398 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002657/0.6459, allocations: 198.9 kB / 0.8886 GB, free: 4.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.6459, allocations: 0 / 0.8886 GB, free: 4.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0008102/0.6467, allocations: 0.5063 MB / 0.8891 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.6468, allocations: 166.2 kB / 0.8893 GB, free: 3.422 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.647, allocations: 158.3 kB / 0.8894 GB, free: 3.258 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.647, allocations: 33.7 kB / 0.8894 GB, free: 3.219 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.199e-05/0.6471, allocations: 104.4 kB / 0.8895 GB, free: 3.109 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.6471, allocations: 27.69 kB / 0.8896 GB, free: 3.082 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.427e-05/0.6471, allocations: 8 kB / 0.8896 GB, free: 3.074 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.6473, allocations: 326.8 kB / 0.8899 GB, free: 2.746 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001351/0.6474, allocations: 60.23 kB / 0.8899 GB, free: 2.688 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.6476, allocations: 109.2 kB / 0.89 GB, free: 2.559 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.6478, allocations: 178.7 kB / 0.8902 GB, free: 2.359 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.6478, allocations: 7.938 kB / 0.8902 GB, free: 2.352 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005226/0.6483, allocations: 356.1 kB / 0.8906 GB, free: 1.973 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.239e-05/0.6484, allocations: 114.8 kB / 0.8907 GB, free: 1.836 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.6484, allocations: 7.984 kB / 0.8907 GB, free: 1.828 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.6485, allocations: 0 / 0.8907 GB, free: 1.828 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001185/0.6486, allocations: 24.17 kB / 0.8907 GB, free: 1.805 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.6486, allocations: 8 kB / 0.8907 GB, free: 1.797 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001046/0.6487, allocations: 15.94 kB / 0.8907 GB, free: 1.781 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.6487, allocations: 8 kB / 0.8907 GB, free: 1.773 MB / 0.5417 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 ($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.0001672/0.6489, allocations: 201.1 kB / 0.8909 GB, free: 1.555 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.6489, allocations: 19.75 kB / 0.8909 GB, free: 1.535 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.264e-05/0.649, allocations: 17.41 kB / 0.891 GB, free: 1.516 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.649, allocations: 0 / 0.891 GB, free: 1.516 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.649, allocations: 8 kB / 0.891 GB, free: 1.508 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.649, allocations: 4 kB / 0.891 GB, free: 1.504 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007261/0.6497, allocations: 0.5876 MB / 0.8915 GB, free: 0.8477 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.6498, allocations: 0 / 0.8915 GB, free: 0.8477 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-05/0.6498, allocations: 12 kB / 0.8916 GB, free: 0.8359 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.6498, allocations: 4 kB / 0.8916 GB, free: 0.832 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.6499, allocations: 7.984 kB / 0.8916 GB, free: 0.8242 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.6499, allocations: 0 / 0.8916 GB, free: 0.8242 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.6499, allocations: 0 / 0.8916 GB, free: 0.8242 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005523/0.6504, allocations: 418.5 kB / 0.892 GB, free: 396 kB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.779e-05/0.6505, allocations: 92.92 kB / 0.8921 GB, free: 284 kB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.6506, allocations: 4 kB / 0.8921 GB, free: 280 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001185/0.6507, allocations: 11.98 kB / 0.8921 GB, free: 268 kB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.062e-05/0.6507, allocations: 4 kB / 0.8921 GB, free: 264 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-05/0.6508, allocations: 15.98 kB / 0.8921 GB, free: 248 kB / 0.5417 GB Notification: Performance of sorting global known variables: time 9.151e-05/0.6509, allocations: 120.3 kB / 0.8922 GB, free: 128 kB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6509, allocations: 0 / 0.8922 GB, free: 128 kB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003044/0.6512, allocations: 43.88 kB / 0.8922 GB, free: 84 kB / 0.5417 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 (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.0002818/0.6515, allocations: 140.5 kB / 0.8924 GB, free: 15.94 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0004872/0.652, allocations: 373.4 kB / 0.8927 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.652, allocations: 0 / 0.8927 GB, free: 15.53 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002316/0.6522, allocations: 198.8 kB / 0.8929 GB, free: 15.31 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.6525, allocations: 27.03 kB / 0.893 GB, free: 15.28 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000578/0.653, allocations: 309.9 kB / 0.8932 GB, free: 14.95 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.6533, allocations: 0.7199 MB / 0.8939 GB, free: 14.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 6.274e-05/0.6534, allocations: 16.55 kB / 0.894 GB, free: 14.19 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.916e-05/0.6535, allocations: 19.42 kB / 0.894 GB, free: 14.17 MB / 0.5573 GB Notification: Performance of SimCode: time 3.41e-07/0.6535, allocations: 0 / 0.894 GB, free: 14.17 MB / 0.5573 GB Notification: Performance of Templates: time 0.005095/0.6586, allocations: 1.904 MB / 0.8958 GB, free: 12.29 MB / 0.5573 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)