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.001058/0.001059, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008586/0.008586, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.378/1.378, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.816/2.816, allocations: 473.4 MB / 0.7469 GB, free: 6.121 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003839/0.0003839, allocations: 12.59 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3381, allocations: 162.2 MB / 1.074 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.0021/0.3402, allocations: 1.332 MB / 1.075 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.3413, allocations: 0.6273 MB / 1.076 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.914e-05/0.3414, allocations: 0 / 1.076 GB, free: 5.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001756/0.3416, allocations: 15.92 kB / 1.076 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.3418, allocations: 35.83 kB / 1.076 GB, free: 5.562 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004242/0.3422, allocations: 103.8 kB / 1.076 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001929/0.3424, allocations: 163.5 kB / 1.076 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001282/0.3425, allocations: 25.11 kB / 1.076 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001402/0.3427, allocations: 71.81 kB / 1.076 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001293/0.3428, allocations: 79.66 kB / 1.077 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.374e-05/0.3429, allocations: 8 kB / 1.077 GB, free: 5.121 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.61e-05/0.3429, allocations: 20 kB / 1.077 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.496e-05/0.343, allocations: 27.91 kB / 1.077 GB, free: 5.074 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.3431, allocations: 89.36 kB / 1.077 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.3434, allocations: 159.8 kB / 1.077 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.3434, allocations: 4 kB / 1.077 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.383e-06/0.3434, allocations: 0 / 1.077 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.3434, allocations: 0 / 1.077 GB, free: 4.82 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.0006983/0.3441, allocations: 0.5252 MB / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.3442, allocations: 8.031 kB / 1.077 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.702e-05/0.3442, allocations: 20.75 kB / 1.077 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.3445, allocations: 232.2 kB / 1.078 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.3446, allocations: 16.38 kB / 1.078 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.3446, allocations: 12.38 kB / 1.078 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000274/0.3449, allocations: 121.7 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.3449, allocations: 0 / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.002e-05/0.3449, allocations: 4 kB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.3449, allocations: 0 / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.3452, allocations: 83.94 kB / 1.078 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007041/0.3459, allocations: 420.5 kB / 1.078 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.3461, allocations: 90.53 kB / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.3463, allocations: 80.97 kB / 1.078 GB, free: 3.051 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.3463, allocations: 3.984 kB / 1.078 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002689/0.3466, allocations: 190.7 kB / 1.079 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.3466, allocations: 0 / 1.079 GB, free: 2.836 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0007383/0.3473, allocations: 364.7 kB / 1.079 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/0.3475, allocations: 166.2 kB / 1.079 GB, free: 2.262 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.3477, allocations: 179.1 kB / 1.079 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/0.3477, allocations: 29.7 kB / 1.079 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.3478, allocations: 120.2 kB / 1.079 GB, free: 1.914 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.3478, allocations: 19.72 kB / 1.079 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.089e-05/0.3479, allocations: 25.7 kB / 1.079 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.348, allocations: 326.8 kB / 1.08 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.3481, allocations: 55.97 kB / 1.08 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.3484, allocations: 102.8 kB / 1.08 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/0.3488, allocations: 324.9 kB / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.3488, allocations: 4 kB / 1.08 GB, free: 0.9727 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005401/0.3494, allocations: 356.2 kB / 1.081 GB, free: 0.5938 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.333e-05/0.3494, allocations: 118.8 kB / 1.081 GB, free: 464 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3495, allocations: 0 / 1.081 GB, free: 464 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.3495, allocations: 4 kB / 1.081 GB, free: 460 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.3496, allocations: 19.98 kB / 1.081 GB, free: 440 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3496, allocations: 7.938 kB / 1.081 GB, free: 432 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.3497, allocations: 27.98 kB / 1.081 GB, free: 404 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.3498, allocations: 8 kB / 1.081 GB, free: 396 kB / 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.0001641/0.3499, allocations: 197.2 kB / 1.081 GB, free: 176 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.161e-05/0.35, allocations: 15.81 kB / 1.081 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.684e-05/0.35, allocations: 17.39 kB / 1.081 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.35, allocations: 0 / 1.081 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.35, allocations: 4 kB / 1.081 GB, free: 136 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.35, allocations: 0 / 1.081 GB, free: 136 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007431/0.3508, allocations: 0.5917 MB / 1.082 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.3508, allocations: 0 / 1.082 GB, free: 15.47 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.617e-05/0.3509, allocations: 15.98 kB / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3509, allocations: 7.922 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.3509, allocations: 11.98 kB / 1.082 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3509, allocations: 4 kB / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.3509, allocations: 7.938 kB / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005734/0.3515, allocations: 410.6 kB / 1.082 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.3516, allocations: 88.92 kB / 1.082 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.3516, allocations: 8 kB / 1.082 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.3518, allocations: 15.98 kB / 1.082 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.136e-05/0.3518, allocations: 7.922 kB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.3518, allocations: 8 kB / 1.082 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001209/0.352, allocations: 127.2 kB / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.61e-07/0.352, allocations: 0 / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002983/0.3523, allocations: 39.98 kB / 1.082 GB, free: 14.69 MB / 0.8419 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.0002966/0.3526, allocations: 127.2 kB / 1.082 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005323/0.3531, allocations: 369.7 kB / 1.083 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.3531, allocations: 0 / 1.083 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.3534, allocations: 214.6 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.3537, allocations: 23.92 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006453/0.3544, allocations: 322.2 kB / 1.083 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3548, allocations: 0.7043 MB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.132e-05/0.3548, allocations: 24.53 kB / 1.084 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.488e-05/0.3549, allocations: 19.44 kB / 1.084 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3549, allocations: 0 / 1.084 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of Templates: time 0.005227/0.3601, allocations: 1.989 MB / 1.086 GB, free: 10.82 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)