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.001238/0.001238, allocations: 102.3 kB / 16.35 MB, free: 5.875 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.001383/0.001383, allocations: 198.3 kB / 17.3 MB, free: 5.516 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.233/1.233, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002972/0.002972, allocations: 292.1 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8938/0.8938, allocations: 169.3 MB / 0.4989 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 90.98 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1494, allocations: 86.98 MB / 0.6816 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.002602/0.1521, allocations: 1.606 MB / 0.6832 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008221/0.1529, allocations: 0.6046 MB / 0.6838 GB, free: 5.199 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.476e-05/0.153, allocations: 4 kB / 0.6838 GB, free: 5.195 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001238/0.1531, allocations: 19.78 kB / 0.6838 GB, free: 5.176 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.1533, allocations: 47.75 kB / 0.6838 GB, free: 5.129 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003321/0.1536, allocations: 115.8 kB / 0.6839 GB, free: 5.016 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.1539, allocations: 195.6 kB / 0.6841 GB, free: 4.824 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.154, allocations: 37.03 kB / 0.6842 GB, free: 4.789 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.1541, allocations: 87.75 kB / 0.6842 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.1542, allocations: 83.72 kB / 0.6843 GB, free: 4.621 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.62e-05/0.1543, allocations: 12 kB / 0.6843 GB, free: 4.609 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.868e-05/0.1544, allocations: 20 kB / 0.6843 GB, free: 4.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.194e-05/0.1544, allocations: 31.91 kB / 0.6844 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.49e-05/0.1545, allocations: 79.58 kB / 0.6845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.1547, allocations: 171.5 kB / 0.6846 GB, free: 4.312 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.1547, allocations: 0 / 0.6846 GB, free: 4.312 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1547, allocations: 0 / 0.6846 GB, free: 4.312 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1548, allocations: 4 kB / 0.6846 GB, free: 4.309 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.0005766/0.1553, allocations: 0.5486 MB / 0.6852 GB, free: 3.688 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.1554, allocations: 8.031 kB / 0.6852 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.584e-05/0.1554, allocations: 20.75 kB / 0.6852 GB, free: 3.66 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.1557, allocations: 244.1 kB / 0.6854 GB, free: 3.383 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.1557, allocations: 8.375 kB / 0.6854 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.796e-05/0.1558, allocations: 8.375 kB / 0.6854 GB, free: 3.367 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.156, allocations: 121.7 kB / 0.6855 GB, free: 3.242 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.156, allocations: 0 / 0.6855 GB, free: 3.242 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1561, allocations: 4 kB / 0.6856 GB, free: 3.238 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1561, allocations: 0 / 0.6856 GB, free: 3.238 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001785/0.1562, allocations: 67.89 kB / 0.6856 GB, free: 3.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005831/0.1568, allocations: 424.5 kB / 0.686 GB, free: 2.707 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.157, allocations: 102.5 kB / 0.6861 GB, free: 2.598 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.1572, allocations: 72.81 kB / 0.6862 GB, free: 2.523 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.1572, allocations: 4 kB / 0.6862 GB, free: 2.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.1575, allocations: 170.7 kB / 0.6864 GB, free: 2.328 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.1575, allocations: 4 kB / 0.6864 GB, free: 2.324 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.000646/0.1581, allocations: 356.8 kB / 0.6867 GB, free: 1.957 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.545e-05/0.1582, allocations: 166.2 kB / 0.6869 GB, free: 1.758 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.1584, allocations: 167.8 kB / 0.687 GB, free: 1.582 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.1584, allocations: 37.97 kB / 0.6871 GB, free: 1.539 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.896e-05/0.1584, allocations: 104.4 kB / 0.6872 GB, free: 1.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.769e-05/0.1585, allocations: 31.55 kB / 0.6872 GB, free: 1.398 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.814e-05/0.1586, allocations: 45.64 kB / 0.6872 GB, free: 1.348 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.1587, allocations: 326.8 kB / 0.6875 GB, free: 1.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001235/0.1588, allocations: 51.95 kB / 0.6876 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.1589, allocations: 118 kB / 0.6877 GB, free: 0.832 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.1592, allocations: 305 kB / 0.688 GB, free: 484 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1593, allocations: 0 / 0.688 GB, free: 484 kB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004726/0.1597, allocations: 344.1 kB / 0.6883 GB, free: 108 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.2427/0.4025, allocations: 120.9 kB / 0.6884 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.4025, allocations: 7.25 kB / 0.6884 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.4026, allocations: 3.156 kB / 0.6884 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001451/0.4027, allocations: 18.25 kB / 0.6885 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.4027, allocations: 5.078 kB / 0.6885 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001454/0.4029, allocations: 16.67 kB / 0.6885 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.4029, allocations: 12.38 kB / 0.6885 GB, free: 18.09 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.0001722/0.4031, allocations: 203.9 kB / 0.6887 GB, free: 17.92 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.115e-05/0.4032, allocations: 18.47 kB / 0.6887 GB, free: 17.92 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.4032, allocations: 15.67 kB / 0.6887 GB, free: 17.91 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4032, allocations: 1.031 kB / 0.6887 GB, free: 17.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4032, allocations: 1.5 kB / 0.6887 GB, free: 17.91 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.4032, allocations: 1.281 kB / 0.6887 GB, free: 17.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007443/0.404, allocations: 0.5867 MB / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.404, allocations: 1.516 kB / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.46e-05/0.4041, allocations: 11.45 kB / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.4041, allocations: 0 / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.4041, allocations: 9.328 kB / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.4041, allocations: 0.6094 kB / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4041, allocations: 1.156 kB / 0.6893 GB, free: 17.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005104/0.4046, allocations: 409.6 kB / 0.6897 GB, free: 17.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.057e-05/0.4047, allocations: 83.48 kB / 0.6898 GB, free: 17.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.4047, allocations: 5.109 kB / 0.6898 GB, free: 17.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000116/0.4049, allocations: 12.09 kB / 0.6898 GB, free: 17.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.939e-05/0.4049, allocations: 8.781 kB / 0.6898 GB, free: 17.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.4049, allocations: 11.36 kB / 0.6898 GB, free: 17.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.425e-05/0.405, allocations: 133.4 kB / 0.69 GB, free: 17.19 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.405, allocations: 0.5625 kB / 0.69 GB, free: 17.19 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.4054, allocations: 39.38 kB / 0.69 GB, free: 17.19 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.0002173/0.4056, allocations: 132.6 kB / 0.6901 GB, free: 17.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004437/0.406, allocations: 362.2 kB / 0.6905 GB, free: 16.85 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.4061, allocations: 0 / 0.6905 GB, free: 16.85 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.4063, allocations: 203.5 kB / 0.6907 GB, free: 16.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.4066, allocations: 25.28 kB / 0.6907 GB, free: 16.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005657/0.4072, allocations: 282.8 kB / 0.691 GB, free: 16.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001418/0.4073, allocations: 0.7091 MB / 0.6916 GB, free: 15.89 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.217e-05/0.4074, allocations: 20.64 kB / 0.6917 GB, free: 15.89 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.4074, allocations: 15.41 kB / 0.6917 GB, free: 15.89 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4074, allocations: 1 kB / 0.6917 GB, free: 15.89 MB / 494.1 MB Notification: Performance of Templates: time 0.005817/0.4133, allocations: 2.082 MB / 0.6937 GB, free: 15.71 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 cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)