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 2.626/2.626, allocations: 287.5 MB / 302.4 MB, free: 8.258 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.001297/0.001297, allocations: 174.7 kB / 371 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 2.135/2.135, allocations: 205.4 MB / 0.6297 GB, free: 10.56 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.0008721/0.0008721, allocations: 91.12 kB / 0.743 GB, free: 6.559 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004931/0.0004935, allocations: 11.94 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2205, allocations: 115.3 MB / 0.9784 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002021/0.2225, allocations: 1.309 MB / 0.9796 GB, free: 27 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001149/0.2237, allocations: 0.6169 MB / 0.9802 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.443e-05/0.2238, allocations: 4 kB / 0.9802 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.224, allocations: 15.86 kB / 0.9803 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.2242, allocations: 35.83 kB / 0.9803 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000548/0.2248, allocations: 95.89 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000181/0.225, allocations: 147.6 kB / 0.9805 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.2251, allocations: 17.12 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.2253, allocations: 79.75 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001468/0.2254, allocations: 75.72 kB / 0.9807 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.2255, allocations: 12 kB / 0.9807 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.328e-05/0.2256, allocations: 16 kB / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.382e-05/0.2257, allocations: 23.91 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.843e-05/0.2257, allocations: 53.64 kB / 0.9808 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001775/0.2259, allocations: 116 kB / 0.9809 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.226, allocations: 0 / 0.9809 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.114e-06/0.226, allocations: 0 / 0.9809 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 9.468e-06/0.226, allocations: 0 / 0.9809 GB, free: 25.69 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.0006655/0.2267, allocations: 0.5211 MB / 0.9814 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.2267, allocations: 12.02 kB / 0.9814 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.686e-05/0.2268, allocations: 23.8 kB / 0.9814 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003073/0.2271, allocations: 230.8 kB / 0.9817 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.2271, allocations: 4 kB / 0.9817 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.2272, allocations: 16 kB / 0.9817 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003554/0.2276, allocations: 113.5 kB / 0.9818 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2276, allocations: 4 kB / 0.9818 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.2276, allocations: 11.94 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.2276, allocations: 0 / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003104/0.2279, allocations: 71.95 kB / 0.9819 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000783/0.2287, allocations: 432.5 kB / 0.9823 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002715/0.229, allocations: 90.53 kB / 0.9824 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.2293, allocations: 80.81 kB / 0.9824 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.121e-05/0.2293, allocations: 4 kB / 0.9824 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003655/0.2297, allocations: 178.8 kB / 0.9826 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.514e-06/0.2297, allocations: 0 / 0.9826 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.001058/0.2308, allocations: 372.8 kB / 0.983 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/0.2309, allocations: 170.2 kB / 0.9831 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001868/0.2311, allocations: 166.6 kB / 0.9833 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.2311, allocations: 37.64 kB / 0.9833 GB, free: 22.91 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.732e-05/0.2312, allocations: 116.3 kB / 0.9834 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.2313, allocations: 27.64 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.686e-05/0.2313, allocations: 4 kB / 0.9835 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.61e-05/0.2314, allocations: 326.8 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.2316, allocations: 55.95 kB / 0.9838 GB, free: 22.38 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.2318, allocations: 107.6 kB / 0.9839 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002756/0.2321, allocations: 178.7 kB / 0.9841 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2322, allocations: 0 / 0.9841 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007637/0.2329, allocations: 352.2 kB / 0.9844 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.393e-05/0.233, allocations: 118.8 kB / 0.9846 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.233, allocations: 0 / 0.9846 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.2331, allocations: 4 kB / 0.9846 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.2332, allocations: 31.88 kB / 0.9846 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.056e-06/0.2333, allocations: 0 / 0.9846 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000161/0.2334, allocations: 16 kB / 0.9846 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.841e-05/0.2335, allocations: 8.094 kB / 0.9846 GB, free: 21.48 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.0001732/0.2337, allocations: 214.4 kB / 0.9848 GB, free: 21.25 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.898e-05/0.2337, allocations: 16.09 kB / 0.9848 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.2338, allocations: 13.41 kB / 0.9849 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.2338, allocations: 0 / 0.9849 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.2338, allocations: 7.891 kB / 0.9849 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2338, allocations: 3.984 kB / 0.9849 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009745/0.2348, allocations: 0.5915 MB / 0.9854 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2348, allocations: 0 / 0.9854 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.2349, allocations: 11.98 kB / 0.9855 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.235, allocations: 4 kB / 0.9855 GB, free: 20.54 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.235, allocations: 8 kB / 0.9855 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.235, allocations: 3.953 kB / 0.9855 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.235, allocations: 4 kB / 0.9855 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007626/0.2358, allocations: 410.6 kB / 0.9859 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.425e-05/0.2358, allocations: 88.92 kB / 0.9859 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/0.2359, allocations: 7.938 kB / 0.986 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.2361, allocations: 16 kB / 0.986 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.2362, allocations: 11.94 kB / 0.986 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.2362, allocations: 7.984 kB / 0.986 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001164/0.2363, allocations: 132.3 kB / 0.9861 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2363, allocations: 0 / 0.9861 GB, free: 19.81 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003899/0.2367, allocations: 36 kB / 0.9861 GB, free: 19.78 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.0002501/0.237, allocations: 127.6 kB / 0.9863 GB, free: 19.65 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006352/0.2377, allocations: 365.8 kB / 0.9866 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2377, allocations: 4.125 kB / 0.9866 GB, free: 19.24 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003119/0.238, allocations: 207 kB / 0.9868 GB, free: 19.01 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.2384, allocations: 20.17 kB / 0.9868 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000729/0.2392, allocations: 314.3 kB / 0.9871 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.2394, allocations: 0.7082 MB / 0.9878 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.2395, allocations: 24.53 kB / 0.9879 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.666e-05/0.2395, allocations: 19.44 kB / 0.9879 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of SimCode: time 8.52e-07/0.2396, allocations: 0 / 0.9879 GB, free: 17.89 MB / 0.6198 GB Notification: Performance of Templates: time 0.006683/0.2462, allocations: 1.94 MB / 0.9898 GB, free: 15.96 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)