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.0008681/0.0008683, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.000991/0.0009912, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.605/1.605, allocations: 252 MB / 0.5102 GB, free: 4.812 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.000571/0.0005711, allocations: 12 kB / 0.6243 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.503/0.5035, allocations: 106.3 MB / 0.7281 GB, free: 11.55 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001834/0.5054, allocations: 1.293 MB / 0.7294 GB, free: 10.25 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008658/0.5063, allocations: 0.636 MB / 0.73 GB, free: 9.602 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.147e-05/0.5064, allocations: 4 kB / 0.73 GB, free: 9.598 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001375/0.5065, allocations: 27.8 kB / 0.73 GB, free: 9.57 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.5067, allocations: 31.83 kB / 0.7301 GB, free: 9.539 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.5071, allocations: 103.8 kB / 0.7302 GB, free: 9.438 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000159/0.5073, allocations: 147.6 kB / 0.7303 GB, free: 9.293 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.5074, allocations: 17.11 kB / 0.7303 GB, free: 9.277 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001306/0.5075, allocations: 71.75 kB / 0.7304 GB, free: 9.207 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.5077, allocations: 79.72 kB / 0.7305 GB, free: 9.129 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.962e-05/0.5077, allocations: 8 kB / 0.7305 GB, free: 9.121 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.321e-05/0.5078, allocations: 12 kB / 0.7305 GB, free: 9.109 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 6.838e-05/0.5079, allocations: 31.91 kB / 0.7305 GB, free: 9.078 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.884e-05/0.5079, allocations: 49.64 kB / 0.7306 GB, free: 9.023 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.5081, allocations: 113.9 kB / 0.7307 GB, free: 8.914 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.5081, allocations: 0 / 0.7307 GB, free: 8.914 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5081, allocations: 0 / 0.7307 GB, free: 8.914 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.907e-06/0.5081, allocations: 0 / 0.7307 GB, free: 8.914 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.0006179/0.5087, allocations: 0.5288 MB / 0.7312 GB, free: 8.312 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.5088, allocations: 8.031 kB / 0.7312 GB, free: 8.305 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.766e-05/0.5088, allocations: 19.91 kB / 0.7312 GB, free: 8.285 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002694/0.5091, allocations: 239.3 kB / 0.7314 GB, free: 8.012 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.5091, allocations: 8 kB / 0.7315 GB, free: 8.004 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.5092, allocations: 12 kB / 0.7315 GB, free: 7.992 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000241/0.5094, allocations: 113.6 kB / 0.7316 GB, free: 7.875 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.5094, allocations: 0 / 0.7316 GB, free: 7.875 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.5094, allocations: 4 kB / 0.7316 GB, free: 7.871 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.5095, allocations: 7.984 kB / 0.7316 GB, free: 7.863 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.5096, allocations: 83.88 kB / 0.7317 GB, free: 7.781 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.5102, allocations: 416.7 kB / 0.7321 GB, free: 7.324 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.5104, allocations: 98.55 kB / 0.7322 GB, free: 7.219 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.5106, allocations: 80.81 kB / 0.7322 GB, free: 7.137 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.368e-05/0.5106, allocations: 4 kB / 0.7322 GB, free: 7.133 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002867/0.5109, allocations: 178.6 kB / 0.7324 GB, free: 6.934 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.5109, allocations: 0 / 0.7324 GB, free: 6.934 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006998/0.5116, allocations: 368.7 kB / 0.7328 GB, free: 6.555 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.572e-05/0.5117, allocations: 170.4 kB / 0.7329 GB, free: 6.352 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001548/0.5119, allocations: 171.1 kB / 0.7331 GB, free: 6.172 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.5119, allocations: 33.7 kB / 0.7331 GB, free: 6.133 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.524e-05/0.512, allocations: 112.3 kB / 0.7332 GB, free: 6.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.759e-05/0.512, allocations: 23.66 kB / 0.7332 GB, free: 5.996 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.183e-05/0.5121, allocations: 8 kB / 0.7333 GB, free: 5.988 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.5122, allocations: 326.8 kB / 0.7336 GB, free: 5.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.5123, allocations: 51.95 kB / 0.7336 GB, free: 5.609 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001707/0.5125, allocations: 118 kB / 0.7337 GB, free: 5.473 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.5127, allocations: 174.8 kB / 0.7339 GB, free: 5.277 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.5127, allocations: 4 kB / 0.7339 GB, free: 5.273 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000483/0.5132, allocations: 348 kB / 0.7342 GB, free: 4.902 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.665e-05/0.5133, allocations: 127 kB / 0.7344 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5133, allocations: 0 / 0.7344 GB, free: 4.754 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.5133, allocations: 4 kB / 0.7344 GB, free: 4.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.5134, allocations: 23.94 kB / 0.7344 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.5135, allocations: 0 / 0.7344 GB, free: 4.727 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.396e-05/0.5136, allocations: 27.83 kB / 0.7344 GB, free: 4.699 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.269e-05/0.5136, allocations: 8 kB / 0.7344 GB, free: 4.691 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 ($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.0001433/0.5137, allocations: 201.1 kB / 0.7346 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.541e-05/0.5138, allocations: 11.91 kB / 0.7346 GB, free: 4.465 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.733e-05/0.5138, allocations: 21.39 kB / 0.7346 GB, free: 4.445 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.5138, allocations: 0 / 0.7346 GB, free: 4.445 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.5138, allocations: 3.953 kB / 0.7346 GB, free: 4.441 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.5138, allocations: 4 kB / 0.7346 GB, free: 4.438 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007796/0.5146, allocations: 0.5876 MB / 0.7352 GB, free: 3.781 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5146, allocations: 0 / 0.7352 GB, free: 3.781 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.585e-05/0.5147, allocations: 15.98 kB / 0.7352 GB, free: 3.766 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.5147, allocations: 288 / 0.7352 GB, free: 3.766 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.5147, allocations: 7.984 kB / 0.7352 GB, free: 3.758 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.5148, allocations: 7.953 kB / 0.7352 GB, free: 3.75 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5148, allocations: 3.938 kB / 0.7353 GB, free: 3.746 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000563/0.5153, allocations: 410.7 kB / 0.7356 GB, free: 3.316 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.5154, allocations: 88.92 kB / 0.7357 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.959e-05/0.5155, allocations: 8 kB / 0.7357 GB, free: 3.203 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001083/0.5156, allocations: 11.98 kB / 0.7357 GB, free: 3.191 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.5156, allocations: 11.94 kB / 0.7358 GB, free: 3.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.5157, allocations: 16 kB / 0.7358 GB, free: 3.164 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001038/0.5158, allocations: 123.2 kB / 0.7359 GB, free: 3.043 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.563e-06/0.5158, allocations: 0 / 0.7359 GB, free: 3.043 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003025/0.5161, allocations: 47.86 kB / 0.7359 GB, free: 2.996 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 (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.0002824/0.5164, allocations: 131.4 kB / 0.7361 GB, free: 2.863 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000528/0.5169, allocations: 365.5 kB / 0.7364 GB, free: 2.457 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.5169, allocations: 0 / 0.7364 GB, free: 2.457 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.5172, allocations: 219.2 kB / 0.7366 GB, free: 2.219 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.5175, allocations: 27.72 kB / 0.7366 GB, free: 2.195 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006968/0.5182, allocations: 317.9 kB / 0.737 GB, free: 1.855 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.5187, allocations: 0.7043 MB / 0.7376 GB, free: 1.125 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 7.785e-05/0.5188, allocations: 20.53 kB / 0.7377 GB, free: 1.105 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.535e-05/0.5189, allocations: 11.44 kB / 0.7377 GB, free: 1.098 MB / 0.545 GB Notification: Performance of SimCode: time 4.31e-07/0.5189, allocations: 4 kB / 0.7377 GB, free: 1.094 MB / 0.545 GB Notification: Performance of Templates: time 0.005859/0.5248, allocations: 1.931 MB / 0.7396 GB, free: 15.18 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: