Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.516/1.516, allocations: 292.3 MB / 308.1 MB, free: 4.281 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.001198/0.001198, allocations: 184.2 kB / 376.9 MB, free: 1.828 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.389/1.389, allocations: 205 MB / 0.6353 GB, free: 9.805 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008721/0.0008719, allocations: 93.67 kB / 0.748 GB, free: 61.16 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0009579/0.0009579, allocations: 51.92 kB / 0.8704 GB, free: 13.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.224, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.003118/0.2271, allocations: 1.67 MB / 0.9838 GB, free: 8.719 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001046/0.2282, allocations: 0.6673 MB / 0.9845 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.313e-05/0.2283, allocations: 8 kB / 0.9845 GB, free: 8.035 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001467/0.2285, allocations: 15.88 kB / 0.9845 GB, free: 8.02 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.2287, allocations: 35.83 kB / 0.9846 GB, free: 7.984 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.2291, allocations: 107.8 kB / 0.9847 GB, free: 7.879 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001871/0.2293, allocations: 155.7 kB / 0.9848 GB, free: 7.727 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.2294, allocations: 29.09 kB / 0.9848 GB, free: 7.699 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001811/0.2296, allocations: 79.7 kB / 0.9849 GB, free: 7.621 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.2298, allocations: 79.72 kB / 0.985 GB, free: 7.543 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.843e-05/0.2298, allocations: 8 kB / 0.985 GB, free: 7.535 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 6.906e-05/0.2299, allocations: 19.98 kB / 0.985 GB, free: 7.516 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.119e-05/0.23, allocations: 23.92 kB / 0.985 GB, free: 7.492 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.23, allocations: 75.58 kB / 0.9851 GB, free: 7.418 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.2303, allocations: 159.7 kB / 0.9853 GB, free: 7.262 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.2303, allocations: 4 kB / 0.9853 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2303, allocations: 0 / 0.9853 GB, free: 7.258 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.2303, allocations: 4 kB / 0.9853 GB, free: 7.254 MB / 0.7136 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.0006965/0.231, allocations: 0.5523 MB / 0.9858 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.231, allocations: 8.031 kB / 0.9858 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/0.2311, allocations: 16.84 kB / 0.9858 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.2314, allocations: 240.2 kB / 0.9861 GB, free: 6.332 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.2314, allocations: 4.375 kB / 0.9861 GB, free: 6.328 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.2315, allocations: 16.38 kB / 0.9861 GB, free: 6.312 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.2317, allocations: 121.7 kB / 0.9862 GB, free: 6.188 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.2318, allocations: 3.984 kB / 0.9862 GB, free: 6.184 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.501e-05/0.2318, allocations: 4 kB / 0.9862 GB, free: 6.18 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2318, allocations: 4 kB / 0.9862 GB, free: 6.176 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000183/0.232, allocations: 67.88 kB / 0.9863 GB, free: 6.109 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006318/0.2326, allocations: 420.6 kB / 0.9867 GB, free: 5.648 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001695/0.2328, allocations: 86.53 kB / 0.9868 GB, free: 5.555 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.233, allocations: 72.81 kB / 0.9868 GB, free: 5.48 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.233, allocations: 4 kB / 0.9868 GB, free: 5.477 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002496/0.2332, allocations: 178.6 kB / 0.987 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=10): time 3.877e-06/0.2333, allocations: 96 / 0.987 GB, free: 5.277 MB / 0.7136 GB Notification: Performance of matching and sorting (n=10): time 0.0006559/0.2339, allocations: 352.9 kB / 0.9873 GB, free: 4.914 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.788e-05/0.234, allocations: 166.2 kB / 0.9875 GB, free: 4.715 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.2342, allocations: 186.5 kB / 0.9877 GB, free: 4.52 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.117e-05/0.2342, allocations: 33.92 kB / 0.9877 GB, free: 4.48 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.2343, allocations: 112.4 kB / 0.9878 GB, free: 4.367 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.2343, allocations: 23.66 kB / 0.9878 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.865e-05/0.2344, allocations: 41.64 kB / 0.9879 GB, free: 4.297 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.2345, allocations: 334.8 kB / 0.9882 GB, free: 3.961 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.2347, allocations: 47.97 kB / 0.9882 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.2348, allocations: 106.9 kB / 0.9883 GB, free: 3.785 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003125/0.2352, allocations: 312.9 kB / 0.9886 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2352, allocations: 0 / 0.9886 GB, free: 3.418 MB / 0.7136 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004938/0.2357, allocations: 348.3 kB / 0.989 GB, free: 3.047 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 7.22e-05/0.2358, allocations: 122.8 kB / 0.9891 GB, free: 2.902 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.2358, allocations: 7.984 kB / 0.9891 GB, free: 2.895 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.2358, allocations: 4 kB / 0.9891 GB, free: 2.891 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001022/0.2359, allocations: 19.92 kB / 0.9891 GB, free: 2.871 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2359, allocations: 4 kB / 0.9891 GB, free: 2.867 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.565e-05/0.236, allocations: 15.91 kB / 0.9891 GB, free: 2.852 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.912e-05/0.236, allocations: 8 kB / 0.9891 GB, free: 2.844 MB / 0.7136 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.0001489/0.2362, allocations: 208.8 kB / 0.9893 GB, free: 2.621 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.2362, allocations: 15.91 kB / 0.9894 GB, free: 2.605 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.304e-05/0.2363, allocations: 13.41 kB / 0.9894 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.2363, allocations: 0 / 0.9894 GB, free: 2.59 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.2363, allocations: 4 kB / 0.9894 GB, free: 2.586 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2363, allocations: 3.984 kB / 0.9894 GB, free: 2.582 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007179/0.237, allocations: 0.5874 MB / 0.9899 GB, free: 1.926 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.237, allocations: 0 / 0.9899 GB, free: 1.926 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.257e-05/0.2371, allocations: 15.98 kB / 0.99 GB, free: 1.91 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.99e-06/0.2371, allocations: 4 kB / 0.99 GB, free: 1.906 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.2371, allocations: 4 kB / 0.99 GB, free: 1.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2371, allocations: 0 / 0.99 GB, free: 1.902 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.2371, allocations: 3.938 kB / 0.99 GB, free: 1.898 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009846/0.2381, allocations: 1.039 MB / 0.991 GB, free: 0.7891 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.415e-05/0.2382, allocations: 88.95 kB / 0.9911 GB, free: 0.6836 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.2382, allocations: 4 kB / 0.9911 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.2384, allocations: 19.91 kB / 0.9911 GB, free: 0.6602 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.317e-05/0.2384, allocations: 11.98 kB / 0.9911 GB, free: 0.6484 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.2384, allocations: 7.984 kB / 0.9911 GB, free: 0.6406 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001268/0.2386, allocations: 132.3 kB / 0.9912 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2386, allocations: 0 / 0.9912 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003959/0.239, allocations: 47.89 kB / 0.9913 GB, free: 476 kB / 0.7136 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.0002345/0.2392, allocations: 112.2 kB / 0.9914 GB, free: 360 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004873/0.2397, allocations: 369.7 kB / 0.9917 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2397, allocations: 0 / 0.9917 GB, free: 15.94 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002235/0.24, allocations: 202.8 kB / 0.9919 GB, free: 15.72 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.2403, allocations: 23.92 kB / 0.992 GB, free: 15.7 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006789/0.2409, allocations: 456.7 kB / 0.9924 GB, free: 15.21 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.2413, allocations: 0.7121 MB / 0.9931 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.85e-05/0.2413, allocations: 20.55 kB / 0.9931 GB, free: 14.46 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.553e-05/0.2414, allocations: 19.42 kB / 0.9931 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of SimCode: time 2.31e-07/0.2414, allocations: 0 / 0.9931 GB, free: 14.44 MB / 0.7292 GB Notification: Performance of Templates: time 0.004908/0.2463, allocations: 2.062 MB / 0.9951 GB, free: 12.39 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)