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.001005/0.001005, allocations: 113.5 kB / 16.37 MB, free: 6.004 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.001007/0.001007, allocations: 196 kB / 17.31 MB, free: 5.613 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.223/1.223, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001977/0.001977, allocations: 286.2 kB / 291.4 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8917/0.8917, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001636/0.001636, allocations: 95.17 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1443/0.1459, allocations: 86.97 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002642/0.1486, allocations: 1.602 MB / 0.6832 GB, free: 5.836 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008409/0.1494, allocations: 0.6086 MB / 0.6838 GB, free: 5.223 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.062e-05/0.1495, allocations: 8 kB / 0.6838 GB, free: 5.215 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.1496, allocations: 15.8 kB / 0.6838 GB, free: 5.199 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.1498, allocations: 47.75 kB / 0.6838 GB, free: 5.152 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.1502, allocations: 115.8 kB / 0.6839 GB, free: 5.039 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000229/0.1504, allocations: 187.6 kB / 0.6841 GB, free: 4.855 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001075/0.1505, allocations: 41.08 kB / 0.6842 GB, free: 4.816 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.1507, allocations: 83.75 kB / 0.6842 GB, free: 4.734 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.1508, allocations: 83.72 kB / 0.6843 GB, free: 4.652 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.194e-05/0.1508, allocations: 19.98 kB / 0.6843 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.837e-05/0.1509, allocations: 20 kB / 0.6844 GB, free: 4.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.68e-05/0.151, allocations: 31.86 kB / 0.6844 GB, free: 4.582 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.411e-05/0.1511, allocations: 75.7 kB / 0.6845 GB, free: 4.508 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.1513, allocations: 179.3 kB / 0.6846 GB, free: 4.332 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.1513, allocations: 0 / 0.6846 GB, free: 4.332 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1513, allocations: 0 / 0.6846 GB, free: 4.332 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.1513, allocations: 0 / 0.6846 GB, free: 4.332 MB / 494.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.0006344/0.152, allocations: 0.5563 MB / 0.6852 GB, free: 3.703 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.152, allocations: 8.031 kB / 0.6852 GB, free: 3.695 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.1521, allocations: 20.75 kB / 0.6852 GB, free: 3.676 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.1524, allocations: 236.2 kB / 0.6854 GB, free: 3.406 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.382e-05/0.1524, allocations: 4.375 kB / 0.6854 GB, free: 3.402 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/0.1524, allocations: 16.38 kB / 0.6855 GB, free: 3.387 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.1527, allocations: 113.7 kB / 0.6856 GB, free: 3.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.1527, allocations: 4 kB / 0.6856 GB, free: 3.266 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.1527, allocations: 0 / 0.6856 GB, free: 3.266 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1527, allocations: 4 kB / 0.6856 GB, free: 3.262 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.1529, allocations: 63.95 kB / 0.6856 GB, free: 3.199 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/0.1535, allocations: 428.4 kB / 0.686 GB, free: 2.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.1537, allocations: 90.53 kB / 0.6861 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.1538, allocations: 76.81 kB / 0.6862 GB, free: 2.555 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.245e-05/0.1539, allocations: 4 kB / 0.6862 GB, free: 2.551 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002593/0.1541, allocations: 182.9 kB / 0.6864 GB, free: 2.348 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.1541, allocations: 0 / 0.6864 GB, free: 2.348 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0006329/0.1548, allocations: 348.8 kB / 0.6867 GB, free: 1.988 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.1549, allocations: 170.1 kB / 0.6869 GB, free: 1.785 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001504/0.155, allocations: 179.7 kB / 0.687 GB, free: 1.598 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.155, allocations: 33.7 kB / 0.6871 GB, free: 1.559 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.513e-05/0.1551, allocations: 100.7 kB / 0.6872 GB, free: 1.453 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.642e-05/0.1552, allocations: 35.55 kB / 0.6872 GB, free: 1.418 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.4e-05/0.1552, allocations: 41.69 kB / 0.6872 GB, free: 1.371 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1553, allocations: 330.7 kB / 0.6876 GB, free: 1.039 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.1555, allocations: 51.95 kB / 0.6876 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001493/0.1556, allocations: 114.1 kB / 0.6877 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.1559, allocations: 308.9 kB / 0.688 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.156, allocations: 0 / 0.688 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004694/0.1564, allocations: 344.2 kB / 0.6883 GB, free: 128 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.2498/0.4063, allocations: 122.3 kB / 0.6885 GB, free: 18.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.491e-05/0.4063, allocations: 1.875 kB / 0.6885 GB, free: 18.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.4063, allocations: 2.906 kB / 0.6885 GB, free: 18.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.4065, allocations: 16.3 kB / 0.6885 GB, free: 18.11 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.065e-05/0.4065, allocations: 2.594 kB / 0.6885 GB, free: 18.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.4067, allocations: 17.31 kB / 0.6885 GB, free: 18.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.956e-05/0.4067, allocations: 12.56 kB / 0.6885 GB, free: 18.11 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.0001804/0.4069, allocations: 203.8 kB / 0.6887 GB, free: 17.94 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.407, allocations: 19.3 kB / 0.6887 GB, free: 17.94 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.242e-05/0.407, allocations: 14.48 kB / 0.6887 GB, free: 17.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.407, allocations: 0.9688 kB / 0.6887 GB, free: 17.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.407, allocations: 3.734 kB / 0.6887 GB, free: 17.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.407, allocations: 1.078 kB / 0.6887 GB, free: 17.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007349/0.4078, allocations: 0.5851 MB / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.4078, allocations: 0 / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.158e-05/0.4079, allocations: 12.59 kB / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4079, allocations: 1.688 kB / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.4079, allocations: 8.516 kB / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.4079, allocations: 2.062 kB / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4079, allocations: 1.766 kB / 0.6893 GB, free: 17.57 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004988/0.4084, allocations: 411.1 kB / 0.6897 GB, free: 17.38 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.561e-05/0.4085, allocations: 87.95 kB / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.4085, allocations: 5.672 kB / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.4086, allocations: 7.328 kB / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.273e-05/0.4087, allocations: 10.69 kB / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.4087, allocations: 8.094 kB / 0.6898 GB, free: 17.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.219e-05/0.4088, allocations: 138.2 kB / 0.69 GB, free: 17.21 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4088, allocations: 0 / 0.69 GB, free: 17.21 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002889/0.4091, allocations: 34.03 kB / 0.69 GB, free: 17.21 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.0002054/0.4093, allocations: 125.6 kB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000429/0.4097, allocations: 361.9 kB / 0.6905 GB, free: 16.87 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4098, allocations: 0.5 kB / 0.6905 GB, free: 16.87 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001989/0.41, allocations: 209.3 kB / 0.6907 GB, free: 16.75 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.4103, allocations: 19.42 kB / 0.6907 GB, free: 16.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005338/0.4108, allocations: 288.8 kB / 0.691 GB, free: 16.61 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001364/0.411, allocations: 0.7061 MB / 0.6917 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.58e-05/0.411, allocations: 20.83 kB / 0.6917 GB, free: 15.91 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.256e-05/0.4111, allocations: 14.2 kB / 0.6917 GB, free: 15.91 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4111, allocations: 1.219 kB / 0.6917 GB, free: 15.91 MB / 494.1 MB Notification: Performance of Templates: time 0.005211/0.4163, allocations: 2.083 MB / 0.6937 GB, free: 15.73 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.makefile (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 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)