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.8574/0.8574, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 183 kB / 187.3 MB, free: 11.89 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.317/1.317, allocations: 221.3 MB / 441.4 MB, free: 4.621 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.0008573/0.0008573, allocations: 89.91 kB / 0.5124 GB, free: 24.16 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002534/0.002534, allocations: 281.4 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 3.31e-05/3.322e-05, allocations: 7.984 kB / 0.6834 GB, free: 12.25 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4026, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1208/0.5235, allocations: 110.7 MB / 0.8724 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.5238, allocations: 88.27 kB / 0.8724 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01392/0.5377, allocations: 5.06 MB / 0.8774 GB, free: 8.73 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5378, allocations: 0 / 0.8774 GB, free: 8.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.044e-05/0.5378, allocations: 4 kB / 0.8774 GB, free: 8.727 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.0006892/0.5385, allocations: 0.5139 MB / 0.8779 GB, free: 8.145 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.5386, allocations: 8.031 kB / 0.8779 GB, free: 8.137 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.132e-05/0.5387, allocations: 19.84 kB / 0.8779 GB, free: 8.117 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.539, allocations: 239.2 kB / 0.8781 GB, free: 7.844 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.5391, allocations: 4 kB / 0.8781 GB, free: 7.84 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.251e-05/0.5391, allocations: 16 kB / 0.8782 GB, free: 7.824 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.5394, allocations: 105.6 kB / 0.8783 GB, free: 7.715 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.5394, allocations: 3.938 kB / 0.8783 GB, free: 7.711 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.5394, allocations: 4 kB / 0.8783 GB, free: 7.707 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.06e-06/0.5394, allocations: 0 / 0.8783 GB, free: 7.707 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.5396, allocations: 51.98 kB / 0.8783 GB, free: 7.656 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000724/0.5403, allocations: 424.6 kB / 0.8787 GB, free: 7.191 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.5405, allocations: 70.56 kB / 0.8788 GB, free: 7.113 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.5406, allocations: 64.84 kB / 0.8789 GB, free: 7.047 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.5406, allocations: 11.92 kB / 0.8789 GB, free: 7.035 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.5409, allocations: 166.9 kB / 0.879 GB, free: 6.848 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.5409, allocations: 4 kB / 0.879 GB, free: 6.844 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0005224/0.5414, allocations: 276.9 kB / 0.8793 GB, free: 6.555 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/0.5415, allocations: 162.2 kB / 0.8794 GB, free: 6.359 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.5417, allocations: 153.8 kB / 0.8796 GB, free: 6.199 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.339e-05/0.5417, allocations: 33.7 kB / 0.8796 GB, free: 6.16 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.99e-05/0.5418, allocations: 120.2 kB / 0.8797 GB, free: 6.035 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.309e-05/0.5418, allocations: 27.69 kB / 0.8798 GB, free: 6.008 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.5419, allocations: 4 kB / 0.8798 GB, free: 6.004 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.542, allocations: 330.8 kB / 0.8801 GB, free: 5.672 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.091e-05/0.5421, allocations: 39.98 kB / 0.8801 GB, free: 5.633 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001244/0.5422, allocations: 94.8 kB / 0.8802 GB, free: 5.516 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.5424, allocations: 166.8 kB / 0.8804 GB, free: 5.328 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.5424, allocations: 0 / 0.8804 GB, free: 5.328 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004496/0.5429, allocations: 332.1 kB / 0.8807 GB, free: 4.973 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 9.068e-05/0.543, allocations: 120.2 kB / 0.8808 GB, free: 4.832 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.543, allocations: 4 kB / 0.8808 GB, free: 4.828 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.543, allocations: 4 kB / 0.8808 GB, free: 4.824 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.5431, allocations: 19.98 kB / 0.8808 GB, free: 4.805 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.5432, allocations: 7.938 kB / 0.8808 GB, free: 4.797 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.5433, allocations: 16.19 kB / 0.8809 GB, free: 4.781 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.5433, allocations: 11.98 kB / 0.8809 GB, free: 4.77 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 () * 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.0001406/0.5435, allocations: 184.9 kB / 0.881 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.263e-05/0.5435, allocations: 19.8 kB / 0.8811 GB, free: 4.551 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.586e-05/0.5436, allocations: 17.52 kB / 0.8811 GB, free: 4.535 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.5436, allocations: 0 / 0.8811 GB, free: 4.535 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.5436, allocations: 0 / 0.8811 GB, free: 4.535 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.5436, allocations: 4 kB / 0.8811 GB, free: 4.531 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006423/0.5442, allocations: 0.5713 MB / 0.8816 GB, free: 3.895 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.5443, allocations: 0 / 0.8816 GB, free: 3.895 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.391e-05/0.5443, allocations: 15.98 kB / 0.8817 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.5443, allocations: 0 / 0.8817 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.966e-05/0.5444, allocations: 4 kB / 0.8817 GB, free: 3.875 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.5444, allocations: 3.938 kB / 0.8817 GB, free: 3.871 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.5444, allocations: 4 kB / 0.8817 GB, free: 3.867 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004568/0.5449, allocations: 390.6 kB / 0.882 GB, free: 3.457 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.991e-05/0.5449, allocations: 85.02 kB / 0.8821 GB, free: 3.355 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.679e-05/0.545, allocations: 8 kB / 0.8821 GB, free: 3.348 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.5451, allocations: 11.98 kB / 0.8821 GB, free: 3.336 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.5451, allocations: 4 kB / 0.8821 GB, free: 3.332 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.5452, allocations: 11.98 kB / 0.8822 GB, free: 3.32 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001062/0.5453, allocations: 124.3 kB / 0.8823 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5453, allocations: 0 / 0.8823 GB, free: 3.199 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003011/0.5456, allocations: 39.91 kB / 0.8823 GB, free: 3.16 MB / 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) * 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.0002843/0.5459, allocations: 127.1 kB / 0.8824 GB, free: 3.027 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0004089/0.5463, allocations: 346 kB / 0.8828 GB, free: 2.641 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5463, allocations: 0 / 0.8828 GB, free: 2.641 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.5465, allocations: 190.7 kB / 0.8829 GB, free: 2.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.5468, allocations: 21.84 kB / 0.883 GB, free: 2.406 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005018/0.5473, allocations: 205.6 kB / 0.8832 GB, free: 2.184 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.5476, allocations: 0.7082 MB / 0.8839 GB, free: 1.449 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.412e-05/0.5477, allocations: 28.53 kB / 0.8839 GB, free: 1.422 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.53e-05/0.5478, allocations: 11.44 kB / 0.8839 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of SimCode: time 3.4e-07/0.5478, allocations: 0 / 0.8839 GB, free: 1.41 MB / 0.5417 GB Notification: Performance of Templates: time 0.005324/0.5531, allocations: 1.913 MB / 0.8858 GB, free: 15.53 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)