Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.546/1.546, allocations: 289.8 MB / 297.1 MB, free: 6.727 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 177.3 kB / 366.3 MB, free: 2.031 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.482/1.482, allocations: 205.2 MB / 0.6256 GB, free: 7.492 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009051/0.0009054, allocations: 81.12 kB / 0.7395 GB, free: 39.93 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.815e-06/7.895e-06, allocations: 4 kB / 0.859 GB, free: 13.64 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5056/0.5056, allocations: 116.3 MB / 0.9726 GB, free: 76 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1508/0.6565, allocations: 140.3 MB / 1.11 GB, free: 10.29 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000213/0.6568, allocations: 85.16 kB / 1.11 GB, free: 10.21 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.01332/0.6701, allocations: 4.61 MB / 1.114 GB, free: 5.625 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.496e-05/0.6702, allocations: 4.531 kB / 1.114 GB, free: 5.621 MB / 0.7136 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.0005687/0.6708, allocations: 0.5113 MB / 1.115 GB, free: 5.043 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.6708, allocations: 8.562 kB / 1.115 GB, free: 5.035 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.644e-05/0.6709, allocations: 23.8 kB / 1.115 GB, free: 5.012 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.6712, allocations: 223.5 kB / 1.115 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.492e-05/0.6712, allocations: 12.53 kB / 1.115 GB, free: 4.742 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.6713, allocations: 8 kB / 1.115 GB, free: 4.734 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001473/0.6714, allocations: 52.52 kB / 1.115 GB, free: 4.684 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.6716, allocations: 102.3 kB / 1.115 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.6716, allocations: 0 / 1.115 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.6716, allocations: 0.625 kB / 1.115 GB, free: 4.578 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.6716, allocations: 4.625 kB / 1.115 GB, free: 4.574 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006124/0.6723, allocations: 403 kB / 1.115 GB, free: 4.148 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.6724, allocations: 75.33 kB / 1.116 GB, free: 4.066 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.861e-05/0.6725, allocations: 65.5 kB / 1.116 GB, free: 4 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.299e-05/0.6725, allocations: 0.5625 kB / 1.116 GB, free: 4 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.6727, allocations: 172.7 kB / 1.116 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 2.826e-06/0.6727, allocations: 96 / 1.116 GB, free: 3.809 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0003277/0.6731, allocations: 157.4 kB / 1.116 GB, free: 3.648 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.027e-05/0.6732, allocations: 162.2 kB / 1.116 GB, free: 3.453 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001387/0.6733, allocations: 150.4 kB / 1.116 GB, free: 3.293 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.6733, allocations: 29.7 kB / 1.116 GB, free: 3.258 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.657e-05/0.6734, allocations: 97.95 kB / 1.116 GB, free: 3.156 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.004e-05/0.6734, allocations: 23.64 kB / 1.116 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.295e-05/0.6735, allocations: 4 kB / 1.116 GB, free: 3.129 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.6736, allocations: 334.7 kB / 1.117 GB, free: 2.793 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.027e-05/0.6737, allocations: 35.98 kB / 1.117 GB, free: 2.758 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.6738, allocations: 94.8 kB / 1.117 GB, free: 2.641 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.141e-05/0.6739, allocations: 47.97 kB / 1.117 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.6739, allocations: 4 kB / 1.117 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000274/0.6742, allocations: 157.3 kB / 1.117 GB, free: 2.43 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.6742, allocations: 4 kB / 1.117 GB, free: 2.426 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.6742, allocations: 8.25 kB / 1.117 GB, free: 2.418 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.6742, allocations: 4 kB / 1.117 GB, free: 2.414 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.6744, allocations: 19.92 kB / 1.117 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.6744, allocations: 4 kB / 1.117 GB, free: 2.391 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.6745, allocations: 11.98 kB / 1.117 GB, free: 2.379 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.6745, allocations: 12 kB / 1.117 GB, free: 2.367 MB / 0.7136 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.0001333/0.6746, allocations: 190.8 kB / 1.117 GB, free: 2.164 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.027e-05/0.6747, allocations: 24.78 kB / 1.117 GB, free: 2.141 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.6747, allocations: 13.41 kB / 1.117 GB, free: 2.125 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.6747, allocations: 0 / 1.117 GB, free: 2.125 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.6748, allocations: 3.984 kB / 1.117 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.6748, allocations: 0 / 1.117 GB, free: 2.121 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004649/0.6752, allocations: 434.8 kB / 1.118 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.6752, allocations: 1.031 kB / 1.118 GB, free: 1.652 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.306e-05/0.6754, allocations: 12 kB / 1.118 GB, free: 1.641 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.6754, allocations: 4 kB / 1.118 GB, free: 1.637 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.215e-05/0.6754, allocations: 7.984 kB / 1.118 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.6754, allocations: 1.25 kB / 1.118 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.6754, allocations: 0 / 1.118 GB, free: 1.629 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002961/0.6757, allocations: 266.9 kB / 1.118 GB, free: 1.355 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 4.542e-05/0.6758, allocations: 96.92 kB / 1.118 GB, free: 1.242 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.936e-05/0.6758, allocations: 4 kB / 1.118 GB, free: 1.238 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.676, allocations: 11.98 kB / 1.118 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.709e-05/0.676, allocations: 0 / 1.118 GB, free: 1.227 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.872e-05/0.676, allocations: 11.98 kB / 1.118 GB, free: 1.215 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.095e-05/0.6761, allocations: 125.1 kB / 1.118 GB, free: 1.094 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002755/0.6764, allocations: 31.91 kB / 1.118 GB, free: 1.062 MB / 0.7136 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.0002395/0.6766, allocations: 139.4 kB / 1.118 GB, free: 0.9336 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0003072/0.677, allocations: 219.5 kB / 1.119 GB, free: 0.6953 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.677, allocations: 0 / 1.119 GB, free: 0.6953 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.6771, allocations: 139.8 kB / 1.119 GB, free: 0.5469 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.6774, allocations: 21.42 kB / 1.119 GB, free: 0.5234 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004608/0.6778, allocations: 194.5 kB / 1.119 GB, free: 324 kB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002899/0.6781, allocations: 0.7231 MB / 1.12 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of SimCode: time 1.913e-06/0.6781, allocations: 0 / 1.12 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of Templates: time 0.004392/0.6825, allocations: 1.918 MB / 1.122 GB, free: 13.71 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)