Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.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.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005211/0.005211, allocations: 103 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 193.3 kB / 16.67 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.208/1.208, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.365/1.365, allocations: 251.7 MB / 0.5094 GB, free: 3.105 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 79.89 kB / 0.7258 GB, free: 9.027 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1811, allocations: 104.7 MB / 0.828 GB, free: 220 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002712/0.1839, allocations: 1.61 MB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001009/0.1849, allocations: 0.6631 MB / 0.8303 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.962e-05/0.185, allocations: 0 / 0.8303 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1852, allocations: 23.8 kB / 0.8303 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.1854, allocations: 35.77 kB / 0.8303 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.1857, allocations: 119.7 kB / 0.8304 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.186, allocations: 207.6 kB / 0.8306 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001049/0.1861, allocations: 28.8 kB / 0.8307 GB, free: 13.51 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.1862, allocations: 83.75 kB / 0.8307 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.1863, allocations: 83.72 kB / 0.8308 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.219e-05/0.1864, allocations: 16 kB / 0.8308 GB, free: 13.33 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.658e-05/0.1865, allocations: 31.98 kB / 0.8309 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.367e-05/0.1865, allocations: 23.92 kB / 0.8309 GB, free: 13.28 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.825e-05/0.1866, allocations: 79.64 kB / 0.831 GB, free: 13.2 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002169/0.1869, allocations: 163.5 kB / 0.8311 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1869, allocations: 0 / 0.8311 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.533e-06/0.1869, allocations: 0 / 0.8311 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.863e-06/0.1869, allocations: 0 / 0.8311 GB, free: 13.04 MB / 0.6544 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.0006822/0.1876, allocations: 0.5639 MB / 0.8317 GB, free: 12.4 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.1876, allocations: 12.03 kB / 0.8317 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.916e-05/0.1877, allocations: 20.75 kB / 0.8317 GB, free: 12.37 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003184/0.188, allocations: 228.2 kB / 0.8319 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.188, allocations: 8.375 kB / 0.8319 GB, free: 12.1 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.353e-05/0.1881, allocations: 16.38 kB / 0.8319 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.1883, allocations: 117.7 kB / 0.832 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.1884, allocations: 3.984 kB / 0.8321 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.1884, allocations: 4 kB / 0.8321 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.1884, allocations: 0 / 0.8321 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.1886, allocations: 75.94 kB / 0.8321 GB, free: 11.88 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006051/0.1892, allocations: 416.4 kB / 0.8325 GB, free: 11.43 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.1894, allocations: 86.53 kB / 0.8326 GB, free: 11.33 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001466/0.1896, allocations: 84.75 kB / 0.8327 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.1896, allocations: 160 / 0.8327 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002459/0.1898, allocations: 178.7 kB / 0.8329 GB, free: 11.05 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 3.096e-06/0.1899, allocations: 96 / 0.8329 GB, free: 11.05 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0006937/0.1905, allocations: 344.8 kB / 0.8332 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.1907, allocations: 174.2 kB / 0.8334 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.1908, allocations: 179.1 kB / 0.8335 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.1909, allocations: 33.64 kB / 0.8336 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.191, allocations: 108.4 kB / 0.8337 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.191, allocations: 27.64 kB / 0.8337 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.992e-05/0.1911, allocations: 41.7 kB / 0.8337 GB, free: 10.07 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1912, allocations: 334.8 kB / 0.834 GB, free: 9.738 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.1913, allocations: 51.97 kB / 0.8341 GB, free: 9.688 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001472/0.1915, allocations: 94.83 kB / 0.8342 GB, free: 9.57 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003166/0.1918, allocations: 312.9 kB / 0.8345 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1918, allocations: 7.938 kB / 0.8345 GB, free: 9.195 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000484/0.1923, allocations: 348.1 kB / 0.8348 GB, free: 8.824 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.698e-05/0.1924, allocations: 114.8 kB / 0.8349 GB, free: 8.688 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.1924, allocations: 4 kB / 0.8349 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1924, allocations: 0 / 0.8349 GB, free: 8.684 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/0.1925, allocations: 23.92 kB / 0.835 GB, free: 8.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1926, allocations: 0 / 0.835 GB, free: 8.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.371e-05/0.1927, allocations: 24.16 kB / 0.835 GB, free: 8.637 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.1927, allocations: 8 kB / 0.835 GB, free: 8.629 MB / 0.6544 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 (combiTimeTableWriter.str,$PRE.combiTimeTableWriter.str,csvWriter.str,$PRE.csvWriter.str,combiTimeTableWriter.sampleTrigger,$whenCondition2,csvWriter.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001464/0.1928, allocations: 205 kB / 0.8352 GB, free: 8.406 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.1929, allocations: 19.81 kB / 0.8352 GB, free: 8.387 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.1929, allocations: 13.41 kB / 0.8352 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1929, allocations: 0 / 0.8352 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1929, allocations: 0 / 0.8352 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.193, allocations: 0 / 0.8352 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006678/0.1936, allocations: 0.5917 MB / 0.8358 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1936, allocations: 4 kB / 0.8358 GB, free: 7.711 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.284e-05/0.1937, allocations: 11.98 kB / 0.8358 GB, free: 7.699 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1937, allocations: 0 / 0.8358 GB, free: 7.699 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.1937, allocations: 8 kB / 0.8358 GB, free: 7.691 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1937, allocations: 0 / 0.8358 GB, free: 7.691 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.1938, allocations: 7.938 kB / 0.8358 GB, free: 7.684 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005166/0.1943, allocations: 410.6 kB / 0.8362 GB, free: 7.254 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 5.753e-05/0.1943, allocations: 85.02 kB / 0.8363 GB, free: 7.152 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.128e-05/0.1944, allocations: 4 kB / 0.8363 GB, free: 7.148 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1945, allocations: 4 kB / 0.8363 GB, free: 7.145 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.418e-05/0.1946, allocations: 15.92 kB / 0.8363 GB, free: 7.129 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.1946, allocations: 8 kB / 0.8363 GB, free: 7.121 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 9.173e-05/0.1947, allocations: 123.2 kB / 0.8364 GB, free: 7 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1947, allocations: 0 / 0.8364 GB, free: 7 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002731/0.195, allocations: 44 kB / 0.8365 GB, free: 6.957 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002237/0.1952, allocations: 137.3 kB / 0.8366 GB, free: 6.82 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004533/0.1956, allocations: 361.8 kB / 0.837 GB, free: 6.418 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1957, allocations: 0 / 0.837 GB, free: 6.418 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002135/0.1959, allocations: 214.7 kB / 0.8372 GB, free: 6.184 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002762/0.1962, allocations: 19.94 kB / 0.8372 GB, free: 6.164 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004756/0.1966, allocations: 287.9 kB / 0.8375 GB, free: 5.852 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002246/0.1969, allocations: 0.7121 MB / 0.8382 GB, free: 5.113 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.281e-05/0.1969, allocations: 20.53 kB / 0.8382 GB, free: 5.094 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.197, allocations: 15.44 kB / 0.8382 GB, free: 5.078 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.197, allocations: 0 / 0.8382 GB, free: 5.078 MB / 0.6544 GB Notification: Performance of Templates: time 0.004438/0.2014, allocations: 2.09 MB / 0.8402 GB, free: 3.016 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)