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.0009414/0.0009415, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.0009375/0.0009375, allocations: 188.5 kB / 16.13 MB, free: 6.652 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.191/1.191, allocations: 205.1 MB / 222 MB, free: 4.758 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.322/1.322, allocations: 251.6 MB / 0.5088 GB, free: 3.375 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.00114/0.00114, allocations: 67.89 kB / 0.6216 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4031, allocations: 104.7 MB / 0.7238 GB, free: 13.34 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00301/0.4061, allocations: 1.678 MB / 0.7254 GB, free: 11.65 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001032/0.4072, allocations: 0.6824 MB / 0.7261 GB, free: 10.96 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.316e-05/0.4073, allocations: 4 kB / 0.7261 GB, free: 10.95 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001474/0.4074, allocations: 11.92 kB / 0.7261 GB, free: 10.94 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.4076, allocations: 39.78 kB / 0.7262 GB, free: 10.9 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003811/0.408, allocations: 99.89 kB / 0.7263 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.4082, allocations: 163.6 kB / 0.7264 GB, free: 10.64 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.4083, allocations: 25.11 kB / 0.7264 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001423/0.4084, allocations: 83.69 kB / 0.7265 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.4086, allocations: 79.72 kB / 0.7266 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.532e-05/0.4086, allocations: 8 kB / 0.7266 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 7.532e-05/0.4087, allocations: 24 kB / 0.7266 GB, free: 10.43 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.441e-05/0.4088, allocations: 27.91 kB / 0.7266 GB, free: 10.4 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.93e-05/0.4089, allocations: 63.66 kB / 0.7267 GB, free: 10.34 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.4091, allocations: 161.6 kB / 0.7269 GB, free: 10.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.4091, allocations: 0 / 0.7269 GB, free: 10.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 7.82e-07/0.4091, allocations: 0 / 0.7269 GB, free: 10.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.4091, allocations: 0 / 0.7269 GB, free: 10.18 MB / 0.545 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.0006299/0.4098, allocations: 0.5563 MB / 0.7274 GB, free: 9.555 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.4098, allocations: 12.03 kB / 0.7274 GB, free: 9.543 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.025e-05/0.4099, allocations: 20.75 kB / 0.7274 GB, free: 9.523 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.4102, allocations: 236.6 kB / 0.7277 GB, free: 9.254 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.4102, allocations: 8.375 kB / 0.7277 GB, free: 9.246 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.934e-05/0.4102, allocations: 12.38 kB / 0.7277 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002449/0.4105, allocations: 117.7 kB / 0.7278 GB, free: 9.113 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.952e-06/0.4105, allocations: 4 kB / 0.7278 GB, free: 9.109 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.4105, allocations: 4 kB / 0.7278 GB, free: 9.105 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.4105, allocations: 0 / 0.7278 GB, free: 9.105 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.4107, allocations: 75.88 kB / 0.7279 GB, free: 9.031 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000576/0.4113, allocations: 420.5 kB / 0.7283 GB, free: 8.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.4115, allocations: 90.56 kB / 0.7284 GB, free: 8.473 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.4116, allocations: 76.81 kB / 0.7284 GB, free: 8.395 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.4117, allocations: 4.141 kB / 0.7284 GB, free: 8.391 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003073/0.412, allocations: 178.7 kB / 0.7286 GB, free: 8.191 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 2.235e-06/0.412, allocations: 4 kB / 0.7286 GB, free: 8.188 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006824/0.4127, allocations: 348.7 kB / 0.7289 GB, free: 7.828 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.393e-05/0.4128, allocations: 166.2 kB / 0.7291 GB, free: 7.629 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.4129, allocations: 167.2 kB / 0.7293 GB, free: 7.457 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.413, allocations: 33.7 kB / 0.7293 GB, free: 7.418 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.413, allocations: 108.4 kB / 0.7294 GB, free: 7.309 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.4131, allocations: 31.62 kB / 0.7294 GB, free: 7.277 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.455e-05/0.4132, allocations: 41.72 kB / 0.7295 GB, free: 7.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.767e-05/0.4133, allocations: 334.8 kB / 0.7298 GB, free: 6.895 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.4134, allocations: 43.97 kB / 0.7298 GB, free: 6.852 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.4136, allocations: 102.8 kB / 0.7299 GB, free: 6.727 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003004/0.4139, allocations: 313 kB / 0.7302 GB, free: 6.359 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.4139, allocations: 4 kB / 0.7302 GB, free: 6.355 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004891/0.4144, allocations: 348 kB / 0.7306 GB, free: 5.984 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.463e-05/0.4145, allocations: 118.8 kB / 0.7307 GB, free: 5.844 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4145, allocations: 8.25 kB / 0.7307 GB, free: 5.836 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.4145, allocations: 0 / 0.7307 GB, free: 5.836 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.4146, allocations: 23.92 kB / 0.7307 GB, free: 5.812 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.4146, allocations: 0 / 0.7307 GB, free: 5.812 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.4147, allocations: 19.84 kB / 0.7307 GB, free: 5.793 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.808e-05/0.4148, allocations: 11.98 kB / 0.7307 GB, free: 5.781 MB / 0.545 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.0001369/0.4149, allocations: 193.2 kB / 0.7309 GB, free: 5.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.4149, allocations: 19.81 kB / 0.7309 GB, free: 5.551 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.792e-05/0.415, allocations: 17.41 kB / 0.731 GB, free: 5.535 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.415, allocations: 11.88 kB / 0.731 GB, free: 5.523 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.415, allocations: 0 / 0.731 GB, free: 5.523 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.415, allocations: 4.266 kB / 0.731 GB, free: 5.52 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006172/0.4156, allocations: 0.5798 MB / 0.7315 GB, free: 4.871 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4156, allocations: 3.938 kB / 0.7315 GB, free: 4.867 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.265e-05/0.4157, allocations: 11.98 kB / 0.7316 GB, free: 4.855 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.4157, allocations: 4 kB / 0.7316 GB, free: 4.852 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/0.4157, allocations: 4 kB / 0.7316 GB, free: 4.848 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4158, allocations: 0 / 0.7316 GB, free: 4.848 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4158, allocations: 7.922 kB / 0.7316 GB, free: 4.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004798/0.4162, allocations: 406.6 kB / 0.732 GB, free: 4.414 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.4163, allocations: 88.95 kB / 0.732 GB, free: 4.309 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.394e-05/0.4163, allocations: 8 kB / 0.7321 GB, free: 4.301 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.4164, allocations: 8 kB / 0.7321 GB, free: 4.293 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.4165, allocations: 11.92 kB / 0.7321 GB, free: 4.281 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.4165, allocations: 11.98 kB / 0.7321 GB, free: 4.27 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.191e-05/0.4166, allocations: 132.3 kB / 0.7322 GB, free: 4.141 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4166, allocations: 0 / 0.7322 GB, free: 4.141 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002748/0.4169, allocations: 36 kB / 0.7322 GB, free: 4.105 MB / 0.545 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.0002132/0.4171, allocations: 132.7 kB / 0.7324 GB, free: 3.973 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004318/0.4175, allocations: 357.6 kB / 0.7327 GB, free: 3.574 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4176, allocations: 0 / 0.7327 GB, free: 3.574 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.4178, allocations: 211.2 kB / 0.7329 GB, free: 3.344 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.4181, allocations: 27.59 kB / 0.7329 GB, free: 3.32 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005498/0.4186, allocations: 325.5 kB / 0.7332 GB, free: 2.973 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.4189, allocations: 0.7121 MB / 0.7339 GB, free: 2.234 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.955e-05/0.4189, allocations: 16.55 kB / 0.734 GB, free: 2.219 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.976e-05/0.419, allocations: 15.42 kB / 0.734 GB, free: 2.207 MB / 0.545 GB Notification: Performance of SimCode: time 2.1e-07/0.419, allocations: 0 / 0.734 GB, free: 2.207 MB / 0.545 GB Notification: Performance of Templates: time 0.004301/0.4233, allocations: 1.998 MB / 0.7359 GB, free: 244 kB / 0.545 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)