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.897/2.897, allocations: 287.3 MB / 302.3 MB, free: 8.332 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.001595/0.001595, allocations: 174.5 kB / 370.8 MB, free: 10.86 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.378/2.378, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001143/0.001143, allocations: 97.05 kB / 0.7428 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004592/0.0004594, allocations: 11.45 kB / 0.8656 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.208, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001975/0.21, allocations: 1.297 MB / 0.9795 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.2111, allocations: 0.5974 MB / 0.98 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.333e-05/0.2112, allocations: 4 kB / 0.98 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.2114, allocations: 15.88 kB / 0.9801 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002271/0.2116, allocations: 44.98 kB / 0.9801 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005275/0.2122, allocations: 95.77 kB / 0.9802 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.2123, allocations: 95.81 kB / 0.9803 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.2125, allocations: 21.11 kB / 0.9803 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.2126, allocations: 67.83 kB / 0.9804 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.2128, allocations: 71.72 kB / 0.9804 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.2128, allocations: 8 kB / 0.9804 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.097e-05/0.2129, allocations: 16 kB / 0.9805 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.002e-05/0.213, allocations: 19.92 kB / 0.9805 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.644e-05/0.2131, allocations: 53.64 kB / 0.9805 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.2132, allocations: 119.9 kB / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.2133, allocations: 0 / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2133, allocations: 0 / 0.9806 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.89e-06/0.2133, allocations: 0 / 0.9806 GB, free: 25.84 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.0006165/0.2139, allocations: 0.5212 MB / 0.9812 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.214, allocations: 12.02 kB / 0.9812 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.939e-05/0.214, allocations: 19.81 kB / 0.9812 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.2144, allocations: 230.8 kB / 0.9814 GB, free: 24.95 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.2144, allocations: 15.88 kB / 0.9814 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.056e-05/0.2145, allocations: 16 kB / 0.9814 GB, free: 24.92 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003444/0.2148, allocations: 113.6 kB / 0.9815 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.2148, allocations: 0 / 0.9815 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.2149, allocations: 11.98 kB / 0.9816 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2149, allocations: 0 / 0.9816 GB, free: 24.79 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003133/0.2152, allocations: 71.94 kB / 0.9816 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007598/0.216, allocations: 432.5 kB / 0.982 GB, free: 24.25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.2163, allocations: 90.53 kB / 0.9821 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.313e-05/0.2163, allocations: 0 / 0.9821 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003574/0.2167, allocations: 186.7 kB / 0.9823 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 1.803e-06/0.2167, allocations: 0 / 0.9823 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.00106/0.2178, allocations: 0.5186 MB / 0.9828 GB, free: 23.37 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/0.2178, allocations: 166.2 kB / 0.983 GB, free: 23.17 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001655/0.218, allocations: 174.6 kB / 0.9831 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.2181, allocations: 29.7 kB / 0.9832 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.325e-05/0.2181, allocations: 112.3 kB / 0.9833 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.217e-05/0.2182, allocations: 31.64 kB / 0.9833 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.2182, allocations: 8 kB / 0.9833 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.486e-05/0.2183, allocations: 322.8 kB / 0.9836 GB, free: 22.47 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.2185, allocations: 55.95 kB / 0.9837 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002313/0.2187, allocations: 108.1 kB / 0.9838 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002677/0.219, allocations: 178.7 kB / 0.9839 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.219, allocations: 0 / 0.9839 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0007237/0.2198, allocations: 352.3 kB / 0.9843 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.2198, allocations: 126.8 kB / 0.9844 GB, free: 21.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2199, allocations: 3.938 kB / 0.9844 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.2199, allocations: 4 kB / 0.9844 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2201, allocations: 19.98 kB / 0.9844 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.2201, allocations: 7.953 kB / 0.9844 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.2202, allocations: 12 kB / 0.9844 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.865e-05/0.2203, allocations: 12 kB / 0.9845 GB, free: 21.51 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.0001506/0.2204, allocations: 201.2 kB / 0.9846 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.836e-05/0.2205, allocations: 15.81 kB / 0.9847 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.699e-05/0.2205, allocations: 17.34 kB / 0.9847 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2206, allocations: 0 / 0.9847 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2206, allocations: 0 / 0.9847 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2206, allocations: 3.953 kB / 0.9847 GB, free: 21.26 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009179/0.2215, allocations: 0.5995 MB / 0.9853 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2215, allocations: 0 / 0.9853 GB, free: 20.59 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.2216, allocations: 15.98 kB / 0.9853 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.2217, allocations: 4 kB / 0.9853 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.2217, allocations: 4 kB / 0.9853 GB, free: 20.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2217, allocations: 3.953 kB / 0.9853 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2217, allocations: 0 / 0.9853 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007389/0.2225, allocations: 410.6 kB / 0.9857 GB, free: 20.13 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.2225, allocations: 92.91 kB / 0.9858 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.695e-05/0.2226, allocations: 8 kB / 0.9858 GB, free: 20.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.2228, allocations: 8 kB / 0.9858 GB, free: 20.01 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.033e-05/0.2228, allocations: 15.94 kB / 0.9858 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.643e-05/0.2229, allocations: 7.984 kB / 0.9858 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001066/0.223, allocations: 132.3 kB / 0.9859 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.51e-07/0.223, allocations: 0 / 0.9859 GB, free: 19.86 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.000391/0.2234, allocations: 36 kB / 0.986 GB, free: 19.82 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.0002443/0.2236, allocations: 134 kB / 0.9861 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.000608/0.2243, allocations: 365.4 kB / 0.9865 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2243, allocations: 0.5 kB / 0.9865 GB, free: 19.28 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.2246, allocations: 214.7 kB / 0.9867 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.2249, allocations: 12.19 kB / 0.9867 GB, free: 19.03 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006804/0.2256, allocations: 326.1 kB / 0.987 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001605/0.2258, allocations: 0.7121 MB / 0.9877 GB, free: 17.95 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.617e-05/0.2259, allocations: 20.53 kB / 0.9877 GB, free: 17.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.585e-05/0.226, allocations: 23.42 kB / 0.9877 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of SimCode: time 5.91e-07/0.226, allocations: 0 / 0.9877 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of Templates: time 0.006293/0.2323, allocations: 1.937 MB / 0.9896 GB, free: 15.99 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)