Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00096/0.00096, allocations: 80.39 kB / 21.47 MB, free: 3.031 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 170.6 kB / 24.86 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9968/0.9968, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.862/1.862, allocations: 377.9 MB / 0.6247 GB, free: 8.426 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 0.8128 GB, free: 1.477 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.775e-05/1.891e-05, allocations: 2.312 kB / 0.8128 GB, free: 1.473 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002424/0.002443, allocations: 1.677 MB / 0.8144 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0007888/0.003232, allocations: 0.6599 MB / 0.8151 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.998e-05/0.003302, allocations: 5.625 kB / 0.8151 GB, free: 15.14 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.003439, allocations: 31.72 kB / 0.8151 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.000168/0.003607, allocations: 39.77 kB / 0.8151 GB, free: 15.07 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000269/0.003876, allocations: 125.2 kB / 0.8152 GB, free: 14.95 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.004071, allocations: 187.5 kB / 0.8154 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.046e-05/0.004162, allocations: 25.55 kB / 0.8154 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001906/0.004352, allocations: 123.7 kB / 0.8156 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 9.296e-05/0.004445, allocations: 69.44 kB / 0.8156 GB, free: 14.55 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.598e-05/0.004471, allocations: 12 kB / 0.8156 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.013e-05/0.004532, allocations: 28 kB / 0.8157 GB, free: 14.51 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.206e-05/0.004604, allocations: 31.91 kB / 0.8157 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.405e-05/0.004658, allocations: 56.42 kB / 0.8158 GB, free: 14.42 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.004834, allocations: 152.3 kB / 0.8159 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.004837, allocations: 3.984 kB / 0.8159 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.82e-07/0.004838, allocations: 1.156 kB / 0.8159 GB, free: 14.27 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.004842, allocations: 0 / 0.8159 GB, free: 14.27 MB / 0.7761 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.0004705/0.005312, allocations: 0.5846 MB / 0.8165 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.005344, allocations: 9.406 kB / 0.8165 GB, free: 13.62 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.00547, allocations: 32.83 kB / 0.8165 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.005667, allocations: 182.1 kB / 0.8167 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.005682, allocations: 8.375 kB / 0.8167 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.749e-05/0.0057, allocations: 12.38 kB / 0.8167 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.005866, allocations: 158.2 kB / 0.8169 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.005873, allocations: 1.25 kB / 0.8169 GB, free: 13.19 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.005886, allocations: 8.375 kB / 0.8169 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.005892, allocations: 3.938 kB / 0.8169 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.2e-05/0.005954, allocations: 80.84 kB / 0.817 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003799/0.006334, allocations: 368.1 kB / 0.8173 GB, free: 12.7 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.573e-05/0.006429, allocations: 117 kB / 0.8174 GB, free: 12.56 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.018e-05/0.00649, allocations: 95.06 kB / 0.8175 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.006511, allocations: 7.938 kB / 0.8175 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001415/0.006652, allocations: 219.9 kB / 0.8177 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.006654, allocations: 0 / 0.8177 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of matching and sorting (n=10): time 0.0003767/0.00703, allocations: 391.7 kB / 0.8181 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.00709, allocations: 174.7 kB / 0.8183 GB, free: 11.56 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.00721, allocations: 227.2 kB / 0.8185 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.007225, allocations: 30.42 kB / 0.8185 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.007287, allocations: 159.1 kB / 0.8187 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.452e-05/0.007311, allocations: 28.31 kB / 0.8187 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-05/0.007362, allocations: 45 kB / 0.8187 GB, free: 11.04 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001216/0.007483, allocations: 0.4962 MB / 0.8192 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.135e-05/0.007555, allocations: 130.8 kB / 0.8193 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.572e-05/0.00765, allocations: 208.2 kB / 0.8195 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.007794, allocations: 294.9 kB / 0.8198 GB, free: 9.762 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.007796, allocations: 0 / 0.8198 GB, free: 9.762 MB / 0.7761 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002744/0.008071, allocations: 409.2 kB / 0.8202 GB, free: 9.309 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/0.008126, allocations: 122.7 kB / 0.8203 GB, free: 9.164 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.008131, allocations: 0 / 0.8203 GB, free: 9.164 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.118e-05/0.008142, allocations: 6.719 kB / 0.8203 GB, free: 9.16 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.529e-05/0.008207, allocations: 15.98 kB / 0.8203 GB, free: 9.145 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.008213, allocations: 7.938 kB / 0.8204 GB, free: 9.137 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.077e-05/0.008264, allocations: 15.95 kB / 0.8204 GB, free: 9.121 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.008278, allocations: 11.98 kB / 0.8204 GB, free: 9.109 MB / 0.7761 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.0004185/0.008696, allocations: 234.3 kB / 0.8206 GB, free: 8.859 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.286e-05/0.008729, allocations: 29.38 kB / 0.8206 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.722e-05/0.008757, allocations: 13.47 kB / 0.8206 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.008759, allocations: 0 / 0.8206 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-06/0.00876, allocations: 0 / 0.8206 GB, free: 8.82 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.008767, allocations: 4.5 kB / 0.8207 GB, free: 8.816 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003868/0.009154, allocations: 0.5486 MB / 0.8212 GB, free: 8.211 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.009156, allocations: 4 kB / 0.8212 GB, free: 8.207 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.299e-05/0.009189, allocations: 8 kB / 0.8212 GB, free: 8.199 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.009192, allocations: 8.969 kB / 0.8212 GB, free: 8.191 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.321e-05/0.009205, allocations: 11.98 kB / 0.8212 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.009206, allocations: 0 / 0.8212 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.009207, allocations: 0.7188 kB / 0.8212 GB, free: 8.18 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00028/0.009487, allocations: 458.6 kB / 0.8217 GB, free: 7.688 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.413e-05/0.009501, allocations: 21.7 kB / 0.8217 GB, free: 7.668 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.009524, allocations: 12 kB / 0.8217 GB, free: 7.656 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.241e-05/0.009576, allocations: 4 kB / 0.8217 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.161e-05/0.009608, allocations: 11.92 kB / 0.8217 GB, free: 7.641 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.00962, allocations: 11.98 kB / 0.8217 GB, free: 7.629 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 5.81e-05/0.009678, allocations: 162.9 kB / 0.8219 GB, free: 7.473 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009678, allocations: 0 / 0.8219 GB, free: 7.473 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001956/0.009874, allocations: 39.94 kB / 0.8219 GB, free: 7.434 MB / 0.7761 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.0001929/0.01007, allocations: 130.5 kB / 0.822 GB, free: 7.305 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002642/0.01033, allocations: 483.3 kB / 0.8225 GB, free: 6.742 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.01033, allocations: 3.938 kB / 0.8225 GB, free: 6.738 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.01044, allocations: 221.8 kB / 0.8227 GB, free: 6.48 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002079/0.01065, allocations: 31.92 kB / 0.8227 GB, free: 6.449 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005088/0.01116, allocations: 342.2 kB / 0.8231 GB, free: 6.078 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.726e-05/0.01119, allocations: 67.28 kB / 0.8231 GB, free: 5.992 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.44e-05/0.01123, allocations: 13.45 kB / 0.8231 GB, free: 5.977 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.01135, allocations: 119.2 kB / 0.8233 GB, free: 5.859 MB / 0.7761 GB Notification: Performance of SimCode: time 8.11e-07/0.01135, allocations: 0 / 0.8233 GB, free: 5.859 MB / 0.7761 GB Notification: Performance of Templates: time 0.003919/0.01527, allocations: 2.45 MB / 0.8256 GB, free: 3.473 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.078894781880081]