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") [: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/BuildingSystems 2.0.0-master/package.mo): time 0.8191/0.8191, allocations: 141.8 MB / 149.1 MB, free: 12.3 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 179.3 kB / 182 MB, free: 9.043 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.3 MB / 436 MB, free: 1.441 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009686/0.0009686, allocations: 96.19 kB / 0.507 GB, free: 10.29 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002113/0.002113, allocations: 270.3 kB / 0.5884 GB, free: 7.105 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 7.193e-06/7.423e-06, allocations: 0 / 0.6759 GB, free: 13.46 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5188/0.5189, allocations: 82.76 MB / 0.7567 GB, free: 138.3 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1341/0.653, allocations: 110 MB / 0.8641 GB, free: 28.19 MB / 0.5575 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.6533, allocations: 84.42 kB / 0.8642 GB, free: 28.11 MB / 0.5575 GB Notification: Performance of FrontEnd: time 0.0124/0.6657, allocations: 4.683 MB / 0.8688 GB, free: 23.43 MB / 0.5575 GB Notification: Performance of Transformations before backend: time 1.159e-05/0.6658, allocations: 1.156 kB / 0.8688 GB, free: 23.43 MB / 0.5575 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.0004865/0.6663, allocations: 0.5142 MB / 0.8693 GB, free: 22.85 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.6663, allocations: 10.34 kB / 0.8693 GB, free: 22.84 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.146e-05/0.6664, allocations: 23.81 kB / 0.8693 GB, free: 22.82 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.6667, allocations: 239.3 kB / 0.8695 GB, free: 22.54 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.6667, allocations: 9.062 kB / 0.8695 GB, free: 22.54 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.6668, allocations: 11.91 kB / 0.8695 GB, free: 22.52 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001392/0.6669, allocations: 47.98 kB / 0.8696 GB, free: 22.48 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001616/0.6671, allocations: 98.33 kB / 0.8697 GB, free: 22.38 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.6671, allocations: 0 / 0.8697 GB, free: 22.38 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.736e-05/0.6671, allocations: 0.7188 kB / 0.8697 GB, free: 22.38 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.6672, allocations: 7.984 kB / 0.8697 GB, free: 22.37 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005841/0.6677, allocations: 393.1 kB / 0.8701 GB, free: 21.95 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/0.6679, allocations: 84.09 kB / 0.8701 GB, free: 21.86 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.839e-05/0.668, allocations: 64.84 kB / 0.8702 GB, free: 21.79 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.668, allocations: 0.875 kB / 0.8702 GB, free: 21.79 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001507/0.6682, allocations: 166.8 kB / 0.8704 GB, free: 21.61 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=10): time 1.723e-06/0.6682, allocations: 0 / 0.8704 GB, free: 21.61 MB / 0.5575 GB Notification: Performance of matching and sorting (n=10): time 0.0003121/0.6685, allocations: 161.4 kB / 0.8705 GB, free: 21.44 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/0.6685, allocations: 162.2 kB / 0.8707 GB, free: 21.25 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001121/0.6687, allocations: 153.9 kB / 0.8708 GB, free: 21.09 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.6687, allocations: 29.7 kB / 0.8709 GB, free: 21.05 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.6687, allocations: 96.3 kB / 0.8709 GB, free: 20.95 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.6688, allocations: 23.7 kB / 0.871 GB, free: 20.93 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.217e-05/0.6688, allocations: 4 kB / 0.871 GB, free: 20.92 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 5.098e-05/0.6688, allocations: 330.8 kB / 0.8713 GB, free: 20.59 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.29e-05/0.6689, allocations: 35.98 kB / 0.8713 GB, free: 20.55 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.336e-05/0.669, allocations: 89.73 kB / 0.8714 GB, free: 20.45 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.629e-05/0.6691, allocations: 55.81 kB / 0.8715 GB, free: 20.39 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.6691, allocations: 4 kB / 0.8715 GB, free: 20.39 MB / 0.5575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002511/0.6694, allocations: 161.6 kB / 0.8716 GB, free: 20.22 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.6694, allocations: 12.16 kB / 0.8716 GB, free: 20.21 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.6694, allocations: 4 kB / 0.8716 GB, free: 20.21 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.6694, allocations: 4 kB / 0.8716 GB, free: 20.2 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.6695, allocations: 15.98 kB / 0.8717 GB, free: 20.19 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.6696, allocations: 9.031 kB / 0.8717 GB, free: 20.18 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.6697, allocations: 15.98 kB / 0.8717 GB, free: 20.16 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.6697, allocations: 4 kB / 0.8717 GB, free: 20.16 MB / 0.5575 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 9.141e-05/0.6698, allocations: 184.2 kB / 0.8719 GB, free: 19.96 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.655e-05/0.6698, allocations: 23.75 kB / 0.8719 GB, free: 19.94 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.723e-05/0.6699, allocations: 13.41 kB / 0.8719 GB, free: 19.92 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.6699, allocations: 0 / 0.8719 GB, free: 19.92 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.6699, allocations: 0 / 0.8719 GB, free: 19.92 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.6699, allocations: 0 / 0.8719 GB, free: 19.92 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003502/0.6703, allocations: 431 kB / 0.8723 GB, free: 19.46 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.6703, allocations: 7.906 kB / 0.8723 GB, free: 19.45 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.206e-05/0.6703, allocations: 11.98 kB / 0.8723 GB, free: 19.44 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.6704, allocations: 4 kB / 0.8723 GB, free: 19.43 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.6704, allocations: 15.91 kB / 0.8723 GB, free: 19.42 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.6704, allocations: 0 / 0.8723 GB, free: 19.42 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6704, allocations: 0 / 0.8723 GB, free: 19.42 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002701/0.6707, allocations: 255.3 kB / 0.8726 GB, free: 19.15 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.039e-05/0.6707, allocations: 96.91 kB / 0.8727 GB, free: 19.04 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.99e-05/0.6708, allocations: 4 kB / 0.8727 GB, free: 19.04 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.6709, allocations: 8 kB / 0.8727 GB, free: 19.03 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.965e-05/0.6709, allocations: 15.92 kB / 0.8727 GB, free: 19.01 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.671, allocations: 7.984 kB / 0.8727 GB, free: 19 MB / 0.5575 GB Notification: Performance of sort global known variables: time 6.783e-05/0.671, allocations: 120.3 kB / 0.8728 GB, free: 18.89 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0002786/0.6713, allocations: 32 kB / 0.8729 GB, free: 18.86 MB / 0.5575 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.0002299/0.6716, allocations: 140.8 kB / 0.873 GB, free: 18.72 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0002543/0.6718, allocations: 215 kB / 0.8732 GB, free: 18.48 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.6718, allocations: 4.188 kB / 0.8732 GB, free: 18.48 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.672, allocations: 143.3 kB / 0.8733 GB, free: 18.33 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.6722, allocations: 12.19 kB / 0.8733 GB, free: 18.31 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004478/0.6727, allocations: 193.5 kB / 0.8735 GB, free: 18.11 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001741/0.6728, allocations: 0.7231 MB / 0.8742 GB, free: 17.36 MB / 0.5575 GB Notification: Performance of SimCode: time 1.784e-06/0.6729, allocations: 4 kB / 0.8742 GB, free: 17.35 MB / 0.5575 GB Notification: Performance of Templates: time 0.0044/0.6773, allocations: 1.929 MB / 0.8761 GB, free: 15.46 MB / 0.5575 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)