Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.conf.json 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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 107.2 kB / 16.41 MB, free: 6.492 MB / 14.72 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: 189.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7578/0.7578, allocations: 115.3 MB / 406.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 70.02 kB / 0.5577 GB, free: 32.27 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1486, allocations: 76.17 MB / 0.6321 GB, free: 4.418 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.00262/0.1513, allocations: 1.613 MB / 0.6336 GB, free: 2.793 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008989/0.1522, allocations: 0.6001 MB / 0.6342 GB, free: 2.188 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.645e-05/0.1523, allocations: 7.938 kB / 0.6342 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1524, allocations: 23.86 kB / 0.6343 GB, free: 2.156 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.1526, allocations: 47.75 kB / 0.6343 GB, free: 2.109 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003769/0.153, allocations: 107.8 kB / 0.6344 GB, free: 2.004 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002437/0.1533, allocations: 195.6 kB / 0.6346 GB, free: 1.812 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.1534, allocations: 25.11 kB / 0.6346 GB, free: 1.789 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000136/0.1535, allocations: 87.81 kB / 0.6347 GB, free: 1.703 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.1537, allocations: 87.66 kB / 0.6348 GB, free: 1.617 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.436e-05/0.1537, allocations: 15.98 kB / 0.6348 GB, free: 1.602 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.355e-05/0.1538, allocations: 24 kB / 0.6348 GB, free: 1.578 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.28e-05/0.1539, allocations: 31.86 kB / 0.6348 GB, free: 1.547 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 9.241e-05/0.154, allocations: 75.64 kB / 0.6349 GB, free: 1.473 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.1542, allocations: 171.5 kB / 0.6351 GB, free: 1.305 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1542, allocations: 0 / 0.6351 GB, free: 1.305 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1542, allocations: 0 / 0.6351 GB, free: 1.305 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1542, allocations: 0 / 0.6351 GB, free: 1.305 MB / 478.1 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.0006556/0.1549, allocations: 0.5564 MB / 0.6356 GB, free: 0.6758 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.332e-05/0.1549, allocations: 8.031 kB / 0.6356 GB, free: 0.668 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.57e-05/0.155, allocations: 20.75 kB / 0.6357 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.1553, allocations: 240.7 kB / 0.6359 GB, free: 384 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1553, allocations: 8.375 kB / 0.6359 GB, free: 376 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/0.1554, allocations: 16.31 kB / 0.6359 GB, free: 360 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002656/0.1556, allocations: 117.7 kB / 0.636 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.1556, allocations: 0 / 0.636 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.1557, allocations: 3.938 kB / 0.636 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.1557, allocations: 4 kB / 0.636 GB, free: 228 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.1559, allocations: 63.95 kB / 0.6361 GB, free: 164 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.1565, allocations: 428.7 kB / 0.6365 GB, free: 15.69 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.1567, allocations: 86.53 kB / 0.6366 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1569, allocations: 72.81 kB / 0.6367 GB, free: 15.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1569, allocations: 8 kB / 0.6367 GB, free: 15.51 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.1572, allocations: 182.9 kB / 0.6368 GB, free: 15.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.1572, allocations: 0 / 0.6368 GB, free: 15.31 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.000707/0.1579, allocations: 352.5 kB / 0.6372 GB, free: 14.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.187e-05/0.158, allocations: 162.2 kB / 0.6373 GB, free: 14.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.1582, allocations: 178.6 kB / 0.6375 GB, free: 14.56 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.1582, allocations: 37.69 kB / 0.6375 GB, free: 14.52 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.306e-05/0.1583, allocations: 108.3 kB / 0.6376 GB, free: 14.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.1583, allocations: 27.64 kB / 0.6377 GB, free: 14.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.821e-05/0.1584, allocations: 41.69 kB / 0.6377 GB, free: 14.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1585, allocations: 330.8 kB / 0.638 GB, free: 14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.1586, allocations: 51.95 kB / 0.6381 GB, free: 13.95 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.1588, allocations: 106.8 kB / 0.6382 GB, free: 13.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003155/0.1591, allocations: 304.9 kB / 0.6385 GB, free: 13.46 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1591, allocations: 4 kB / 0.6385 GB, free: 13.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005128/0.1597, allocations: 352.1 kB / 0.6388 GB, free: 13.08 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.437e-05/0.1597, allocations: 120.2 kB / 0.6389 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1598, allocations: 3.984 kB / 0.6389 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.1598, allocations: 4 kB / 0.6389 GB, free: 12.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.1599, allocations: 19.98 kB / 0.6389 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.1599, allocations: 7.938 kB / 0.6389 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.16, allocations: 11.98 kB / 0.639 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1601, allocations: 8 kB / 0.639 GB, free: 12.89 MB / 494.1 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 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.1602, allocations: 203.8 kB / 0.6392 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.339e-05/0.1602, allocations: 15.81 kB / 0.6392 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.1603, allocations: 17.39 kB / 0.6392 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1603, allocations: 0 / 0.6392 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.1603, allocations: 0 / 0.6392 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.1603, allocations: 8.219 kB / 0.6392 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006907/0.161, allocations: 0.5875 MB / 0.6398 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.161, allocations: 4 kB / 0.6398 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.301e-05/0.1611, allocations: 8 kB / 0.6398 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1611, allocations: 0 / 0.6398 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.389e-05/0.1611, allocations: 15.98 kB / 0.6398 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.1612, allocations: 0 / 0.6398 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1612, allocations: 7.875 kB / 0.6398 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005273/0.1617, allocations: 398.6 kB / 0.6402 GB, free: 11.51 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.1618, allocations: 92.92 kB / 0.6403 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.71e-05/0.1618, allocations: 4 kB / 0.6403 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.1619, allocations: 11.98 kB / 0.6403 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.162, allocations: 7.938 kB / 0.6403 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.162, allocations: 11.98 kB / 0.6403 GB, free: 11.37 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1621, allocations: 131.2 kB / 0.6404 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1621, allocations: 3.938 kB / 0.6404 GB, free: 11.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1624, allocations: 32 kB / 0.6405 GB, free: 11.2 MB / 494.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002308/0.1626, allocations: 127 kB / 0.6406 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004803/0.1631, allocations: 361.9 kB / 0.6409 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.1631, allocations: 4.062 kB / 0.6409 GB, free: 10.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.1634, allocations: 206.7 kB / 0.6411 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.1637, allocations: 23.98 kB / 0.6412 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005701/0.1643, allocations: 276 kB / 0.6414 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.1646, allocations: 0.7157 MB / 0.6421 GB, free: 9.379 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.743e-05/0.1647, allocations: 20.53 kB / 0.6421 GB, free: 9.359 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.547e-05/0.1647, allocations: 19.44 kB / 0.6422 GB, free: 9.34 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1647, allocations: 0 / 0.6422 GB, free: 9.34 MB / 494.1 MB Notification: Performance of Templates: time 0.005024/0.1697, allocations: 2.075 MB / 0.6442 GB, free: 7.293 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)