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.001173/0.001173, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.008121/0.008121, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.372/1.372, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.94/2.94, allocations: 473.4 MB / 0.7469 GB, free: 6.129 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003817, allocations: 12.97 kB / 0.9158 GB, free: 33.15 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3129, allocations: 162.2 MB / 1.074 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001816/0.3147, allocations: 1.332 MB / 1.075 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009236/0.3157, allocations: 0.6196 MB / 1.076 GB, free: 5.625 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.033e-05/0.3157, allocations: 7.938 kB / 1.076 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3159, allocations: 19.91 kB / 1.076 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001796/0.3161, allocations: 27.84 kB / 1.076 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004164/0.3165, allocations: 107.8 kB / 1.076 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.3167, allocations: 163.6 kB / 1.076 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.3168, allocations: 29.09 kB / 1.076 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001335/0.317, allocations: 75.75 kB / 1.076 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001192/0.3171, allocations: 75.72 kB / 1.077 GB, free: 5.129 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.963e-05/0.3171, allocations: 4 kB / 1.077 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.22e-05/0.3172, allocations: 24 kB / 1.077 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.186e-05/0.3173, allocations: 31.84 kB / 1.077 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.487e-05/0.3174, allocations: 93.3 kB / 1.077 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.3176, allocations: 155.8 kB / 1.077 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.3176, allocations: 4 kB / 1.077 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.242e-06/0.3176, allocations: 0 / 1.077 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.3176, allocations: 0 / 1.077 GB, free: 4.816 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.0006004/0.3182, allocations: 0.5213 MB / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.3183, allocations: 12.03 kB / 1.077 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.357e-05/0.3183, allocations: 24.75 kB / 1.077 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.3186, allocations: 228.2 kB / 1.078 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.3186, allocations: 8.375 kB / 1.078 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.3187, allocations: 12.38 kB / 1.078 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.3189, allocations: 125.7 kB / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.3189, allocations: 0 / 1.078 GB, free: 3.777 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.742e-05/0.319, allocations: 4 kB / 1.078 GB, free: 3.773 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.319, allocations: 8 kB / 1.078 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3192, allocations: 67.95 kB / 1.078 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005966/0.3198, allocations: 432.5 kB / 1.078 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.32, allocations: 86.53 kB / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001577/0.3201, allocations: 76.81 kB / 1.078 GB, free: 3.055 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.155e-05/0.3202, allocations: 8 kB / 1.078 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.3205, allocations: 182.9 kB / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.553e-06/0.3205, allocations: 0 / 1.079 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0007039/0.3212, allocations: 364.8 kB / 1.079 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/0.3213, allocations: 170.1 kB / 1.079 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.3214, allocations: 183.4 kB / 1.079 GB, free: 2.074 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.816e-05/0.3215, allocations: 29.7 kB / 1.079 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.3215, allocations: 112.3 kB / 1.079 GB, free: 1.922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.3216, allocations: 27.64 kB / 1.079 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.3216, allocations: 25.7 kB / 1.079 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.3217, allocations: 330.8 kB / 1.08 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001356/0.3219, allocations: 51.97 kB / 1.08 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001578/0.322, allocations: 106.8 kB / 1.08 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003397/0.3224, allocations: 320.9 kB / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.3224, allocations: 0 / 1.08 GB, free: 0.9766 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005259/0.3229, allocations: 356 kB / 1.081 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.009e-05/0.323, allocations: 122.8 kB / 1.081 GB, free: 464 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.323, allocations: 0 / 1.081 GB, free: 464 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.323, allocations: 4 kB / 1.081 GB, free: 460 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.3232, allocations: 20.17 kB / 1.081 GB, free: 440 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.3232, allocations: 8 kB / 1.081 GB, free: 432 kB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.3233, allocations: 23.92 kB / 1.081 GB, free: 408 kB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.3233, allocations: 8 kB / 1.081 GB, free: 400 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.0001497/0.3235, allocations: 201.8 kB / 1.081 GB, free: 176 kB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.722e-05/0.3235, allocations: 15.81 kB / 1.081 GB, free: 160 kB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.603e-05/0.3235, allocations: 17.39 kB / 1.081 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3236, allocations: 0 / 1.081 GB, free: 140 kB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.3236, allocations: 4 kB / 1.081 GB, free: 136 kB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3236, allocations: 3.984 kB / 1.081 GB, free: 132 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007296/0.3243, allocations: 0.5916 MB / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3243, allocations: 0 / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.805e-05/0.3244, allocations: 15.98 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3244, allocations: 4 kB / 1.082 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3244, allocations: 11.98 kB / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3244, allocations: 0 / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3244, allocations: 3.938 kB / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.325, allocations: 414.6 kB / 1.082 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.325, allocations: 92.92 kB / 1.082 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.204e-05/0.3251, allocations: 7.938 kB / 1.082 GB, free: 14.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3252, allocations: 11.98 kB / 1.082 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.71e-05/0.3253, allocations: 11.94 kB / 1.082 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-05/0.3253, allocations: 11.98 kB / 1.082 GB, free: 14.85 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.967e-05/0.3254, allocations: 119.2 kB / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3254, allocations: 0 / 1.082 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002869/0.3257, allocations: 43.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.0002167/0.3259, allocations: 127.8 kB / 1.082 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004736/0.3264, allocations: 373.4 kB / 1.083 GB, free: 14.15 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3264, allocations: 3.938 kB / 1.083 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002318/0.3266, allocations: 206.7 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.000308/0.327, allocations: 19.98 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005505/0.3275, allocations: 326.5 kB / 1.083 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.3278, allocations: 0.7083 MB / 1.084 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.217e-05/0.3278, allocations: 20.53 kB / 1.084 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.141e-05/0.3279, allocations: 11.44 kB / 1.084 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.3279, allocations: 0 / 1.084 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of Templates: time 0.004903/0.3328, allocations: 1.996 MB / 1.086 GB, free: 10.82 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)