Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001151/0.001151, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001269/0.001269, allocations: 192.6 kB / 16.13 MB, free: 6.66 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.404/1.404, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.886/2.886, allocations: 472.6 MB / 0.7447 GB, free: 4.934 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 70.12 kB / 0.9114 GB, free: 33.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3295/0.3307, allocations: 159.9 MB / 1.068 GB, free: 10.9 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.004798/0.3356, allocations: 1.677 MB / 1.069 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001212/0.3369, allocations: 0.639 MB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.337, allocations: 0 / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.3372, allocations: 19.8 kB / 1.07 GB, free: 8.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002258/0.3375, allocations: 43.2 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004939/0.338, allocations: 99.83 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002272/0.3382, allocations: 159.6 kB / 1.07 GB, free: 8.258 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001376/0.3383, allocations: 29.11 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.3385, allocations: 75.75 kB / 1.07 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.3387, allocations: 83.72 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.718e-05/0.3387, allocations: 4 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.811e-05/0.3388, allocations: 20 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.911e-05/0.3389, allocations: 31.91 kB / 1.07 GB, free: 8.02 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.339, allocations: 67.64 kB / 1.07 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002494/0.3393, allocations: 159.8 kB / 1.071 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3393, allocations: 4 kB / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.62e-07/0.3393, allocations: 0 / 1.071 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.496e-06/0.3393, allocations: 0 / 1.071 GB, free: 7.793 MB / 0.8262 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.0007419/0.3401, allocations: 0.5602 MB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3401, allocations: 8.031 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.167e-05/0.3402, allocations: 28.67 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.3405, allocations: 228.2 kB / 1.071 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.3405, allocations: 8.375 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.354e-05/0.3405, allocations: 20.31 kB / 1.071 GB, free: 6.836 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.3408, allocations: 121.7 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3409, allocations: 0 / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.088e-05/0.3409, allocations: 4 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.3409, allocations: 0 / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.3411, allocations: 67.95 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006874/0.3418, allocations: 416.6 kB / 1.072 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.342, allocations: 86.53 kB / 1.072 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3422, allocations: 76.81 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.3422, allocations: 0 / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002794/0.3425, allocations: 182.9 kB / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3425, allocations: 0 / 1.072 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0007589/0.3433, allocations: 352.8 kB / 1.073 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.435e-05/0.3434, allocations: 166.2 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.3435, allocations: 179.1 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.3436, allocations: 37.7 kB / 1.073 GB, free: 5.02 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.3436, allocations: 104.3 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.425e-05/0.3437, allocations: 35.62 kB / 1.073 GB, free: 4.875 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.789e-05/0.3438, allocations: 37.7 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000119/0.3439, allocations: 326.8 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.344, allocations: 51.95 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001689/0.3442, allocations: 106.8 kB / 1.074 GB, free: 4.324 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003349/0.3446, allocations: 308.9 kB / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3446, allocations: 0 / 1.074 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005044/0.3451, allocations: 344.2 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 8.617e-05/0.3452, allocations: 127 kB / 1.074 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3452, allocations: 0 / 1.074 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.3452, allocations: 4 kB / 1.074 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.3453, allocations: 23.86 kB / 1.074 GB, free: 3.418 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3453, allocations: 4 kB / 1.074 GB, free: 3.414 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.764e-05/0.3454, allocations: 15.92 kB / 1.074 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.291e-05/0.3455, allocations: 12 kB / 1.074 GB, free: 3.387 MB / 0.8262 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 (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.0001599/0.3456, allocations: 204.6 kB / 1.075 GB, free: 3.168 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.3457, allocations: 15.81 kB / 1.075 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.049e-05/0.3457, allocations: 21.39 kB / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.3457, allocations: 0 / 1.075 GB, free: 3.129 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.3457, allocations: 4 kB / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.3458, allocations: 0 / 1.075 GB, free: 3.125 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000716/0.3465, allocations: 0.5914 MB / 1.075 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3465, allocations: 0 / 1.075 GB, free: 2.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.431e-05/0.3466, allocations: 11.98 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3466, allocations: 0 / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.3466, allocations: 11.98 kB / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3466, allocations: 0 / 1.075 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3466, allocations: 3.938 kB / 1.075 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005594/0.3472, allocations: 406.6 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.3472, allocations: 88.92 kB / 1.076 GB, free: 1.906 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.3473, allocations: 4 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.3474, allocations: 11.98 kB / 1.076 GB, free: 1.891 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.925e-05/0.3475, allocations: 7.938 kB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.3475, allocations: 11.98 kB / 1.076 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001013/0.3476, allocations: 127.2 kB / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3476, allocations: 0 / 1.076 GB, free: 1.746 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003027/0.3479, allocations: 35.98 kB / 1.076 GB, free: 1.711 MB / 0.8262 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) * 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.0002771/0.3482, allocations: 132.3 kB / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005146/0.3487, allocations: 361.8 kB / 1.076 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3487, allocations: 4.125 kB / 1.076 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002577/0.349, allocations: 202.8 kB / 1.077 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.3493, allocations: 19.98 kB / 1.077 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000627/0.35, allocations: 317.7 kB / 1.077 GB, free: 0.5898 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.3503, allocations: 0.7121 MB / 1.078 GB, free: 15.85 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.795e-05/0.3503, allocations: 20.53 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.55e-05/0.3504, allocations: 19.44 kB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of SimCode: time 4.91e-07/0.3504, allocations: 0 / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of Templates: time 0.005331/0.3557, allocations: 1.992 MB / 1.08 GB, free: 13.85 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)