Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.655/1.655, allocations: 287.5 MB / 302.6 MB, free: 8.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009216/0.0009217, allocations: 180.6 kB / 371.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.4 MB / 0.6298 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008799/0.0008802, allocations: 89.22 kB / 0.7432 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004261, allocations: 14.81 kB / 0.8661 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2488/0.2492, allocations: 115.3 MB / 0.9787 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001936/0.2512, allocations: 1.308 MB / 0.9799 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0007989/0.252, allocations: 0.6255 MB / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.2521, allocations: 0 / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.2523, allocations: 7.938 kB / 0.9806 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000206/0.2525, allocations: 41.06 kB / 0.9806 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003526/0.2529, allocations: 99.83 kB / 0.9807 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.2531, allocations: 151.6 kB / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.2532, allocations: 25.12 kB / 0.9809 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001313/0.2533, allocations: 71.81 kB / 0.9809 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.2535, allocations: 79.72 kB / 0.981 GB, free: 25.78 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.726e-05/0.2535, allocations: 8 kB / 0.981 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.2536, allocations: 12 kB / 0.981 GB, free: 25.76 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.962e-05/0.2537, allocations: 27.92 kB / 0.9811 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.674e-05/0.2537, allocations: 45.64 kB / 0.9811 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001636/0.2539, allocations: 120 kB / 0.9812 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2539, allocations: 0 / 0.9812 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.733e-06/0.2539, allocations: 0 / 0.9812 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2539, allocations: 0 / 0.9812 GB, free: 25.57 MB / 0.6198 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.000556/0.2545, allocations: 0.5251 MB / 0.9817 GB, free: 24.97 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.2545, allocations: 12.03 kB / 0.9817 GB, free: 24.96 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.739e-05/0.2546, allocations: 20.75 kB / 0.9818 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.2548, allocations: 228.2 kB / 0.982 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.2548, allocations: 8.375 kB / 0.982 GB, free: 24.67 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.2549, allocations: 12.38 kB / 0.982 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.2551, allocations: 125.7 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.2551, allocations: 0 / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.562e-05/0.2552, allocations: 0 / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2552, allocations: 8 kB / 0.9821 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.2554, allocations: 75.94 kB / 0.9822 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005265/0.2559, allocations: 424.5 kB / 0.9826 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001595/0.2561, allocations: 94.52 kB / 0.9827 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001343/0.2562, allocations: 80.81 kB / 0.9828 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.2562, allocations: 4 kB / 0.9828 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002475/0.2565, allocations: 186.7 kB / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.2565, allocations: 0 / 0.9829 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.000617/0.2571, allocations: 368.9 kB / 0.9833 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.2572, allocations: 166.2 kB / 0.9835 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.2573, allocations: 178.5 kB / 0.9836 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.2573, allocations: 33.7 kB / 0.9837 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.709e-05/0.2574, allocations: 116.2 kB / 0.9838 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.2574, allocations: 27.64 kB / 0.9838 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.2574, allocations: 4 kB / 0.9838 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.537e-05/0.2575, allocations: 330.8 kB / 0.9841 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.2576, allocations: 47.97 kB / 0.9842 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.2578, allocations: 110.8 kB / 0.9843 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.2581, allocations: 320.9 kB / 0.9846 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.2581, allocations: 0 / 0.9846 GB, free: 21.75 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004134/0.2585, allocations: 352.1 kB / 0.9849 GB, free: 21.37 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.261e-05/0.2586, allocations: 118.8 kB / 0.985 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.2586, allocations: 4 kB / 0.985 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2586, allocations: 0 / 0.985 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.2587, allocations: 24.17 kB / 0.9851 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.2587, allocations: 8 kB / 0.9851 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.786e-05/0.2588, allocations: 15.98 kB / 0.9851 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.2589, allocations: 8 kB / 0.9851 GB, free: 21.17 MB / 0.6198 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 ($PRE.combiTimeTableWriter.str,combiTimeTableWriter.str,$PRE.csvWriter.str,csvWriter.str,$whenCondition2,combiTimeTableWriter.sampleTrigger,$whenCondition1,csvWriter.sampleTrigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.259, allocations: 205 kB / 0.9853 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.557e-05/0.2591, allocations: 15.81 kB / 0.9853 GB, free: 20.94 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.693e-05/0.2591, allocations: 21.39 kB / 0.9853 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.2591, allocations: 4 kB / 0.9853 GB, free: 20.92 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.2591, allocations: 4 kB / 0.9853 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.2591, allocations: 0 / 0.9853 GB, free: 20.91 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005847/0.2597, allocations: 0.5878 MB / 0.9859 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2597, allocations: 0 / 0.9859 GB, free: 20.26 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.248e-05/0.2598, allocations: 23.92 kB / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2598, allocations: 0 / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.2598, allocations: 7.984 kB / 0.9859 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2598, allocations: 4 kB / 0.9859 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2598, allocations: 3.938 kB / 0.9859 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.2603, allocations: 410.6 kB / 0.9863 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.108e-05/0.2603, allocations: 92.86 kB / 0.9864 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.351e-05/0.2604, allocations: 8 kB / 0.9864 GB, free: 19.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2605, allocations: 11.98 kB / 0.9864 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.2606, allocations: 7.938 kB / 0.9864 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.2606, allocations: 15.98 kB / 0.9865 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.215e-05/0.2607, allocations: 124.3 kB / 0.9866 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2607, allocations: 0 / 0.9866 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002625/0.2609, allocations: 43.98 kB / 0.9866 GB, free: 19.47 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002154/0.2612, allocations: 128.1 kB / 0.9867 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004249/0.2616, allocations: 373.4 kB / 0.9871 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2616, allocations: 0 / 0.9871 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000218/0.2618, allocations: 202.8 kB / 0.9873 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.2621, allocations: 33.59 kB / 0.9873 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000483/0.2626, allocations: 314.7 kB / 0.9876 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001828/0.2628, allocations: 0.7083 MB / 0.9883 GB, free: 17.61 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.916e-05/0.2629, allocations: 20.53 kB / 0.9883 GB, free: 17.59 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.2629, allocations: 11.44 kB / 0.9883 GB, free: 17.58 MB / 0.6198 GB Notification: Performance of SimCode: time 2.4e-07/0.2629, allocations: 0 / 0.9883 GB, free: 17.58 MB / 0.6198 GB Notification: Performance of Templates: time 0.004264/0.2672, allocations: 1.955 MB / 0.9903 GB, free: 15.64 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)