Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.782/1.782, allocations: 288.3 MB / 303.2 MB, free: 8.059 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.001477/0.001477, allocations: 187.3 kB / 371.8 MB, free: 10.27 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.786/1.786, allocations: 205.4 MB / 0.6306 GB, free: 10.01 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.001009/0.001009, allocations: 89.22 kB / 0.7439 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004366/0.0004369, allocations: 11 kB / 0.8668 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2189, allocations: 115.3 MB / 0.9794 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001936/0.2208, allocations: 1.29 MB / 0.9807 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001166/0.222, allocations: 0.5933 MB / 0.9813 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.2223, allocations: 4 kB / 0.9813 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002422/0.2225, allocations: 23.8 kB / 0.9813 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002859/0.2228, allocations: 35.94 kB / 0.9813 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000545/0.2234, allocations: 95.77 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002063/0.2236, allocations: 99.81 kB / 0.9815 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.2238, allocations: 17.11 kB / 0.9815 GB, free: 25.5 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002597/0.224, allocations: 71.83 kB / 0.9816 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2242, allocations: 75.72 kB / 0.9817 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.67e-05/0.2242, allocations: 4 kB / 0.9817 GB, free: 25.35 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.475e-05/0.2243, allocations: 15.94 kB / 0.9817 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.2244, allocations: 31.84 kB / 0.9817 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.802e-05/0.2245, allocations: 49.64 kB / 0.9818 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001659/0.2246, allocations: 112 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2246, allocations: 0 / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.284e-06/0.2246, allocations: 4 kB / 0.9819 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.2247, allocations: 0 / 0.9819 GB, free: 25.14 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.0005841/0.2252, allocations: 0.5251 MB / 0.9824 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.2253, allocations: 16.02 kB / 0.9824 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.832e-05/0.2254, allocations: 15.81 kB / 0.9824 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002884/0.2257, allocations: 231.2 kB / 0.9826 GB, free: 24.24 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.2257, allocations: 12 kB / 0.9827 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.2257, allocations: 12 kB / 0.9827 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.226, allocations: 125.6 kB / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.2261, allocations: 0 / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.2261, allocations: 4 kB / 0.9828 GB, free: 24.09 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.2261, allocations: 3.938 kB / 0.9828 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001904/0.2263, allocations: 75.94 kB / 0.9829 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006609/0.227, allocations: 420.7 kB / 0.9833 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001798/0.2272, allocations: 98.47 kB / 0.9834 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2272, allocations: 4 kB / 0.9834 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.2274, allocations: 178.9 kB / 0.9835 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 2.134e-06/0.2274, allocations: 0 / 0.9835 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.0007086/0.2282, allocations: 0.5146 MB / 0.984 GB, free: 22.67 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/0.2282, allocations: 170.4 kB / 0.9842 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.2284, allocations: 166.6 kB / 0.9844 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.2284, allocations: 33.7 kB / 0.9844 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.2285, allocations: 116.2 kB / 0.9845 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.827e-05/0.2285, allocations: 35.62 kB / 0.9845 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.2285, allocations: 4 kB / 0.9845 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.962e-05/0.2286, allocations: 326.8 kB / 0.9848 GB, free: 21.77 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001231/0.2287, allocations: 51.95 kB / 0.9849 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.2289, allocations: 110.8 kB / 0.985 GB, free: 21.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.229, allocations: 174.8 kB / 0.9852 GB, free: 21.39 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2291, allocations: 4 kB / 0.9852 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004518/0.2295, allocations: 352.2 kB / 0.9855 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.325e-05/0.2296, allocations: 122.8 kB / 0.9856 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.2296, allocations: 4 kB / 0.9856 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.477e-05/0.2296, allocations: 4 kB / 0.9856 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.2298, allocations: 19.98 kB / 0.9857 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.2298, allocations: 7.875 kB / 0.9857 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001013/0.2299, allocations: 19.95 kB / 0.9857 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.2299, allocations: 8 kB / 0.9857 GB, free: 20.8 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.0001244/0.23, allocations: 197.2 kB / 0.9859 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.2301, allocations: 15.81 kB / 0.9859 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.599e-05/0.2301, allocations: 17.41 kB / 0.9859 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.2301, allocations: 0 / 0.9859 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2301, allocations: 0 / 0.9859 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2301, allocations: 4 kB / 0.9859 GB, free: 20.55 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005615/0.2307, allocations: 0.5954 MB / 0.9865 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2307, allocations: 0 / 0.9865 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.168e-05/0.2308, allocations: 15.98 kB / 0.9865 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.2308, allocations: 0 / 0.9865 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2308, allocations: 7.938 kB / 0.9865 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2308, allocations: 0 / 0.9865 GB, free: 19.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.2308, allocations: 3.953 kB / 0.9865 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004233/0.2313, allocations: 414.6 kB / 0.9869 GB, free: 19.43 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.2313, allocations: 96.86 kB / 0.987 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.648e-05/0.2314, allocations: 4 kB / 0.987 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001086/0.2315, allocations: 8 kB / 0.987 GB, free: 19.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.814e-05/0.2315, allocations: 11.98 kB / 0.987 GB, free: 19.29 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.2316, allocations: 27.86 kB / 0.9871 GB, free: 19.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 8.967e-05/0.2317, allocations: 124.3 kB / 0.9872 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2317, allocations: 0 / 0.9872 GB, free: 19.14 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003076/0.232, allocations: 36 kB / 0.9872 GB, free: 19.11 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.0003009/0.2323, allocations: 124.4 kB / 0.9873 GB, free: 18.98 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004492/0.2327, allocations: 365.5 kB / 0.9877 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.2328, allocations: 0.5 kB / 0.9877 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001941/0.233, allocations: 222.6 kB / 0.9879 GB, free: 18.34 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002474/0.2332, allocations: 17.03 kB / 0.9879 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005825/0.2338, allocations: 310.2 kB / 0.9882 GB, free: 18 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001591/0.234, allocations: 0.716 MB / 0.9889 GB, free: 17.25 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.624e-05/0.2341, allocations: 16.55 kB / 0.9889 GB, free: 17.24 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.758e-05/0.2341, allocations: 19.42 kB / 0.9889 GB, free: 17.22 MB / 0.6198 GB Notification: Performance of SimCode: time 5.01e-07/0.2341, allocations: 4 kB / 0.9889 GB, free: 17.21 MB / 0.6198 GB Notification: Performance of Templates: time 0.005101/0.2392, allocations: 1.939 MB / 0.9908 GB, free: 15.3 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)