Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001479/0.001479, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001709/0.001709, allocations: 193.6 kB / 16.25 MB, free: 6.621 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.389/1.389, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.962/2.962, allocations: 472.6 MB / 0.7448 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 62.42 kB / 0.9115 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3132, allocations: 159.9 MB / 1.068 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003146/0.3164, allocations: 1.671 MB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009604/0.3174, allocations: 0.6038 MB / 1.07 GB, free: 8.543 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.36e-05/0.3175, allocations: 4 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.3177, allocations: 19.88 kB / 1.07 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.3179, allocations: 31.83 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004354/0.3183, allocations: 111.8 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002419/0.3186, allocations: 195.6 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.3187, allocations: 29.09 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.3189, allocations: 87.75 kB / 1.07 GB, free: 8.074 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.319, allocations: 83.72 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.805e-05/0.3191, allocations: 12 kB / 1.07 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.534e-05/0.3192, allocations: 32 kB / 1.07 GB, free: 7.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.568e-05/0.3192, allocations: 23.92 kB / 1.071 GB, free: 7.926 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.874e-05/0.3193, allocations: 79.64 kB / 1.071 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002331/0.3196, allocations: 159.8 kB / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3196, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3196, allocations: 0 / 1.071 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.111e-06/0.3196, allocations: 4 kB / 1.071 GB, free: 7.688 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.0006954/0.3203, allocations: 0.5619 MB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.3204, allocations: 8.031 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.3204, allocations: 20.75 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.3208, allocations: 240 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.799e-05/0.3208, allocations: 12.38 kB / 1.072 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.119e-05/0.3208, allocations: 12.38 kB / 1.072 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.3211, allocations: 113.8 kB / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.3211, allocations: 0 / 1.072 GB, free: 6.613 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.3212, allocations: 11.98 kB / 1.072 GB, free: 6.602 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3212, allocations: 3.984 kB / 1.072 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002114/0.3214, allocations: 71.89 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000735/0.3221, allocations: 412.6 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.3224, allocations: 90.56 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.3225, allocations: 68.83 kB / 1.072 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.3226, allocations: 4.141 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.3229, allocations: 186.7 kB / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.783e-06/0.3229, allocations: 0 / 1.072 GB, free: 5.695 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.000773/0.3237, allocations: 356.7 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3238, allocations: 158.2 kB / 1.073 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.324, allocations: 183.1 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.324, allocations: 29.7 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.3241, allocations: 108.3 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.3241, allocations: 35.69 kB / 1.073 GB, free: 4.766 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-05/0.3242, allocations: 37.7 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3244, allocations: 330.8 kB / 1.074 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001416/0.3245, allocations: 47.97 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.3247, allocations: 110.8 kB / 1.074 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003618/0.3251, allocations: 305 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.3251, allocations: 0 / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005659/0.3257, allocations: 348.2 kB / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.355e-05/0.3258, allocations: 122.8 kB / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3258, allocations: 0 / 1.075 GB, free: 3.336 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.3258, allocations: 7.938 kB / 1.075 GB, free: 3.328 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3259, allocations: 23.92 kB / 1.075 GB, free: 3.305 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.3259, allocations: 4 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.326, allocations: 15.92 kB / 1.075 GB, free: 3.285 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.079e-05/0.3261, allocations: 8 kB / 1.075 GB, free: 3.277 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.0001671/0.3262, allocations: 204 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.61e-05/0.3263, allocations: 19.81 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.924e-05/0.3263, allocations: 17.39 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.3263, allocations: 0 / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3264, allocations: 0 / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.3264, allocations: 0 / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007254/0.3271, allocations: 0.5839 MB / 1.075 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.3271, allocations: 0 / 1.075 GB, free: 2.367 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.49e-05/0.3272, allocations: 11.98 kB / 1.075 GB, free: 2.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.3272, allocations: 7.938 kB / 1.075 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.3272, allocations: 15.98 kB / 1.075 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.3272, allocations: 160 / 1.075 GB, free: 2.332 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3272, allocations: 3.938 kB / 1.075 GB, free: 2.328 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005414/0.3278, allocations: 406.6 kB / 1.076 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.3278, allocations: 88.92 kB / 1.076 GB, free: 1.797 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.036e-05/0.3279, allocations: 8 kB / 1.076 GB, free: 1.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.328, allocations: 11.98 kB / 1.076 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.3281, allocations: 11.94 kB / 1.076 GB, free: 1.766 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.919e-05/0.3281, allocations: 11.98 kB / 1.076 GB, free: 1.754 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001077/0.3282, allocations: 123.2 kB / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3282, allocations: 0 / 1.076 GB, free: 1.633 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003077/0.3285, allocations: 32 kB / 1.076 GB, free: 1.602 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.0002557/0.3288, allocations: 132 kB / 1.076 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005431/0.3294, allocations: 373.3 kB / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3294, allocations: 0 / 1.077 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002652/0.3296, allocations: 203.3 kB / 1.077 GB, free: 0.832 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/0.33, allocations: 34.38 kB / 1.077 GB, free: 0.8047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005848/0.3306, allocations: 319.8 kB / 1.077 GB, free: 476 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002782/0.3309, allocations: 0.708 MB / 1.078 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 7.392e-05/0.3309, allocations: 20.53 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.581e-05/0.331, allocations: 15.44 kB / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.331, allocations: 0 / 1.078 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.005468/0.3365, allocations: 2.062 MB / 1.08 GB, free: 13.66 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)