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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7992/0.7992, allocations: 141.8 MB / 149.3 MB, free: 9.203 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009996/0.0009996, allocations: 176.8 kB / 182.2 MB, free: 9.438 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.5 MB / 436.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009538/0.0009535, allocations: 93.8 kB / 0.5074 GB, free: 10.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001776/0.001776, allocations: 274.7 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.277e-05/1.291e-05, allocations: 0 / 0.6765 GB, free: 12.81 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.375/0.375, allocations: 82.77 MB / 0.7574 GB, free: 32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1348/0.5098, allocations: 110 MB / 0.8648 GB, free: 1.828 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.5101, allocations: 79.83 kB / 0.8649 GB, free: 1.754 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01398/0.5241, allocations: 5.023 MB / 0.8698 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.292e-06/0.5241, allocations: 0 / 0.8698 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.5241, allocations: 0 / 0.8698 GB, free: 12.71 MB / 0.5417 GB 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.0005497/0.5247, allocations: 0.5126 MB / 0.8703 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.5247, allocations: 8.031 kB / 0.8703 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.847e-05/0.5248, allocations: 27.88 kB / 0.8703 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.5251, allocations: 231.2 kB / 0.8706 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.291e-05/0.5251, allocations: 4 kB / 0.8706 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.5252, allocations: 8 kB / 0.8706 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001406/0.5253, allocations: 55.92 kB / 0.8706 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.5255, allocations: 101.6 kB / 0.8707 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.5255, allocations: 0 / 0.8707 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.5255, allocations: 0 / 0.8707 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.5256, allocations: 4 kB / 0.8707 GB, free: 11.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006364/0.5262, allocations: 397.2 kB / 0.8711 GB, free: 11.22 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001423/0.5264, allocations: 66.56 kB / 0.8712 GB, free: 11.15 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.5265, allocations: 68.77 kB / 0.8712 GB, free: 11.08 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.5265, allocations: 4 kB / 0.8712 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.5267, allocations: 162.8 kB / 0.8714 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=10): time 1.783e-06/0.5267, allocations: 0 / 0.8714 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=10): time 0.0004238/0.5272, allocations: 213.6 kB / 0.8716 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.5273, allocations: 166.1 kB / 0.8717 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.5274, allocations: 153.8 kB / 0.8719 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.5275, allocations: 29.7 kB / 0.8719 GB, free: 10.28 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.035e-05/0.5276, allocations: 112.3 kB / 0.872 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.985e-05/0.5276, allocations: 19.72 kB / 0.872 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.331e-05/0.5276, allocations: 0 / 0.872 GB, free: 10.14 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.5277, allocations: 326.8 kB / 0.8724 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.585e-05/0.5278, allocations: 43.98 kB / 0.8724 GB, free: 9.773 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.528, allocations: 94.78 kB / 0.8725 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.82e-05/0.5281, allocations: 47.97 kB / 0.8725 GB, free: 9.609 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5281, allocations: 0 / 0.8725 GB, free: 9.609 MB / 0.5417 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003975/0.5285, allocations: 197.3 kB / 0.8727 GB, free: 9.41 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.742e-05/0.5286, allocations: 118.8 kB / 0.8728 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.5286, allocations: 0 / 0.8728 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.5287, allocations: 4.25 kB / 0.8728 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001237/0.5288, allocations: 27.92 kB / 0.8729 GB, free: 9.238 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.5288, allocations: 0 / 0.8729 GB, free: 9.238 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001094/0.5289, allocations: 15.98 kB / 0.8729 GB, free: 9.223 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.529, allocations: 12 kB / 0.8729 GB, free: 9.211 MB / 0.5417 GB 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 () * 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.0001341/0.5291, allocations: 186.8 kB / 0.8731 GB, free: 9.012 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.16e-05/0.5291, allocations: 15.81 kB / 0.8731 GB, free: 8.996 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.967e-05/0.5292, allocations: 13.84 kB / 0.8731 GB, free: 8.98 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.5292, allocations: 4 kB / 0.8731 GB, free: 8.977 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5292, allocations: 4 kB / 0.8731 GB, free: 8.973 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.5292, allocations: 3.984 kB / 0.8731 GB, free: 8.969 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000543/0.5298, allocations: 478.8 kB / 0.8736 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.5298, allocations: 0 / 0.8736 GB, free: 8.457 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.726e-05/0.5299, allocations: 15.98 kB / 0.8736 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.5299, allocations: 0 / 0.8736 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.136e-05/0.5299, allocations: 11.97 kB / 0.8736 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.5299, allocations: 4 kB / 0.8736 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.5299, allocations: 0 / 0.8736 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003976/0.5303, allocations: 315.1 kB / 0.8739 GB, free: 8.102 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.5304, allocations: 92.91 kB / 0.874 GB, free: 7.992 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.5304, allocations: 4 kB / 0.874 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.5306, allocations: 8 kB / 0.874 GB, free: 7.98 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.321e-05/0.5306, allocations: 7.984 kB / 0.874 GB, free: 7.973 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.155e-05/0.5306, allocations: 16 kB / 0.874 GB, free: 7.957 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 9.367e-05/0.5307, allocations: 124.3 kB / 0.8741 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2e-07/0.5307, allocations: 0 / 0.8741 GB, free: 7.836 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002913/0.531, allocations: 32 kB / 0.8742 GB, free: 7.805 MB / 0.5417 GB 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) * 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.000258/0.5313, allocations: 131.1 kB / 0.8743 GB, free: 7.676 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003477/0.5317, allocations: 325.5 kB / 0.8746 GB, free: 7.309 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5317, allocations: 3.938 kB / 0.8746 GB, free: 7.305 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.5319, allocations: 186.8 kB / 0.8748 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002338/0.5321, allocations: 20.12 kB / 0.8748 GB, free: 7.074 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004646/0.5326, allocations: 201.2 kB / 0.875 GB, free: 6.859 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.5329, allocations: 0.7157 MB / 0.8757 GB, free: 6.117 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.332e-05/0.533, allocations: 24.47 kB / 0.8757 GB, free: 6.094 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.111e-05/0.533, allocations: 11.44 kB / 0.8757 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.533, allocations: 0 / 0.8757 GB, free: 6.082 MB / 0.5417 GB Notification: Performance of Templates: time 0.004674/0.5377, allocations: 1.822 MB / 0.8775 GB, free: 4.281 MB / 0.5417 GB 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)