Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.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) 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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.845/1.845, allocations: 297.8 MB / 313.8 MB, free: 148 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.001039, allocations: 179.9 kB / 384.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 223.2 MB / 0.6626 GB, free: 4.273 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008384/0.000838, allocations: 95.98 kB / 0.7808 GB, free: 50.47 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004185/0.0004185, allocations: 15.94 kB / 0.9088 GB, free: 2.883 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7444/0.7448, allocations: 120.3 MB / 1.026 GB, free: 55.78 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1817/0.9265, allocations: 143.3 MB / 1.166 GB, free: 0.6641 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.9269, allocations: 87.42 kB / 1.166 GB, free: 0.5938 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.01442/0.9413, allocations: 5.091 MB / 1.171 GB, free: 12.98 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.084e-06/0.9413, allocations: 0 / 1.171 GB, free: 12.98 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.9414, allocations: 0 / 1.171 GB, free: 12.98 MB / 0.7448 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.0006256/0.942, allocations: 0.5449 MB / 1.172 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.942, allocations: 12.03 kB / 1.172 GB, free: 12.38 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.764e-05/0.9421, allocations: 20.75 kB / 1.172 GB, free: 12.36 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.9424, allocations: 217.8 kB / 1.172 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.9424, allocations: 17.72 kB / 1.172 GB, free: 12.11 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.9425, allocations: 8.375 kB / 1.172 GB, free: 12.1 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002962/0.9428, allocations: 119 kB / 1.172 GB, free: 12 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.9428, allocations: 3.938 kB / 1.172 GB, free: 12 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.108e-05/0.9428, allocations: 7.266 kB / 1.172 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.9428, allocations: 0.9375 kB / 1.172 GB, free: 11.99 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.9431, allocations: 78.84 kB / 1.172 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007388/0.9438, allocations: 433.9 kB / 1.173 GB, free: 11.53 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.944, allocations: 87.12 kB / 1.173 GB, free: 11.45 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.9442, allocations: 86.23 kB / 1.173 GB, free: 11.37 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.9442, allocations: 2.344 kB / 1.173 GB, free: 11.37 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.9445, allocations: 189.6 kB / 1.173 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.9445, allocations: 0 / 1.173 GB, free: 11.19 MB / 0.7448 GB Notification: Performance of matching and sorting (n=10): time 0.000731/0.9452, allocations: 359.7 kB / 1.173 GB, free: 10.86 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.707e-05/0.9454, allocations: 164.7 kB / 1.174 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.9455, allocations: 179.2 kB / 1.174 GB, free: 10.49 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.9456, allocations: 34.02 kB / 1.174 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.9457, allocations: 108.3 kB / 1.174 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.9457, allocations: 30.81 kB / 1.174 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.9457, allocations: 8 kB / 1.174 GB, free: 10.31 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001251/0.9459, allocations: 327.8 kB / 1.174 GB, free: 9.988 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001424/0.946, allocations: 56.56 kB / 1.174 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.9462, allocations: 105.4 kB / 1.174 GB, free: 9.832 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.9465, allocations: 321.7 kB / 1.175 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.9466, allocations: 0 / 1.175 GB, free: 9.477 MB / 0.7448 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005523/0.9471, allocations: 355.3 kB / 1.175 GB, free: 9.129 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 8.507e-05/0.9472, allocations: 122.2 kB / 1.175 GB, free: 8.988 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.9472, allocations: 5.188 kB / 1.175 GB, free: 8.984 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.9473, allocations: 4.609 kB / 1.175 GB, free: 8.98 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.9474, allocations: 20.72 kB / 1.175 GB, free: 8.965 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.9474, allocations: 4.594 kB / 1.175 GB, free: 8.961 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.9475, allocations: 21.2 kB / 1.175 GB, free: 8.941 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.9475, allocations: 8.797 kB / 1.175 GB, free: 8.934 MB / 0.7448 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.0001681/0.9477, allocations: 197.1 kB / 1.175 GB, free: 8.727 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.178e-05/0.9478, allocations: 19.81 kB / 1.175 GB, free: 8.707 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.335e-05/0.9478, allocations: 19.47 kB / 1.175 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.9478, allocations: 0 / 1.175 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.9478, allocations: 0 / 1.175 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.9478, allocations: 0.7031 kB / 1.175 GB, free: 8.695 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008278/0.9487, allocations: 0.597 MB / 1.176 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.9487, allocations: 0 / 1.176 GB, free: 8.094 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.75e-05/0.9488, allocations: 15.23 kB / 1.176 GB, free: 8.082 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.9488, allocations: 3.938 kB / 1.176 GB, free: 8.078 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.9488, allocations: 7.578 kB / 1.176 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.9488, allocations: 0 / 1.176 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9488, allocations: 0.6562 kB / 1.176 GB, free: 8.074 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005853/0.9494, allocations: 424.1 kB / 1.176 GB, free: 7.664 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.462e-05/0.9495, allocations: 90.56 kB / 1.177 GB, free: 7.559 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.513e-05/0.9495, allocations: 8.609 kB / 1.177 GB, free: 7.551 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.9496, allocations: 9.781 kB / 1.177 GB, free: 7.543 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.9497, allocations: 10.61 kB / 1.177 GB, free: 7.535 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.9497, allocations: 17.77 kB / 1.177 GB, free: 7.52 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001142/0.9498, allocations: 124.9 kB / 1.177 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of sort global known variables: time 2e-07/0.9498, allocations: 0 / 1.177 GB, free: 7.406 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002953/0.9501, allocations: 44.5 kB / 1.177 GB, free: 7.363 MB / 0.7448 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.0002804/0.9504, allocations: 132.5 kB / 1.177 GB, free: 7.238 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005005/0.9509, allocations: 365.2 kB / 1.177 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9509, allocations: 0 / 1.177 GB, free: 6.848 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002407/0.9512, allocations: 220.3 kB / 1.177 GB, free: 6.609 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.9515, allocations: 17.44 kB / 1.177 GB, free: 6.594 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005987/0.9521, allocations: 310.5 kB / 1.178 GB, free: 6.262 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.9524, allocations: 0.7043 MB / 1.178 GB, free: 5.531 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.818e-05/0.9525, allocations: 23.02 kB / 1.178 GB, free: 5.512 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.098e-05/0.9526, allocations: 15.38 kB / 1.178 GB, free: 5.496 MB / 0.7448 GB Notification: Performance of SimCode: time 2.3e-07/0.9526, allocations: 0 / 1.178 GB, free: 5.496 MB / 0.7448 GB Notification: Performance of Templates: time 0.005034/0.9576, allocations: 1.927 MB / 1.18 GB, free: 3.684 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)