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.7673/0.7673, allocations: 143.4 MB / 159.2 MB, free: 4.852 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.001221/0.00122, allocations: 186.8 kB / 191.9 MB, free: 5.723 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.4/1.4, allocations: 222.9 MB / 447.3 MB, free: 5.855 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.0009729/0.0009729, allocations: 115.7 kB / 0.517 GB, free: 3.703 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001998/0.001998, allocations: 287.5 kB / 0.5973 GB, free: 49.37 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001532/0.001532, allocations: 71.89 kB / 0.6885 GB, free: 3.84 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3361, allocations: 81.29 MB / 0.7679 GB, free: 27.68 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.CSVWriter): time 0.00244/0.3386, allocations: 1.661 MB / 0.7695 GB, free: 26.01 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007162/0.3393, allocations: 0.6353 MB / 0.7702 GB, free: 25.37 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.939e-05/0.3394, allocations: 0 / 0.7702 GB, free: 25.37 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.3395, allocations: 19.92 kB / 0.7702 GB, free: 25.35 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001553/0.3397, allocations: 46.58 kB / 0.7702 GB, free: 25.31 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003137/0.34, allocations: 99.84 kB / 0.7703 GB, free: 25.21 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.3401, allocations: 167.6 kB / 0.7705 GB, free: 25.05 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.71e-05/0.3402, allocations: 27.78 kB / 0.7705 GB, free: 25.02 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.3404, allocations: 75.75 kB / 0.7706 GB, free: 24.95 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.216e-05/0.3405, allocations: 79.72 kB / 0.7707 GB, free: 24.87 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 2.989e-05/0.3405, allocations: 8 kB / 0.7707 GB, free: 24.86 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.3406, allocations: 24 kB / 0.7707 GB, free: 24.84 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 6.63e-05/0.3406, allocations: 27.92 kB / 0.7707 GB, free: 24.81 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 6.659e-05/0.3407, allocations: 71.64 kB / 0.7708 GB, free: 24.74 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.3409, allocations: 151.5 kB / 0.7709 GB, free: 24.59 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3409, allocations: 0 / 0.7709 GB, free: 24.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.3409, allocations: 0 / 0.7709 GB, free: 24.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.116e-06/0.3409, allocations: 0 / 0.7709 GB, free: 24.59 MB / 458.7 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.0004875/0.3414, allocations: 0.5564 MB / 0.7715 GB, free: 23.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.984e-05/0.3414, allocations: 8.031 kB / 0.7715 GB, free: 23.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.898e-05/0.3415, allocations: 20.75 kB / 0.7715 GB, free: 23.94 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.3417, allocations: 237.6 kB / 0.7717 GB, free: 23.67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3417, allocations: 8.375 kB / 0.7717 GB, free: 23.66 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.3417, allocations: 16.38 kB / 0.7718 GB, free: 23.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002165/0.342, allocations: 113.7 kB / 0.7719 GB, free: 23.53 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.342, allocations: 0 / 0.7719 GB, free: 23.53 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.342, allocations: 8 kB / 0.7719 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.342, allocations: 0 / 0.7719 GB, free: 23.52 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000163/0.3422, allocations: 75.88 kB / 0.7719 GB, free: 23.45 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.3427, allocations: 416.6 kB / 0.7723 GB, free: 22.99 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001508/0.3428, allocations: 86.56 kB / 0.7724 GB, free: 22.89 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001245/0.343, allocations: 80.81 kB / 0.7725 GB, free: 22.81 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.343, allocations: 0 / 0.7725 GB, free: 22.81 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.3432, allocations: 182.9 kB / 0.7727 GB, free: 22.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.3432, allocations: 0 / 0.7727 GB, free: 22.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=10): time 0.0005473/0.3438, allocations: 352.6 kB / 0.773 GB, free: 22.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.3438, allocations: 170.2 kB / 0.7732 GB, free: 22.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/0.3439, allocations: 179.2 kB / 0.7733 GB, free: 21.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.384e-05/0.3439, allocations: 25.7 kB / 0.7734 GB, free: 21.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.064e-05/0.344, allocations: 112.3 kB / 0.7735 GB, free: 21.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.983e-05/0.344, allocations: 27.64 kB / 0.7735 GB, free: 21.68 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.402e-05/0.3441, allocations: 49.69 kB / 0.7735 GB, free: 21.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.118e-05/0.3441, allocations: 330.8 kB / 0.7739 GB, free: 21.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.3442, allocations: 47.97 kB / 0.7739 GB, free: 21.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.3444, allocations: 102.8 kB / 0.774 GB, free: 21.12 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002257/0.3446, allocations: 313 kB / 0.7743 GB, free: 20.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3446, allocations: 0 / 0.7743 GB, free: 20.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003893/0.345, allocations: 356 kB / 0.7746 GB, free: 20.38 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.3451, allocations: 114.8 kB / 0.7748 GB, free: 20.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3451, allocations: 7.938 kB / 0.7748 GB, free: 20.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.3451, allocations: 4 kB / 0.7748 GB, free: 20.23 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.627e-05/0.3452, allocations: 19.92 kB / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3452, allocations: 0 / 0.7748 GB, free: 20.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.799e-05/0.3453, allocations: 24.19 kB / 0.7748 GB, free: 20.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.3453, allocations: 11.98 kB / 0.7748 GB, free: 20.18 MB / 458.7 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 9.437e-05/0.3454, allocations: 194.4 kB / 0.775 GB, free: 19.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.3455, allocations: 19.81 kB / 0.775 GB, free: 19.95 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.792e-05/0.3455, allocations: 13.41 kB / 0.775 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3455, allocations: 3.938 kB / 0.775 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3455, allocations: 3.984 kB / 0.775 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.3455, allocations: 0 / 0.775 GB, free: 19.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.346, allocations: 0.5798 MB / 0.7756 GB, free: 19.28 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.346, allocations: 3.938 kB / 0.7756 GB, free: 19.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.591e-05/0.3461, allocations: 11.98 kB / 0.7756 GB, free: 19.26 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.3461, allocations: 0 / 0.7756 GB, free: 19.26 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.3461, allocations: 8 kB / 0.7756 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.3461, allocations: 7.984 kB / 0.7756 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3461, allocations: 4.219 kB / 0.7756 GB, free: 19.24 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006393/0.3468, allocations: 1.032 MB / 0.7766 GB, free: 18.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.377e-05/0.3468, allocations: 96.8 kB / 0.7767 GB, free: 18.03 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.3468, allocations: 4 kB / 0.7767 GB, free: 18.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.347, allocations: 11.98 kB / 0.7768 GB, free: 18.01 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.759e-05/0.347, allocations: 7.984 kB / 0.7768 GB, free: 18 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.347, allocations: 16 kB / 0.7768 GB, free: 17.99 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.458e-05/0.3471, allocations: 136.3 kB / 0.7769 GB, free: 17.86 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3471, allocations: 0 / 0.7769 GB, free: 17.86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003502/0.3475, allocations: 32 kB / 0.7769 GB, free: 17.82 MB / 458.7 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.0001605/0.3476, allocations: 132.8 kB / 0.7771 GB, free: 17.69 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.348, allocations: 357.5 kB / 0.7774 GB, free: 17.29 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.348, allocations: 0 / 0.7774 GB, free: 17.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.3482, allocations: 210.7 kB / 0.7776 GB, free: 17.06 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.3485, allocations: 26.78 kB / 0.7776 GB, free: 17.04 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005021/0.349, allocations: 440.7 kB / 0.7781 GB, free: 16.56 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001086/0.3491, allocations: 0.7199 MB / 0.7788 GB, free: 15.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 5.763e-05/0.3492, allocations: 20.53 kB / 0.7788 GB, free: 15.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.3492, allocations: 11.44 kB / 0.7788 GB, free: 15.79 MB / 458.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3492, allocations: 0 / 0.7788 GB, free: 15.79 MB / 458.7 MB Notification: Performance of Templates: time 0.003938/0.3531, allocations: 2.075 MB / 0.7808 GB, free: 13.74 MB / 458.7 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)