Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.0007342/0.0007342, allocations: 90.44 kB / 15.36 MB, free: 0.7383 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.004892/0.004893, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.258/1.258, allocations: 205.4 MB / 222.4 MB, free: 5.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.64/1.64, allocations: 292.7 MB / 0.5502 GB, free: 14.48 MB / 462.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.0004918/0.0004918, allocations: 11.53 kB / 0.6743 GB, free: 25.8 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.1956, allocations: 116.3 MB / 0.7879 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00197/0.1976, allocations: 1.324 MB / 0.7892 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001073/0.1987, allocations: 0.6595 MB / 0.7898 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.674e-05/0.1988, allocations: 3.938 kB / 0.7898 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.1989, allocations: 15.92 kB / 0.7898 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002127/0.1992, allocations: 35.83 kB / 0.7899 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000449/0.1996, allocations: 103.8 kB / 0.79 GB, free: 9.395 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002024/0.1998, allocations: 159.6 kB / 0.7901 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.2, allocations: 29.09 kB / 0.7902 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.2002, allocations: 63.84 kB / 0.7902 GB, free: 9.148 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001471/0.2003, allocations: 75.72 kB / 0.7903 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.761e-05/0.2004, allocations: 8 kB / 0.7903 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.731e-05/0.2004, allocations: 23.98 kB / 0.7903 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.893e-05/0.2005, allocations: 35.78 kB / 0.7904 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.368e-05/0.2006, allocations: 85.42 kB / 0.7904 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002076/0.2008, allocations: 159.7 kB / 0.7906 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2008, allocations: 4 kB / 0.7906 GB, free: 8.758 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2009, allocations: 3.938 kB / 0.7906 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2009, allocations: 0 / 0.7906 GB, free: 8.754 MB / 0.6075 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.0005919/0.2015, allocations: 0.5252 MB / 0.7911 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2015, allocations: 8.031 kB / 0.7911 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.134e-05/0.2016, allocations: 20.75 kB / 0.7911 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.2018, allocations: 224.2 kB / 0.7913 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.737e-05/0.2019, allocations: 16.38 kB / 0.7914 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.2019, allocations: 12.38 kB / 0.7914 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.2022, allocations: 121.5 kB / 0.7915 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2022, allocations: 3.984 kB / 0.7915 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.2022, allocations: 4 kB / 0.7915 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.2022, allocations: 0 / 0.7915 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.2024, allocations: 83.94 kB / 0.7916 GB, free: 7.629 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005923/0.203, allocations: 424.5 kB / 0.792 GB, free: 7.164 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.2032, allocations: 90.53 kB / 0.7921 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.2034, allocations: 80.81 kB / 0.7921 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.007e-05/0.2034, allocations: 0 / 0.7921 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002504/0.2037, allocations: 186.8 kB / 0.7923 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=10): time 1.964e-06/0.2037, allocations: 0 / 0.7923 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of matching and sorting (n=10): time 0.0006974/0.2044, allocations: 368.8 kB / 0.7927 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.2045, allocations: 166.2 kB / 0.7928 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.2046, allocations: 174.6 kB / 0.793 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.2047, allocations: 29.7 kB / 0.793 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.122e-05/0.2047, allocations: 112.3 kB / 0.7931 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.795e-05/0.2048, allocations: 23.66 kB / 0.7932 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.94e-05/0.2048, allocations: 29.98 kB / 0.7932 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.2049, allocations: 326.8 kB / 0.7935 GB, free: 5.48 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2051, allocations: 63.89 kB / 0.7936 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.2052, allocations: 109.9 kB / 0.7937 GB, free: 5.289 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003122/0.2055, allocations: 320.9 kB / 0.794 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.713e-06/0.2056, allocations: 4 kB / 0.794 GB, free: 4.91 MB / 0.6075 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005061/0.2061, allocations: 356.1 kB / 0.7943 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 6.847e-05/0.2061, allocations: 114.8 kB / 0.7944 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2062, allocations: 0 / 0.7944 GB, free: 4.395 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2062, allocations: 4 kB / 0.7944 GB, free: 4.391 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.2063, allocations: 23.98 kB / 0.7945 GB, free: 4.367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.2063, allocations: 4 kB / 0.7945 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.2064, allocations: 20.14 kB / 0.7945 GB, free: 4.344 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.945e-05/0.2064, allocations: 8 kB / 0.7945 GB, free: 4.336 MB / 0.6075 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.0001422/0.2066, allocations: 201.6 kB / 0.7947 GB, free: 4.117 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/0.2066, allocations: 15.81 kB / 0.7947 GB, free: 4.102 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.426e-05/0.2067, allocations: 17.39 kB / 0.7947 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.2067, allocations: 0 / 0.7947 GB, free: 4.082 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.2067, allocations: 4 kB / 0.7947 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2067, allocations: 0 / 0.7947 GB, free: 4.078 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006595/0.2074, allocations: 0.5992 MB / 0.7953 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2074, allocations: 0 / 0.7953 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.442e-05/0.2074, allocations: 12 kB / 0.7953 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2075, allocations: 0 / 0.7953 GB, free: 3.398 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.2075, allocations: 11.98 kB / 0.7953 GB, free: 3.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2075, allocations: 4 kB / 0.7953 GB, free: 3.383 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.2075, allocations: 7.938 kB / 0.7953 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.208, allocations: 406.6 kB / 0.7957 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.309e-05/0.2081, allocations: 88.92 kB / 0.7958 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.239e-05/0.2081, allocations: 11.98 kB / 0.7958 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.2082, allocations: 12 kB / 0.7958 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.487e-05/0.2083, allocations: 11.91 kB / 0.7958 GB, free: 2.809 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.2083, allocations: 8 kB / 0.7958 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 9.316e-05/0.2084, allocations: 141 kB / 0.796 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2084, allocations: 3.938 kB / 0.796 GB, free: 2.66 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002887/0.2087, allocations: 36 kB / 0.796 GB, free: 2.625 MB / 0.6075 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.0002157/0.2089, allocations: 124.3 kB / 0.7961 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004577/0.2094, allocations: 369.9 kB / 0.7965 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2094, allocations: 0 / 0.7965 GB, free: 2.09 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.2096, allocations: 218.7 kB / 0.7967 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.21, allocations: 16 kB / 0.7967 GB, free: 1.836 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005643/0.2105, allocations: 322.3 kB / 0.797 GB, free: 1.492 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002217/0.2108, allocations: 0.7043 MB / 0.7977 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.902e-05/0.2109, allocations: 24.53 kB / 0.7977 GB, free: 0.7383 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.165e-05/0.2109, allocations: 19.44 kB / 0.7977 GB, free: 0.7227 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/0.2109, allocations: 0 / 0.7977 GB, free: 0.7227 MB / 0.6075 GB Notification: Performance of Templates: time 0.004914/0.2158, allocations: 1.987 MB / 0.7997 GB, free: 14.76 MB / 0.6231 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) Environment - environmentSimulation: