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.005084/0.005084, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001227/0.001227, allocations: 195 kB / 16.67 MB, free: 5.93 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.222/1.222, allocations: 205.1 MB / 222.5 MB, free: 4.539 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.351/1.351, allocations: 251.7 MB / 0.5094 GB, free: 3.02 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.001319/0.001319, allocations: 73.77 kB / 0.7258 GB, free: 8.992 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.2008, allocations: 104.7 MB / 0.828 GB, free: 196 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002488/0.2034, allocations: 1.61 MB / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0008681/0.2042, allocations: 0.6592 MB / 0.8302 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.321e-05/0.2043, allocations: 0 / 0.8302 GB, free: 13.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.2045, allocations: 19.78 kB / 0.8303 GB, free: 13.88 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001987/0.2047, allocations: 47.7 kB / 0.8303 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003478/0.205, allocations: 115.7 kB / 0.8304 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.2053, allocations: 199.6 kB / 0.8306 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.2054, allocations: 44.72 kB / 0.8307 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.2055, allocations: 79.83 kB / 0.8307 GB, free: 13.4 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.2057, allocations: 87.7 kB / 0.8308 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.059e-05/0.2057, allocations: 12 kB / 0.8308 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.114e-05/0.2058, allocations: 27.98 kB / 0.8309 GB, free: 13.28 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 7.757e-05/0.2058, allocations: 23.92 kB / 0.8309 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.851e-05/0.2059, allocations: 83.58 kB / 0.831 GB, free: 13.17 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.2061, allocations: 163.5 kB / 0.8311 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2061, allocations: 0 / 0.8311 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2061, allocations: 0 / 0.8311 GB, free: 13.01 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.26e-06/0.2062, allocations: 4 kB / 0.8311 GB, free: 13.01 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.0006064/0.2068, allocations: 0.5524 MB / 0.8317 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2068, allocations: 8.031 kB / 0.8317 GB, free: 12.38 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.281e-05/0.2069, allocations: 24.69 kB / 0.8317 GB, free: 12.35 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00027/0.2072, allocations: 228.2 kB / 0.8319 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.711e-05/0.2072, allocations: 12.38 kB / 0.8319 GB, free: 12.08 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.661e-05/0.2072, allocations: 8.375 kB / 0.8319 GB, free: 12.07 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.2075, allocations: 133.6 kB / 0.8321 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.2075, allocations: 0 / 0.8321 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.2075, allocations: 4 kB / 0.8321 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.2075, allocations: 0 / 0.8321 GB, free: 11.93 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.2077, allocations: 71.94 kB / 0.8321 GB, free: 11.86 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005492/0.2083, allocations: 420.4 kB / 0.8325 GB, free: 11.4 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.2084, allocations: 94.53 kB / 0.8326 GB, free: 11.3 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001367/0.2086, allocations: 72.81 kB / 0.8327 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2086, allocations: 4 kB / 0.8327 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002261/0.2088, allocations: 182.8 kB / 0.8329 GB, free: 11.02 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.2089, allocations: 4 kB / 0.8329 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of matching and sorting (n=10): time 0.0006345/0.2095, allocations: 348.9 kB / 0.8332 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.2096, allocations: 162.2 kB / 0.8334 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001435/0.2097, allocations: 179.1 kB / 0.8335 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.2098, allocations: 33.7 kB / 0.8336 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.908e-05/0.2098, allocations: 108.4 kB / 0.8337 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.5e-05/0.2099, allocations: 27.64 kB / 0.8337 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.2099, allocations: 41.7 kB / 0.8337 GB, free: 10.05 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.158e-05/0.21, allocations: 326.8 kB / 0.834 GB, free: 9.719 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.2101, allocations: 51.97 kB / 0.8341 GB, free: 9.668 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.2103, allocations: 102.5 kB / 0.8342 GB, free: 9.547 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.2106, allocations: 316.9 kB / 0.8345 GB, free: 9.176 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2106, allocations: 0 / 0.8345 GB, free: 9.176 MB / 0.6544 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004551/0.2111, allocations: 352 kB / 0.8348 GB, free: 8.801 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 6.58e-05/0.2111, allocations: 122.7 kB / 0.8349 GB, free: 8.656 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.2112, allocations: 4.25 kB / 0.8349 GB, free: 8.652 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.2112, allocations: 4 kB / 0.8349 GB, free: 8.648 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.2113, allocations: 15.98 kB / 0.835 GB, free: 8.633 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2113, allocations: 7.938 kB / 0.835 GB, free: 8.625 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.073e-05/0.2114, allocations: 11.91 kB / 0.835 GB, free: 8.613 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/0.2114, allocations: 16.34 kB / 0.835 GB, free: 8.598 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.0001322/0.2116, allocations: 199.3 kB / 0.8352 GB, free: 8.383 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.082e-05/0.2116, allocations: 15.81 kB / 0.8352 GB, free: 8.367 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.2116, allocations: 21.34 kB / 0.8352 GB, free: 8.348 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.2116, allocations: 11.98 kB / 0.8352 GB, free: 8.336 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2116, allocations: 4 kB / 0.8352 GB, free: 8.332 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2117, allocations: 0 / 0.8352 GB, free: 8.332 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006208/0.2123, allocations: 0.5798 MB / 0.8358 GB, free: 7.684 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2123, allocations: 0 / 0.8358 GB, free: 7.684 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.163e-05/0.2124, allocations: 15.98 kB / 0.8358 GB, free: 7.668 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.2124, allocations: 0 / 0.8358 GB, free: 7.668 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.858e-05/0.2124, allocations: 7.984 kB / 0.8358 GB, free: 7.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2124, allocations: 4 kB / 0.8358 GB, free: 7.656 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.2124, allocations: 7.875 kB / 0.8358 GB, free: 7.648 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000484/0.2129, allocations: 394.7 kB / 0.8362 GB, free: 7.234 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.2129, allocations: 85.02 kB / 0.8363 GB, free: 7.133 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.282e-05/0.213, allocations: 4 kB / 0.8363 GB, free: 7.129 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.2131, allocations: 12 kB / 0.8363 GB, free: 7.117 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.2131, allocations: 23.89 kB / 0.8363 GB, free: 7.094 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.2132, allocations: 7.984 kB / 0.8363 GB, free: 7.086 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 8.882e-05/0.2133, allocations: 127.2 kB / 0.8365 GB, free: 6.961 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.593e-06/0.2133, allocations: 0 / 0.8365 GB, free: 6.961 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002725/0.2135, allocations: 43.94 kB / 0.8365 GB, free: 6.918 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.0002105/0.2138, allocations: 117.5 kB / 0.8366 GB, free: 6.797 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000448/0.2142, allocations: 361.4 kB / 0.837 GB, free: 6.395 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2142, allocations: 0 / 0.837 GB, free: 6.395 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.2144, allocations: 210.7 kB / 0.8372 GB, free: 6.164 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.2147, allocations: 27.23 kB / 0.8372 GB, free: 6.141 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/0.2153, allocations: 288 kB / 0.8375 GB, free: 5.828 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.2155, allocations: 0.7156 MB / 0.8382 GB, free: 5.086 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 6.248e-05/0.2156, allocations: 16.55 kB / 0.8382 GB, free: 5.07 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.262e-05/0.2156, allocations: 19.42 kB / 0.8382 GB, free: 5.051 MB / 0.6544 GB Notification: Performance of SimCode: time 2.51e-07/0.2156, allocations: 4 kB / 0.8382 GB, free: 5.047 MB / 0.6544 GB Notification: Performance of Templates: time 0.004754/0.2204, allocations: 2.08 MB / 0.8402 GB, free: 2.992 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)