Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.336/2.336, allocations: 251.1 MB / 266.1 MB, free: 11.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001534/0.001534, allocations: 170.6 kB / 325.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.571/2.571, allocations: 205.4 MB / 0.5766 GB, free: 20.78 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001136/0.001136, allocations: 97.69 kB / 0.6811 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007144/0.0007147, allocations: 10.03 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.214, allocations: 106.3 MB / 0.8989 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002095/0.2161, allocations: 1.29 MB / 0.9001 GB, free: 64.18 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.2173, allocations: 0.6128 MB / 0.9007 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.695e-05/0.2174, allocations: 4 kB / 0.9007 GB, free: 63.55 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.2175, allocations: 19.88 kB / 0.9008 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.2178, allocations: 33.56 kB / 0.9008 GB, free: 63.5 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005309/0.2183, allocations: 103.8 kB / 0.9009 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.2185, allocations: 103.8 kB / 0.901 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.2186, allocations: 17.11 kB / 0.901 GB, free: 63.29 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.2188, allocations: 67.83 kB / 0.9011 GB, free: 63.22 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.2189, allocations: 71.73 kB / 0.9011 GB, free: 63.15 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.776e-05/0.219, allocations: 8 kB / 0.9012 GB, free: 63.14 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.97e-05/0.219, allocations: 11.98 kB / 0.9012 GB, free: 63.13 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.2191, allocations: 27.91 kB / 0.9012 GB, free: 63.1 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 5.629e-05/0.2192, allocations: 49.64 kB / 0.9012 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001753/0.2194, allocations: 103.8 kB / 0.9013 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2194, allocations: 0 / 0.9013 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.725e-06/0.2194, allocations: 0 / 0.9013 GB, free: 62.95 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.2194, allocations: 0 / 0.9013 GB, free: 62.95 MB / 0.6042 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.0006232/0.2201, allocations: 0.5369 MB / 0.9019 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.2201, allocations: 8.031 kB / 0.9019 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.2202, allocations: 19.86 kB / 0.9019 GB, free: 62.31 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.2205, allocations: 234.6 kB / 0.9021 GB, free: 62.04 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.2206, allocations: 12 kB / 0.9021 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.142e-05/0.2206, allocations: 8 kB / 0.9021 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003511/0.221, allocations: 121.6 kB / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.838e-06/0.221, allocations: 0 / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.221, allocations: 0 / 0.9022 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.221, allocations: 4 kB / 0.9023 GB, free: 61.89 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.2214, allocations: 79.84 kB / 0.9023 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007855/0.2222, allocations: 420.7 kB / 0.9027 GB, free: 61.35 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002896/0.2225, allocations: 94.56 kB / 0.9028 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.976e-05/0.2225, allocations: 4 kB / 0.9028 GB, free: 61.25 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003781/0.2229, allocations: 186.6 kB / 0.903 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 3.607e-06/0.2229, allocations: 0 / 0.903 GB, free: 61.04 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.001096/0.224, allocations: 0.5186 MB / 0.9035 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.78e-05/0.2241, allocations: 166.2 kB / 0.9037 GB, free: 60.27 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.2243, allocations: 171.1 kB / 0.9038 GB, free: 60.09 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/0.2244, allocations: 33.7 kB / 0.9039 GB, free: 60.05 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.2244, allocations: 108.4 kB / 0.904 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.554e-05/0.2245, allocations: 27.64 kB / 0.904 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.678e-05/0.2245, allocations: 4 kB / 0.904 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.752e-05/0.2246, allocations: 330.8 kB / 0.9043 GB, free: 59.57 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/0.2248, allocations: 47.97 kB / 0.9044 GB, free: 59.53 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002383/0.2251, allocations: 114.8 kB / 0.9045 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.2254, allocations: 178.8 kB / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.2254, allocations: 0 / 0.9046 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000746/0.2261, allocations: 356 kB / 0.905 GB, free: 58.81 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 6.877e-05/0.2262, allocations: 117.2 kB / 0.9051 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.2262, allocations: 8 kB / 0.9051 GB, free: 58.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.2263, allocations: 7.953 kB / 0.9051 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2265, allocations: 15.98 kB / 0.9051 GB, free: 58.64 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.2265, allocations: 11.92 kB / 0.9051 GB, free: 58.63 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.2267, allocations: 23.84 kB / 0.9052 GB, free: 58.61 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.2267, allocations: 8 kB / 0.9052 GB, free: 58.6 MB / 0.6042 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.0001639/0.2269, allocations: 189.8 kB / 0.9053 GB, free: 58.4 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.821e-05/0.2269, allocations: 23.89 kB / 0.9054 GB, free: 58.38 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.408e-05/0.227, allocations: 21.39 kB / 0.9054 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.227, allocations: 0 / 0.9054 GB, free: 58.36 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.227, allocations: 3.953 kB / 0.9054 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.227, allocations: 0 / 0.9054 GB, free: 58.35 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.228, allocations: 0.5956 MB / 0.906 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.228, allocations: 4 kB / 0.906 GB, free: 57.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.2281, allocations: 15.92 kB / 0.906 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.2281, allocations: 0 / 0.906 GB, free: 57.67 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.2282, allocations: 11.95 kB / 0.906 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2282, allocations: 0 / 0.906 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.2282, allocations: 7.875 kB / 0.906 GB, free: 57.65 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/0.229, allocations: 402.8 kB / 0.9064 GB, free: 57.23 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.229, allocations: 96.91 kB / 0.9065 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.773e-05/0.2291, allocations: 4 kB / 0.9065 GB, free: 57.11 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.2293, allocations: 11.95 kB / 0.9065 GB, free: 57.1 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.342e-05/0.2294, allocations: 11.97 kB / 0.9065 GB, free: 57.09 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.2294, allocations: 12 kB / 0.9065 GB, free: 57.07 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001157/0.2295, allocations: 131.2 kB / 0.9066 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.223e-06/0.2295, allocations: 0 / 0.9066 GB, free: 56.95 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004127/0.23, allocations: 43.88 kB / 0.9067 GB, free: 56.9 MB / 0.6042 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.0002838/0.2302, allocations: 124.9 kB / 0.9068 GB, free: 56.77 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000653/0.2309, allocations: 361.5 kB / 0.9072 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2309, allocations: 0 / 0.9072 GB, free: 56.37 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.2313, allocations: 219.2 kB / 0.9074 GB, free: 56.13 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003547/0.2316, allocations: 20.38 kB / 0.9074 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007282/0.2324, allocations: 306.4 kB / 0.9077 GB, free: 55.79 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000165/0.2326, allocations: 0.7121 MB / 0.9084 GB, free: 55.05 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.738e-05/0.2327, allocations: 20.53 kB / 0.9084 GB, free: 55.03 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.541e-05/0.2327, allocations: 15.44 kB / 0.9084 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of SimCode: time 1.713e-06/0.2327, allocations: 4 kB / 0.9084 GB, free: 55.02 MB / 0.6042 GB Notification: Performance of Templates: time 0.006397/0.2391, allocations: 1.938 MB / 0.9103 GB, free: 53.1 MB / 0.6042 GB