Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.376/1.376, allocations: 252 MB / 267.9 MB, free: 10.91 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 188.3 kB / 327.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.4 MB / 0.5785 GB, free: 20.16 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 79.81 kB / 0.6831 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003683, allocations: 14.44 kB / 0.7974 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1688/0.1692, allocations: 106.3 MB / 0.9012 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.147/0.3162, allocations: 133.9 MB / 1.032 GB, free: 9.598 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002093/0.3165, allocations: 79.94 kB / 1.032 GB, free: 9.52 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01316/0.3296, allocations: 5.035 MB / 1.037 GB, free: 4.449 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.405e-06/0.3297, allocations: 0 / 1.037 GB, free: 4.449 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.121e-05/0.3297, allocations: 4 kB / 1.037 GB, free: 4.445 MB / 0.6823 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.0007044/0.3304, allocations: 0.5445 MB / 1.037 GB, free: 3.824 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3305, allocations: 8.031 kB / 1.038 GB, free: 3.816 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.032e-05/0.3305, allocations: 16.84 kB / 1.038 GB, free: 3.801 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003204/0.3309, allocations: 232.2 kB / 1.038 GB, free: 3.535 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.3309, allocations: 16.38 kB / 1.038 GB, free: 3.52 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.3309, allocations: 12.38 kB / 1.038 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002976/0.3312, allocations: 118.1 kB / 1.038 GB, free: 3.387 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3313, allocations: 7.875 kB / 1.038 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.3313, allocations: 7.938 kB / 1.038 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.3313, allocations: 0 / 1.038 GB, free: 3.371 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.3315, allocations: 83.94 kB / 1.038 GB, free: 3.289 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006901/0.3322, allocations: 420.6 kB / 1.038 GB, free: 2.828 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.3324, allocations: 94.53 kB / 1.038 GB, free: 2.727 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.3326, allocations: 72.81 kB / 1.039 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.3326, allocations: 8 kB / 1.039 GB, free: 2.645 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002743/0.3329, allocations: 182.9 kB / 1.039 GB, free: 2.441 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.3329, allocations: 0 / 1.039 GB, free: 2.441 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0007144/0.3336, allocations: 368.8 kB / 1.039 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.208e-05/0.3337, allocations: 162.2 kB / 1.039 GB, free: 1.867 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.3339, allocations: 179.2 kB / 1.039 GB, free: 1.68 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.3339, allocations: 29.7 kB / 1.039 GB, free: 1.645 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.948e-05/0.334, allocations: 112.3 kB / 1.04 GB, free: 1.527 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.898e-05/0.3341, allocations: 23.7 kB / 1.04 GB, free: 1.504 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.3341, allocations: 4 kB / 1.04 GB, free: 1.5 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3342, allocations: 326.8 kB / 1.04 GB, free: 1.172 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.3344, allocations: 63.89 kB / 1.04 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.3345, allocations: 109.2 kB / 1.04 GB, free: 0.9805 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003455/0.3349, allocations: 324.9 kB / 1.04 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3349, allocations: 0 / 1.04 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005063/0.3354, allocations: 352.2 kB / 1.041 GB, free: 232 kB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.883e-05/0.3355, allocations: 114.8 kB / 1.041 GB, free: 92 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3355, allocations: 7.984 kB / 1.041 GB, free: 84 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.3355, allocations: 4 kB / 1.041 GB, free: 80 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.3356, allocations: 23.91 kB / 1.041 GB, free: 56 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.547e-06/0.3357, allocations: 4 kB / 1.041 GB, free: 52 kB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.767e-05/0.3358, allocations: 16.06 kB / 1.041 GB, free: 36 kB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.3358, allocations: 12.28 kB / 1.041 GB, free: 24 kB / 0.6823 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.0001741/0.336, allocations: 198.9 kB / 1.041 GB, free: 15.81 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.336, allocations: 19.8 kB / 1.041 GB, free: 15.79 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.721e-05/0.3361, allocations: 25.28 kB / 1.041 GB, free: 15.77 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.3361, allocations: 4 kB / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3361, allocations: 0 / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3361, allocations: 0 / 1.041 GB, free: 15.76 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007414/0.3368, allocations: 0.5915 MB / 1.042 GB, free: 15.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3368, allocations: 4 kB / 1.042 GB, free: 15.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.157e-05/0.3369, allocations: 11.98 kB / 1.042 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3369, allocations: 0 / 1.042 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.3369, allocations: 8 kB / 1.042 GB, free: 15.08 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.337, allocations: 4 kB / 1.042 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.337, allocations: 0 / 1.042 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000515/0.3375, allocations: 414.5 kB / 1.042 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.3375, allocations: 96.91 kB / 1.042 GB, free: 14.53 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.157e-05/0.3376, allocations: 4 kB / 1.042 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.3377, allocations: 12 kB / 1.042 GB, free: 14.51 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.3377, allocations: 11.98 kB / 1.042 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.3378, allocations: 15.92 kB / 1.042 GB, free: 14.48 MB / 0.698 GB Notification: Performance of sorting global known variables: time 9.581e-05/0.3379, allocations: 132.3 kB / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of sort global known variables: time 3e-07/0.3379, allocations: 0 / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002926/0.3382, allocations: 32 kB / 1.042 GB, free: 14.32 MB / 0.698 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.0002325/0.3384, allocations: 147.5 kB / 1.043 GB, free: 14.18 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004739/0.3389, allocations: 369.8 kB / 1.043 GB, free: 13.77 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3389, allocations: 0 / 1.043 GB, free: 13.77 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002313/0.3392, allocations: 210.7 kB / 1.043 GB, free: 13.54 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.3395, allocations: 17.03 kB / 1.043 GB, free: 13.52 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005864/0.34, allocations: 314 kB / 1.043 GB, free: 13.18 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.3404, allocations: 0.7082 MB / 1.044 GB, free: 12.45 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.618e-05/0.3404, allocations: 20.55 kB / 1.044 GB, free: 12.43 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.3405, allocations: 19.42 kB / 1.044 GB, free: 12.41 MB / 0.698 GB Notification: Performance of SimCode: time 3.6e-07/0.3405, allocations: 0 / 1.044 GB, free: 12.41 MB / 0.698 GB Notification: Performance of Templates: time 0.004716/0.3452, allocations: 1.92 MB / 1.046 GB, free: 10.52 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)