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/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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009064/0.0009065, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009472/0.0009473, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.228/1.228, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001687/0.001687, allocations: 274.3 kB / 291.3 MB, free: 1.887 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7492/0.7492, allocations: 144.6 MB / 487 MB, free: 7.191 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003772, allocations: 16.14 kB / 0.5683 GB, free: 38.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1294, allocations: 83.08 MB / 0.6494 GB, free: 3.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.00156/0.131, allocations: 1.289 MB / 0.6507 GB, free: 2.434 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007155/0.1317, allocations: 0.5595 MB / 0.6512 GB, free: 1.871 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.602e-05/0.1318, allocations: 0 / 0.6512 GB, free: 1.871 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.1319, allocations: 23.84 kB / 0.6513 GB, free: 1.848 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001631/0.1321, allocations: 41.19 kB / 0.6513 GB, free: 1.809 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003281/0.1324, allocations: 95.77 kB / 0.6514 GB, free: 1.715 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.1325, allocations: 89.58 kB / 0.6515 GB, free: 1.629 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.25e-05/0.1326, allocations: 31.8 kB / 0.6515 GB, free: 1.602 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001244/0.1327, allocations: 71.75 kB / 0.6516 GB, free: 1.531 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.1328, allocations: 67.75 kB / 0.6516 GB, free: 1.465 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.76e-05/0.1329, allocations: 4 kB / 0.6516 GB, free: 1.461 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.068e-05/0.1329, allocations: 15.98 kB / 0.6517 GB, free: 1.445 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.133, allocations: 27.86 kB / 0.6517 GB, free: 1.418 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.906e-05/0.1331, allocations: 49.64 kB / 0.6517 GB, free: 1.363 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.1332, allocations: 116.2 kB / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.1332, allocations: 0.625 kB / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1332, allocations: 0 / 0.6518 GB, free: 1.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.858e-06/0.1332, allocations: 0.9688 kB / 0.6518 GB, free: 1.25 MB / 446.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.0005299/0.1338, allocations: 0.5153 MB / 0.6523 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.1338, allocations: 12.03 kB / 0.6524 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.5e-05/0.1339, allocations: 19.81 kB / 0.6524 GB, free: 0.6328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002629/0.1341, allocations: 227.5 kB / 0.6526 GB, free: 380 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.1342, allocations: 12.61 kB / 0.6526 GB, free: 368 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.703e-05/0.1342, allocations: 16 kB / 0.6526 GB, free: 352 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.1344, allocations: 116.3 kB / 0.6527 GB, free: 232 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.1344, allocations: 0 / 0.6527 GB, free: 232 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.1345, allocations: 4 kB / 0.6527 GB, free: 228 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1345, allocations: 3.938 kB / 0.6527 GB, free: 224 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.1347, allocations: 81.91 kB / 0.6528 GB, free: 144 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005891/0.1353, allocations: 423.5 kB / 0.6532 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.1354, allocations: 92 kB / 0.6533 GB, free: 15.58 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.1355, allocations: 8.672 kB / 0.6533 GB, free: 15.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.1357, allocations: 180.4 kB / 0.6535 GB, free: 15.38 MB / 462.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.1358, allocations: 0.7188 kB / 0.6535 GB, free: 15.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007038/0.1365, allocations: 0.5128 MB / 0.654 GB, free: 14.81 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.827e-05/0.1366, allocations: 168.5 kB / 0.6541 GB, free: 14.61 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.1367, allocations: 174.7 kB / 0.6543 GB, free: 14.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1367, allocations: 29.7 kB / 0.6543 GB, free: 14.39 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.673e-05/0.1368, allocations: 116.8 kB / 0.6545 GB, free: 14.27 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.1368, allocations: 23.66 kB / 0.6545 GB, free: 14.25 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/0.1369, allocations: 10.09 kB / 0.6545 GB, free: 14.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.551e-05/0.137, allocations: 326.8 kB / 0.6548 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1371, allocations: 55.95 kB / 0.6549 GB, free: 13.86 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.1372, allocations: 105.8 kB / 0.655 GB, free: 13.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001853/0.1374, allocations: 181.8 kB / 0.6551 GB, free: 13.53 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1375, allocations: 2.062 kB / 0.6551 GB, free: 13.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004742/0.1379, allocations: 350.5 kB / 0.6555 GB, free: 13.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.715e-05/0.138, allocations: 118.8 kB / 0.6556 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.138, allocations: 0.7188 kB / 0.6556 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.138, allocations: 4 kB / 0.6556 GB, free: 13.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.1381, allocations: 28.17 kB / 0.6556 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.1382, allocations: 4 kB / 0.6556 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.461e-05/0.1383, allocations: 15.92 kB / 0.6556 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/0.1383, allocations: 8 kB / 0.6556 GB, free: 12.96 MB / 462.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.0001376/0.1384, allocations: 203.2 kB / 0.6558 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.1385, allocations: 19.81 kB / 0.6558 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.1385, allocations: 17.39 kB / 0.6559 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1385, allocations: 0 / 0.6559 GB, free: 12.71 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1385, allocations: 8 kB / 0.6559 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.1385, allocations: 0 / 0.6559 GB, free: 12.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006372/0.1392, allocations: 0.5876 MB / 0.6564 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1392, allocations: 0 / 0.6564 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.476e-05/0.1393, allocations: 19.98 kB / 0.6565 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1393, allocations: 0 / 0.6565 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.1393, allocations: 11.98 kB / 0.6565 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1393, allocations: 0 / 0.6565 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1393, allocations: 0 / 0.6565 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004917/0.1398, allocations: 422.5 kB / 0.6569 GB, free: 11.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.847e-05/0.1399, allocations: 96.8 kB / 0.657 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.1399, allocations: 4 kB / 0.657 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.14, allocations: 15.98 kB / 0.657 GB, free: 11.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.623e-05/0.1401, allocations: 4 kB / 0.657 GB, free: 11.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.1401, allocations: 11.98 kB / 0.657 GB, free: 11.42 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.342e-05/0.1402, allocations: 125.4 kB / 0.6571 GB, free: 11.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1402, allocations: 0 / 0.6571 GB, free: 11.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.1405, allocations: 47.98 kB / 0.6572 GB, free: 11.25 MB / 462.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.0001856/0.1406, allocations: 112.7 kB / 0.6573 GB, free: 11.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000433/0.1411, allocations: 373.4 kB / 0.6576 GB, free: 10.73 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1411, allocations: 0 / 0.6576 GB, free: 10.73 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.1413, allocations: 206.8 kB / 0.6578 GB, free: 10.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.1415, allocations: 28.56 kB / 0.6579 GB, free: 10.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004894/0.142, allocations: 318.1 kB / 0.6582 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002274/0.1423, allocations: 0.7082 MB / 0.6589 GB, free: 9.402 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.643e-05/0.1423, allocations: 20.53 kB / 0.6589 GB, free: 9.379 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.655e-05/0.1424, allocations: 11.44 kB / 0.6589 GB, free: 9.367 MB / 462.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1424, allocations: 0 / 0.6589 GB, free: 9.367 MB / 462.1 MB Notification: Performance of Templates: time 0.004216/0.1466, allocations: 1.951 MB / 0.6608 GB, free: 7.453 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: