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.001392/0.001396, allocations: 187.7 kB / 15.77 MB, free: 6 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 0.6746/0.6746, allocations: 82.92 MB / 99.41 MB, free: 3.25 MB / 74.72 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.233/2.233, allocations: 205.4 MB / 325.4 MB, free: 3.34 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009999/0.0009999, allocations: 90.25 kB / 393.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004452/0.0004456, allocations: 12 kB / 471.5 MB, free: 66.53 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1323, allocations: 67.45 MB / 0.5264 GB, free: 15.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.003479/0.1358, allocations: 1.286 MB / 0.5276 GB, free: 13.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1379, allocations: 0.5935 MB / 0.5282 GB, free: 13.15 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.972e-05/0.1381, allocations: 0 / 0.5282 GB, free: 13.15 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001887/0.1383, allocations: 19.86 kB / 0.5282 GB, free: 13.13 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003442/0.1387, allocations: 39.88 kB / 0.5282 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009265/0.1396, allocations: 99.77 kB / 0.5283 GB, free: 12.99 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.1399, allocations: 99.81 kB / 0.5284 GB, free: 12.89 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1401, allocations: 17.11 kB / 0.5285 GB, free: 12.88 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000275/0.1404, allocations: 67.81 kB / 0.5285 GB, free: 12.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.1406, allocations: 71.73 kB / 0.5286 GB, free: 12.74 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-05/0.1407, allocations: 4 kB / 0.5286 GB, free: 12.73 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.1408, allocations: 23.94 kB / 0.5286 GB, free: 12.71 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.1409, allocations: 31.91 kB / 0.5286 GB, free: 12.68 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1411, allocations: 49.64 kB / 0.5287 GB, free: 12.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003169/0.1414, allocations: 112 kB / 0.5288 GB, free: 12.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.513e-06/0.1414, allocations: 0 / 0.5288 GB, free: 12.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.797e-06/0.1415, allocations: 0 / 0.5288 GB, free: 12.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.907e-06/0.1415, allocations: 0 / 0.5288 GB, free: 12.52 MB / 378.7 MB 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.00107/0.1426, allocations: 0.5251 MB / 0.5293 GB, free: 11.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.1426, allocations: 15.97 kB / 0.5293 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.1428, allocations: 19.81 kB / 0.5293 GB, free: 11.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.1434, allocations: 231.2 kB / 0.5296 GB, free: 11.62 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.1434, allocations: 4 kB / 0.5296 GB, free: 11.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.175e-05/0.1435, allocations: 16 kB / 0.5296 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005606/0.1441, allocations: 113.6 kB / 0.5297 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.1441, allocations: 0 / 0.5297 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.941e-05/0.1442, allocations: 12 kB / 0.5297 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1442, allocations: 0 / 0.5297 GB, free: 11.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005159/0.1448, allocations: 79.88 kB / 0.5298 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.1462, allocations: 424.7 kB / 0.5302 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004362/0.1466, allocations: 86.56 kB / 0.5303 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.1467, allocations: 4 kB / 0.5303 GB, free: 10.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006423/0.1473, allocations: 186.9 kB / 0.5304 GB, free: 10.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 4.33e-06/0.1474, allocations: 0 / 0.5304 GB, free: 10.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.001914/0.1493, allocations: 0.5223 MB / 0.531 GB, free: 10.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.1495, allocations: 162.2 kB / 0.5311 GB, free: 9.848 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.1499, allocations: 182.6 kB / 0.5313 GB, free: 9.656 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.274e-05/0.15, allocations: 25.7 kB / 0.5313 GB, free: 9.625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.1501, allocations: 112.3 kB / 0.5314 GB, free: 9.512 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.615e-05/0.1502, allocations: 23.66 kB / 0.5314 GB, free: 9.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.1503, allocations: 8 kB / 0.5315 GB, free: 9.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000226/0.1505, allocations: 322.8 kB / 0.5318 GB, free: 9.156 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.1509, allocations: 59.95 kB / 0.5318 GB, free: 9.098 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004268/0.1514, allocations: 106.8 kB / 0.5319 GB, free: 8.969 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005227/0.1519, allocations: 178.8 kB / 0.5321 GB, free: 8.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.824e-06/0.152, allocations: 0 / 0.5321 GB, free: 8.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001437/0.1534, allocations: 364 kB / 0.5324 GB, free: 8.383 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001642/0.1536, allocations: 122.7 kB / 0.5326 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.1536, allocations: 4 kB / 0.5326 GB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.536e-05/0.1537, allocations: 256 / 0.5326 GB, free: 8.234 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002505/0.154, allocations: 23.98 kB / 0.5326 GB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.154, allocations: 4 kB / 0.5326 GB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002578/0.1543, allocations: 8 kB / 0.5326 GB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.743e-05/0.1544, allocations: 19.92 kB / 0.5326 GB, free: 8.18 MB / 378.7 MB 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.0003556/0.1547, allocations: 193.2 kB / 0.5328 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.491e-05/0.1548, allocations: 19.77 kB / 0.5328 GB, free: 7.949 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.368e-05/0.1549, allocations: 17.41 kB / 0.5328 GB, free: 7.938 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.155, allocations: 11.98 kB / 0.5328 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.676e-06/0.155, allocations: 0 / 0.5328 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.155, allocations: 4 kB / 0.5328 GB, free: 7.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.1569, allocations: 0.5876 MB / 0.5334 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.639e-06/0.1569, allocations: 0 / 0.5334 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001748/0.1571, allocations: 19.98 kB / 0.5334 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.512e-06/0.1571, allocations: 288 / 0.5334 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.65e-05/0.1572, allocations: 7.984 kB / 0.5334 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.141e-06/0.1572, allocations: 0 / 0.5334 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.661e-06/0.1573, allocations: 3.938 kB / 0.5334 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.1587, allocations: 414.5 kB / 0.5338 GB, free: 6.801 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.1588, allocations: 88.92 kB / 0.5339 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.44e-05/0.1589, allocations: 8 kB / 0.5339 GB, free: 6.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.1593, allocations: 11.98 kB / 0.5339 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.1593, allocations: 7.984 kB / 0.534 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.524e-05/0.1594, allocations: 15.98 kB / 0.534 GB, free: 6.652 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002268/0.1597, allocations: 119.2 kB / 0.5341 GB, free: 6.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.259e-06/0.1597, allocations: 4 kB / 0.5341 GB, free: 6.531 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007905/0.1605, allocations: 40 kB / 0.5341 GB, free: 6.492 MB / 378.7 MB 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.000406/0.1609, allocations: 123.3 kB / 0.5342 GB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.1622, allocations: 377.4 kB / 0.5346 GB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.606e-06/0.1622, allocations: 0 / 0.5346 GB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005964/0.1628, allocations: 210.7 kB / 0.5348 GB, free: 5.719 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004853/0.1633, allocations: 16.67 kB / 0.5348 GB, free: 5.703 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.1646, allocations: 316.4 kB / 0.5351 GB, free: 5.371 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000542/0.1652, allocations: 0.716 MB / 0.5358 GB, free: 4.629 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001719/0.1654, allocations: 20.53 kB / 0.5358 GB, free: 4.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.199e-05/0.1655, allocations: 15.44 kB / 0.5359 GB, free: 4.594 MB / 378.7 MB Notification: Performance of SimCode: time 2.497e-06/0.1655, allocations: 0 / 0.5359 GB, free: 4.594 MB / 378.7 MB Notification: Performance of Templates: time 0.01127/0.1768, allocations: 1.941 MB / 0.5378 GB, free: 2.676 MB / 378.7 MB