Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.Utilities.IO.Files.Examples.CSVWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003821/0.003827, allocations: 357.5 kB / 16.58 MB, free: 5.57 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.324/1.324, allocations: 165.8 MB / 183.1 MB, free: 5.91 MB / 90.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.196/4.196, allocations: 410.7 MB / 0.6001 GB, free: 2.195 MB / 410.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001827/0.001826, allocations: 180.9 kB / 0.6668 GB, free: 14.05 MB / 490.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.0004619, allocations: 8 kB / 0.7429 GB, free: 48 kB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4604/0.4609, allocations: 67.43 MB / 0.8087 GB, free: 245.4 MB / 0.5886 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1468/0.6078, allocations: 100.4 MB / 0.9068 GB, free: 156.9 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.6081, allocations: 93.19 kB / 0.9069 GB, free: 156.8 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 0.01983/0.6279, allocations: 5.021 MB / 0.9118 GB, free: 151.8 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.074e-06/0.628, allocations: 0.625 kB / 0.9118 GB, free: 151.8 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 1.419e-05/0.628, allocations: 4 kB / 0.9118 GB, free: 151.8 MB / 0.5886 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.0006136/0.6286, allocations: 0.5314 MB / 0.9123 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.6287, allocations: 9.125 kB / 0.9123 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.246e-05/0.6288, allocations: 19.81 kB / 0.9123 GB, free: 151.2 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.6291, allocations: 226.8 kB / 0.9126 GB, free: 150.9 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.6291, allocations: 10.42 kB / 0.9126 GB, free: 150.9 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.6292, allocations: 16 kB / 0.9126 GB, free: 150.9 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003572/0.6295, allocations: 110.4 kB / 0.9127 GB, free: 150.8 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.6295, allocations: 3.953 kB / 0.9127 GB, free: 150.8 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.6296, allocations: 12.05 kB / 0.9127 GB, free: 150.8 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.6296, allocations: 0 / 0.9127 GB, free: 150.8 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003197/0.6299, allocations: 74.05 kB / 0.9128 GB, free: 150.7 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007692/0.6307, allocations: 429.8 kB / 0.9132 GB, free: 150.2 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002923/0.631, allocations: 96.42 kB / 0.9133 GB, free: 150.1 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.6313, allocations: 83.84 kB / 0.9134 GB, free: 150.1 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.6313, allocations: 4.688 kB / 0.9134 GB, free: 150.1 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003422/0.6317, allocations: 181.5 kB / 0.9135 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=10): time 2.224e-06/0.6317, allocations: 0 / 0.9135 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=10): time 0.001022/0.6327, allocations: 366.9 kB / 0.9139 GB, free: 149.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.769e-05/0.6328, allocations: 171.2 kB / 0.9141 GB, free: 149.3 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00018/0.633, allocations: 178.1 kB / 0.9142 GB, free: 149.1 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.633, allocations: 30.36 kB / 0.9143 GB, free: 149.1 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.54e-05/0.6331, allocations: 111.4 kB / 0.9144 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 3.22e-05/0.6332, allocations: 23.62 kB / 0.9144 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.6332, allocations: 4 kB / 0.9144 GB, free: 148.9 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 6.288e-05/0.6333, allocations: 329.9 kB / 0.9147 GB, free: 148.6 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002115/0.6335, allocations: 55.95 kB / 0.9148 GB, free: 148.5 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002353/0.6337, allocations: 109.4 kB / 0.9149 GB, free: 148.4 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002711/0.634, allocations: 182.1 kB / 0.915 GB, free: 148.2 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.634, allocations: 2.406 kB / 0.915 GB, free: 148.2 MB / 0.5886 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007602/0.6348, allocations: 353.9 kB / 0.9154 GB, free: 147.8 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.381e-05/0.6349, allocations: 122.1 kB / 0.9155 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.6349, allocations: 8.594 kB / 0.9155 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.6349, allocations: 0 / 0.9155 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.6351, allocations: 20.61 kB / 0.9155 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.728e-06/0.6351, allocations: 5.844 kB / 0.9155 GB, free: 147.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.6353, allocations: 15.84 kB / 0.9155 GB, free: 147.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/0.6354, allocations: 18.22 kB / 0.9156 GB, free: 147.6 MB / 0.5886 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.0001656/0.6355, allocations: 203.3 kB / 0.9157 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.973e-05/0.6356, allocations: 19.77 kB / 0.9158 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.6356, allocations: 14.81 kB / 0.9158 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.6356, allocations: 4 kB / 0.9158 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.6357, allocations: 0 / 0.9158 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.6357, allocations: 3.984 kB / 0.9158 GB, free: 147.4 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009344/0.6366, allocations: 0.5864 MB / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.6366, allocations: 1.719 kB / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.6368, allocations: 15.98 kB / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.6368, allocations: 0 / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.6368, allocations: 11.98 kB / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.6368, allocations: 4.906 kB / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.6368, allocations: 3.469 kB / 0.9164 GB, free: 146.7 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007879/0.6376, allocations: 408.9 kB / 0.9168 GB, free: 146.3 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 4.337e-05/0.6377, allocations: 94.62 kB / 0.9169 GB, free: 146.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.015e-05/0.6377, allocations: 8 kB / 0.9169 GB, free: 146.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001789/0.6379, allocations: 11.98 kB / 0.9169 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.638, allocations: 5.375 kB / 0.9169 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.6381, allocations: 13.55 kB / 0.9169 GB, free: 146.1 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0001135/0.6382, allocations: 125.6 kB / 0.917 GB, free: 146 MB / 0.5886 GB Notification: Performance of sort global known variables: time 3.91e-07/0.6382, allocations: 0.5312 kB / 0.917 GB, free: 146 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0003813/0.6386, allocations: 44.8 kB / 0.9171 GB, free: 146 MB / 0.5886 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.0002576/0.6388, allocations: 128 kB / 0.9172 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0006261/0.6395, allocations: 369.5 kB / 0.9176 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.6395, allocations: 1.75 kB / 0.9176 GB, free: 145.4 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0003131/0.6398, allocations: 214.7 kB / 0.9178 GB, free: 145.2 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.6402, allocations: 19.86 kB / 0.9178 GB, free: 145.2 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007398/0.641, allocations: 316.4 kB / 0.9181 GB, free: 144.8 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.6412, allocations: 0.7177 MB / 0.9188 GB, free: 144.1 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 9.901e-05/0.6413, allocations: 17.11 kB / 0.9188 GB, free: 144.1 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.6413, allocations: 16.7 kB / 0.9188 GB, free: 144.1 MB / 0.5886 GB Notification: Performance of SimCode: time 1.022e-06/0.6414, allocations: 0 / 0.9188 GB, free: 144.1 MB / 0.5886 GB Notification: Performance of Templates: time 0.006387/0.6478, allocations: 1.89 MB / 0.9207 GB, free: 142.4 MB / 0.5886 GB