Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.434/2.434, allocations: 287.9 MB / 302.9 MB, free: 8.258 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001444/0.001443, allocations: 175.4 kB / 371.4 MB, free: 10.66 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.4 MB / 0.6301 GB, free: 10.37 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001035/0.001035, allocations: 88.55 kB / 0.7434 GB, free: 6.391 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006968/0.0006971, allocations: 11 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.224, allocations: 115.3 MB / 0.9788 GB, free: 28.16 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002458/0.2265, allocations: 1.297 MB / 0.98 GB, free: 26.85 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001486/0.2281, allocations: 0.5974 MB / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.2282, allocations: 0 / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.2284, allocations: 19.81 kB / 0.9806 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.2287, allocations: 37.06 kB / 0.9807 GB, free: 26.19 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007215/0.2294, allocations: 99.75 kB / 0.9808 GB, free: 26.09 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000188/0.2296, allocations: 95.81 kB / 0.9808 GB, free: 26 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.2298, allocations: 25.11 kB / 0.9809 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.23, allocations: 67.83 kB / 0.9809 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.2302, allocations: 75.72 kB / 0.981 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.967e-05/0.2303, allocations: 4 kB / 0.981 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.896e-05/0.2304, allocations: 12 kB / 0.981 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.883e-05/0.2305, allocations: 23.92 kB / 0.981 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.322e-05/0.2306, allocations: 49.64 kB / 0.9811 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.2309, allocations: 119.9 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.934e-06/0.2309, allocations: 4 kB / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.783e-06/0.2309, allocations: 0 / 0.9812 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.375e-06/0.2309, allocations: 4 kB / 0.9812 GB, free: 25.61 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.0007577/0.2317, allocations: 0.5173 MB / 0.9817 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.2318, allocations: 16.02 kB / 0.9817 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.856e-05/0.2319, allocations: 15.81 kB / 0.9817 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.2324, allocations: 230.7 kB / 0.982 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.2324, allocations: 15.94 kB / 0.982 GB, free: 24.71 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.687e-05/0.2325, allocations: 12 kB / 0.982 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.233, allocations: 117.6 kB / 0.9821 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.233, allocations: 3.938 kB / 0.9821 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.2331, allocations: 4 kB / 0.9821 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.2331, allocations: 0 / 0.9821 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004214/0.2335, allocations: 87.88 kB / 0.9822 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.2346, allocations: 420.6 kB / 0.9826 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000387/0.235, allocations: 94.56 kB / 0.9827 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.941e-05/0.2351, allocations: 8 kB / 0.9827 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000518/0.2356, allocations: 174.7 kB / 0.9829 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=10): time 7.253e-06/0.2357, allocations: 3.984 kB / 0.9829 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10): time 0.00158/0.2373, allocations: 0.5225 MB / 0.9834 GB, free: 23.14 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.011e-05/0.2374, allocations: 158.2 kB / 0.9835 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.2376, allocations: 174.6 kB / 0.9837 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.697e-05/0.2377, allocations: 29.7 kB / 0.9837 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.388e-05/0.2378, allocations: 120.3 kB / 0.9838 GB, free: 22.61 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 5.56e-05/0.2379, allocations: 27.64 kB / 0.9839 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.647e-05/0.2379, allocations: 4 kB / 0.9839 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.317e-05/0.238, allocations: 322.8 kB / 0.9842 GB, free: 22.25 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000316/0.2384, allocations: 51.97 kB / 0.9842 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.2388, allocations: 112.9 kB / 0.9843 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.2392, allocations: 178.8 kB / 0.9845 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.617e-06/0.2392, allocations: 4 kB / 0.9845 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001207/0.2405, allocations: 356.2 kB / 0.9848 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 9.583e-05/0.2406, allocations: 118.8 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.324e-05/0.2406, allocations: 3.984 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.2407, allocations: 4 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/0.2409, allocations: 16 kB / 0.985 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.241, allocations: 7.938 kB / 0.985 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.2412, allocations: 16 kB / 0.985 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.2413, allocations: 8.375 kB / 0.985 GB, free: 21.29 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.0002523/0.2416, allocations: 197.2 kB / 0.9852 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.349e-05/0.2417, allocations: 19.8 kB / 0.9852 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.787e-05/0.2418, allocations: 25.28 kB / 0.9852 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.2418, allocations: 0 / 0.9852 GB, free: 21.04 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.538e-06/0.2418, allocations: 4 kB / 0.9852 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.663e-06/0.2418, allocations: 3.953 kB / 0.9853 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001474/0.2433, allocations: 0.5915 MB / 0.9858 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.747e-06/0.2434, allocations: 0 / 0.9858 GB, free: 20.37 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.2435, allocations: 15.98 kB / 0.9858 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.598e-06/0.2436, allocations: 0 / 0.9858 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.2436, allocations: 4 kB / 0.9858 GB, free: 20.35 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.083e-06/0.2437, allocations: 3.953 kB / 0.9859 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.305e-06/0.2437, allocations: 0 / 0.9859 GB, free: 20.34 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.2449, allocations: 410.6 kB / 0.9862 GB, free: 19.91 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.531e-05/0.245, allocations: 92.91 kB / 0.9863 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.849e-05/0.2451, allocations: 8 kB / 0.9863 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.2454, allocations: 12 kB / 0.9864 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/0.2455, allocations: 11.94 kB / 0.9864 GB, free: 19.77 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.751e-05/0.2456, allocations: 12 kB / 0.9864 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001833/0.2458, allocations: 128.3 kB / 0.9865 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.028e-06/0.2458, allocations: 0 / 0.9865 GB, free: 19.64 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0007678/0.2466, allocations: 36 kB / 0.9865 GB, free: 19.6 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.0003504/0.2469, allocations: 142.8 kB / 0.9867 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0009747/0.2479, allocations: 365.9 kB / 0.987 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.694e-06/0.248, allocations: 4.062 kB / 0.987 GB, free: 19.05 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000478/0.2485, allocations: 214.7 kB / 0.9872 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004686/0.249, allocations: 12.19 kB / 0.9872 GB, free: 18.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.2501, allocations: 322.1 kB / 0.9875 GB, free: 18.47 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.2503, allocations: 0.7121 MB / 0.9882 GB, free: 17.73 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001472/0.2505, allocations: 24.53 kB / 0.9883 GB, free: 17.71 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.089e-05/0.2505, allocations: 11.44 kB / 0.9883 GB, free: 17.7 MB / 0.6198 GB Notification: Performance of SimCode: time 2.167e-06/0.2506, allocations: 4 kB / 0.9883 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of Templates: time 0.008161/0.2587, allocations: 1.929 MB / 0.9902 GB, free: 15.78 MB / 0.6198 GB