Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter") translateModel(IBPSA.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001366/0.001366, allocations: 111.1 kB / 16.41 MB, free: 6.488 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.001751/0.001751, allocations: 189.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7536/0.7536, allocations: 122.9 MB / 414.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 63.52 kB / 0.5684 GB, free: 28.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.1781, allocations: 77.93 MB / 0.6446 GB, free: 9.047 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.CSVWriter): time 0.003433/0.1815, allocations: 1.606 MB / 0.6461 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.1828, allocations: 0.6128 MB / 0.6467 GB, free: 6.812 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.718e-05/0.1829, allocations: 4 kB / 0.6467 GB, free: 6.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.1831, allocations: 15.86 kB / 0.6467 GB, free: 6.793 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002794/0.1834, allocations: 42.52 kB / 0.6468 GB, free: 6.754 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.1839, allocations: 115.7 kB / 0.6469 GB, free: 6.641 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.1842, allocations: 203.6 kB / 0.6471 GB, free: 6.441 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.1844, allocations: 25.11 kB / 0.6471 GB, free: 6.418 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001766/0.1846, allocations: 83.75 kB / 0.6472 GB, free: 6.336 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.1847, allocations: 87.66 kB / 0.6473 GB, free: 6.25 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.651e-05/0.1848, allocations: 12 kB / 0.6473 GB, free: 6.238 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.1849, allocations: 31.98 kB / 0.6473 GB, free: 6.207 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.185, allocations: 23.92 kB / 0.6473 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.1852, allocations: 83.64 kB / 0.6474 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003254/0.1855, allocations: 167.3 kB / 0.6476 GB, free: 5.938 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.1855, allocations: 0 / 0.6476 GB, free: 5.938 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1855, allocations: 0 / 0.6476 GB, free: 5.938 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.029e-05/0.1856, allocations: 0 / 0.6476 GB, free: 5.938 MB / 494.1 MB 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.0009172/0.1865, allocations: 0.564 MB / 0.6481 GB, free: 5.301 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.694e-05/0.1866, allocations: 8.625 kB / 0.6481 GB, free: 5.293 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.76e-05/0.1866, allocations: 24.84 kB / 0.6482 GB, free: 5.27 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004017/0.1871, allocations: 240.2 kB / 0.6484 GB, free: 4.996 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.1871, allocations: 8.375 kB / 0.6484 GB, free: 4.988 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.1871, allocations: 12.38 kB / 0.6484 GB, free: 4.977 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003258/0.1875, allocations: 113.7 kB / 0.6485 GB, free: 4.859 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1875, allocations: 0 / 0.6485 GB, free: 4.859 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.1875, allocations: 8 kB / 0.6485 GB, free: 4.852 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1875, allocations: 0 / 0.6485 GB, free: 4.852 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.1877, allocations: 83.81 kB / 0.6486 GB, free: 4.77 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008116/0.1886, allocations: 412.6 kB / 0.649 GB, free: 4.316 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002505/0.1888, allocations: 86.56 kB / 0.6491 GB, free: 4.223 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.189, allocations: 76.81 kB / 0.6492 GB, free: 4.145 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.1891, allocations: 4.156 kB / 0.6492 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002758/0.1893, allocations: 178.7 kB / 0.6493 GB, free: 3.941 MB / 494.1 MB Notification: Performance of pre-optimization done (n=10): time 1.864e-06/0.1893, allocations: 4 kB / 0.6493 GB, free: 3.938 MB / 494.1 MB Notification: Performance of matching and sorting (n=10): time 0.0007725/0.1901, allocations: 348.8 kB / 0.6497 GB, free: 3.578 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.1902, allocations: 166.2 kB / 0.6498 GB, free: 3.379 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002046/0.1905, allocations: 186.6 kB / 0.65 GB, free: 3.184 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.1905, allocations: 29.7 kB / 0.65 GB, free: 3.148 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.1906, allocations: 112.3 kB / 0.6501 GB, free: 3.031 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.579e-05/0.1907, allocations: 31.78 kB / 0.6502 GB, free: 3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.906e-05/0.1907, allocations: 33.72 kB / 0.6502 GB, free: 2.961 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.1909, allocations: 334.8 kB / 0.6505 GB, free: 2.625 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001398/0.1911, allocations: 51.97 kB / 0.6506 GB, free: 2.574 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.1912, allocations: 102.8 kB / 0.6507 GB, free: 2.449 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.1916, allocations: 309 kB / 0.651 GB, free: 2.086 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1916, allocations: 0 / 0.651 GB, free: 2.086 MB / 494.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005294/0.1922, allocations: 352.2 kB / 0.6513 GB, free: 1.711 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.558e-05/0.1922, allocations: 116.7 kB / 0.6514 GB, free: 1.574 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.1923, allocations: 0 / 0.6514 GB, free: 1.574 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1923, allocations: 4 kB / 0.6514 GB, free: 1.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.1924, allocations: 19.92 kB / 0.6514 GB, free: 1.551 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.007e-05/0.1924, allocations: 8 kB / 0.6514 GB, free: 1.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.1925, allocations: 24.14 kB / 0.6515 GB, free: 1.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.1926, allocations: 15.92 kB / 0.6515 GB, free: 1.504 MB / 494.1 MB 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.0001748/0.1927, allocations: 197.2 kB / 0.6517 GB, free: 1.289 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.1928, allocations: 15.91 kB / 0.6517 GB, free: 1.273 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/0.1928, allocations: 13.41 kB / 0.6517 GB, free: 1.254 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1928, allocations: 288 / 0.6517 GB, free: 1.254 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1929, allocations: 4 kB / 0.6517 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1929, allocations: 3.984 kB / 0.6517 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007365/0.1936, allocations: 0.5836 MB / 0.6523 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1936, allocations: 0 / 0.6523 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.535e-05/0.1937, allocations: 15.92 kB / 0.6523 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1937, allocations: 4 kB / 0.6523 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.314e-05/0.1937, allocations: 8 kB / 0.6523 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.1937, allocations: 0 / 0.6523 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.1938, allocations: 3.938 kB / 0.6523 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005589/0.1943, allocations: 406.7 kB / 0.6527 GB, free: 140 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-05/0.1944, allocations: 96.89 kB / 0.6528 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.475e-05/0.1944, allocations: 4 kB / 0.6528 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.1946, allocations: 8 kB / 0.6528 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.501e-05/0.1946, allocations: 16.12 kB / 0.6528 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.1947, allocations: 4 kB / 0.6528 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001015/0.1948, allocations: 128.3 kB / 0.6529 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1948, allocations: 0 / 0.6529 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003931/0.1952, allocations: 40 kB / 0.653 GB, free: 15.82 MB / 0.4981 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.0002743/0.1955, allocations: 134.6 kB / 0.6531 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005514/0.196, allocations: 361.5 kB / 0.6534 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.196, allocations: 0 / 0.6534 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003637/0.1964, allocations: 206.8 kB / 0.6536 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.1967, allocations: 16 kB / 0.6537 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006694/0.1974, allocations: 284.1 kB / 0.6539 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1977, allocations: 0.7122 MB / 0.6546 GB, free: 14 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.77e-05/0.1978, allocations: 20.53 kB / 0.6546 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.173e-05/0.1979, allocations: 19.42 kB / 0.6547 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1979, allocations: 0 / 0.6547 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of Templates: time 0.006209/0.2041, allocations: 2.098 MB / 0.6567 GB, free: 11.89 MB / 0.4981 GB make -j1 -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.sim & ./IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1)