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.0008954/0.0008954, allocations: 99.86 kB / 15.69 MB, free: 476 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001018, allocations: 174.9 kB / 16.57 MB, free: 6.387 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.35/1.35, allocations: 223.2 MB / 240.5 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.652/0.652, allocations: 113.8 MB / 405.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002914/0.0002914, allocations: 8 kB / 493 MB, free: 8.598 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1312, allocations: 77.16 MB / 0.5568 GB, free: 11.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.001524/0.1328, allocations: 1.282 MB / 0.5581 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007479/0.1336, allocations: 0.5576 MB / 0.5586 GB, free: 9.789 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.452e-05/0.1336, allocations: 0 / 0.5586 GB, free: 9.789 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.1338, allocations: 19.86 kB / 0.5587 GB, free: 9.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.1339, allocations: 43.31 kB / 0.5587 GB, free: 9.73 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.1343, allocations: 95.77 kB / 0.5588 GB, free: 9.637 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001255/0.1344, allocations: 99.81 kB / 0.5589 GB, free: 9.539 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.318e-05/0.1345, allocations: 21.09 kB / 0.5589 GB, free: 9.52 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001239/0.1346, allocations: 71.81 kB / 0.559 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001023/0.1347, allocations: 63.75 kB / 0.559 GB, free: 9.387 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.1348, allocations: 15.98 kB / 0.5591 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.458e-05/0.1348, allocations: 19.92 kB / 0.5591 GB, free: 9.352 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.995e-05/0.1349, allocations: 23.92 kB / 0.5591 GB, free: 9.328 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.628e-05/0.135, allocations: 49.64 kB / 0.5591 GB, free: 9.273 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.1351, allocations: 108 kB / 0.5592 GB, free: 9.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.1351, allocations: 0 / 0.5592 GB, free: 9.168 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1351, allocations: 0 / 0.5592 GB, free: 9.168 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1351, allocations: 0 / 0.5592 GB, free: 9.168 MB / 430.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.0005463/0.1357, allocations: 0.5328 MB / 0.5598 GB, free: 8.562 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.1357, allocations: 12.02 kB / 0.5598 GB, free: 8.551 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.1358, allocations: 19.81 kB / 0.5598 GB, free: 8.531 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.136, allocations: 226.8 kB / 0.56 GB, free: 8.27 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.1361, allocations: 8 kB / 0.56 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.764e-05/0.1361, allocations: 16 kB / 0.56 GB, free: 8.246 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.1363, allocations: 113.6 kB / 0.5601 GB, free: 8.129 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-06/0.1364, allocations: 8 kB / 0.5602 GB, free: 8.121 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.1364, allocations: 4 kB / 0.5602 GB, free: 8.117 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.1364, allocations: 7.938 kB / 0.5602 GB, free: 8.109 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.1366, allocations: 75.89 kB / 0.5602 GB, free: 8.035 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005894/0.1372, allocations: 424.6 kB / 0.5606 GB, free: 7.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.1374, allocations: 94.52 kB / 0.5607 GB, free: 7.469 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.1374, allocations: 4 kB / 0.5607 GB, free: 7.465 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.1377, allocations: 182.7 kB / 0.5609 GB, free: 7.262 MB / 430.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.1377, allocations: 0 / 0.5609 GB, free: 7.262 MB / 430.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007333/0.1384, allocations: 0.5147 MB / 0.5614 GB, free: 6.691 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.1385, allocations: 158.2 kB / 0.5616 GB, free: 6.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.1387, allocations: 182.6 kB / 0.5617 GB, free: 6.309 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.1387, allocations: 29.7 kB / 0.5618 GB, free: 6.273 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.912e-05/0.1388, allocations: 112.4 kB / 0.5619 GB, free: 6.156 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.1388, allocations: 23.61 kB / 0.5619 GB, free: 6.133 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.109e-05/0.1388, allocations: 4 kB / 0.5619 GB, free: 6.129 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.1389, allocations: 326.8 kB / 0.5622 GB, free: 5.801 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.139, allocations: 51.97 kB / 0.5623 GB, free: 5.75 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.1392, allocations: 114.8 kB / 0.5624 GB, free: 5.613 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001848/0.1394, allocations: 174.8 kB / 0.5625 GB, free: 5.418 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1394, allocations: 0 / 0.5625 GB, free: 5.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004875/0.1399, allocations: 360 kB / 0.5629 GB, free: 5.035 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.308e-05/0.14, allocations: 114.8 kB / 0.563 GB, free: 4.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.14, allocations: 4.25 kB / 0.563 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.14, allocations: 8 kB / 0.563 GB, free: 4.887 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.1401, allocations: 15.98 kB / 0.563 GB, free: 4.871 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.1401, allocations: 11.92 kB / 0.563 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.1402, allocations: 23.84 kB / 0.563 GB, free: 4.836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.892e-05/0.1403, allocations: 8 kB / 0.5631 GB, free: 4.828 MB / 430.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 ($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.0001354/0.1404, allocations: 187 kB / 0.5632 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.916e-05/0.1405, allocations: 24.05 kB / 0.5633 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.394e-05/0.1405, allocations: 25.39 kB / 0.5633 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1405, allocations: 0 / 0.5633 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.1405, allocations: 3.938 kB / 0.5633 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1405, allocations: 0 / 0.5633 GB, free: 4.574 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006617/0.1412, allocations: 0.5914 MB / 0.5639 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1412, allocations: 4 kB / 0.5639 GB, free: 3.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.554e-05/0.1413, allocations: 12 kB / 0.5639 GB, free: 3.898 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1413, allocations: 3.984 kB / 0.5639 GB, free: 3.895 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.957e-05/0.1413, allocations: 8 kB / 0.5639 GB, free: 3.887 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1413, allocations: 3.938 kB / 0.5639 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1413, allocations: 0 / 0.5639 GB, free: 3.883 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005146/0.1418, allocations: 414.6 kB / 0.5643 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.48e-05/0.1419, allocations: 96.86 kB / 0.5644 GB, free: 3.336 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.484e-05/0.1419, allocations: 8 kB / 0.5644 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1421, allocations: 8 kB / 0.5644 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.202e-05/0.1421, allocations: 7.984 kB / 0.5644 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.1421, allocations: 12 kB / 0.5644 GB, free: 3.301 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.932e-05/0.1422, allocations: 140.2 kB / 0.5645 GB, free: 3.164 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1422, allocations: 0 / 0.5645 GB, free: 3.164 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002937/0.1425, allocations: 36 kB / 0.5646 GB, free: 3.129 MB / 430.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 (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.0001884/0.1427, allocations: 122 kB / 0.5647 GB, free: 3.004 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004426/0.1432, allocations: 369.5 kB / 0.5651 GB, free: 2.594 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1432, allocations: 0 / 0.5651 GB, free: 2.594 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000218/0.1434, allocations: 211.2 kB / 0.5653 GB, free: 2.363 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.1436, allocations: 23.8 kB / 0.5653 GB, free: 2.344 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004965/0.1441, allocations: 310.2 kB / 0.5656 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002149/0.1444, allocations: 0.716 MB / 0.5663 GB, free: 1.266 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.231e-05/0.1444, allocations: 20.53 kB / 0.5663 GB, free: 1.246 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/0.1445, allocations: 15.44 kB / 0.5663 GB, free: 1.23 MB / 430.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1445, allocations: 0 / 0.5663 GB, free: 1.23 MB / 430.1 MB Notification: Performance of Templates: time 0.004326/0.1488, allocations: 1.931 MB / 0.5682 GB, free: 15.33 MB / 446.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)