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.001004/0.001004, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.182/1.182, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.422/1.422, allocations: 251.7 MB / 0.5092 GB, free: 3.141 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.001243/0.001243, allocations: 68.22 kB / 0.6223 GB, free: 1.5 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3555, allocations: 104.7 MB / 0.7245 GB, free: 13.07 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002418/0.358, allocations: 1.621 MB / 0.7261 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0008148/0.3588, allocations: 0.6667 MB / 0.7267 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.009e-05/0.3589, allocations: 0 / 0.7267 GB, free: 10.75 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.359, allocations: 19.78 kB / 0.7268 GB, free: 10.73 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001672/0.3592, allocations: 39.78 kB / 0.7268 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.3595, allocations: 107.8 kB / 0.7269 GB, free: 10.59 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001872/0.3597, allocations: 207.6 kB / 0.7271 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 9.7e-05/0.3598, allocations: 17.12 kB / 0.7271 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001187/0.36, allocations: 91.67 kB / 0.7272 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.3601, allocations: 87.72 kB / 0.7273 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.3601, allocations: 16 kB / 0.7273 GB, free: 10.18 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.957e-05/0.3602, allocations: 24 kB / 0.7273 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 7.087e-05/0.3603, allocations: 31.91 kB / 0.7274 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 8.038e-05/0.3604, allocations: 71.66 kB / 0.7274 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/0.3605, allocations: 161.5 kB / 0.7276 GB, free: 9.898 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3605, allocations: 4 kB / 0.7276 GB, free: 9.895 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.202e-06/0.3606, allocations: 4 kB / 0.7276 GB, free: 9.891 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.628e-06/0.3606, allocations: 0 / 0.7276 GB, free: 9.891 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.0005766/0.3611, allocations: 0.5563 MB / 0.7281 GB, free: 9.262 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.3612, allocations: 8.031 kB / 0.7281 GB, free: 9.254 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.536e-05/0.3612, allocations: 20.75 kB / 0.7282 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.3615, allocations: 236.1 kB / 0.7284 GB, free: 8.965 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.161e-05/0.3615, allocations: 8.375 kB / 0.7284 GB, free: 8.957 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.779e-05/0.3615, allocations: 12.38 kB / 0.7284 GB, free: 8.945 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.3618, allocations: 117.7 kB / 0.7285 GB, free: 8.824 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.3618, allocations: 3.938 kB / 0.7285 GB, free: 8.82 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.406e-05/0.3618, allocations: 4 kB / 0.7285 GB, free: 8.816 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3618, allocations: 4 kB / 0.7285 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.362, allocations: 71.88 kB / 0.7286 GB, free: 8.742 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005247/0.3625, allocations: 412.5 kB / 0.729 GB, free: 8.289 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.3627, allocations: 98.56 kB / 0.7291 GB, free: 8.184 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.3629, allocations: 72.97 kB / 0.7291 GB, free: 8.109 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.3629, allocations: 7.984 kB / 0.7292 GB, free: 8.102 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.3631, allocations: 174.7 kB / 0.7293 GB, free: 7.906 MB / 0.545 GB Notification: Performance of pre-optimization done (n=10): time 2.465e-06/0.3631, allocations: 7.938 kB / 0.7293 GB, free: 7.898 MB / 0.545 GB Notification: Performance of matching and sorting (n=10): time 0.0006275/0.3638, allocations: 352.7 kB / 0.7297 GB, free: 7.535 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.934e-05/0.3638, allocations: 166.2 kB / 0.7298 GB, free: 7.336 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.364, allocations: 175.2 kB / 0.73 GB, free: 7.156 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.364, allocations: 33.7 kB / 0.73 GB, free: 7.117 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.3641, allocations: 112.3 kB / 0.7301 GB, free: 7.004 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.3641, allocations: 23.66 kB / 0.7302 GB, free: 6.98 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/0.3642, allocations: 41.7 kB / 0.7302 GB, free: 6.934 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.033e-05/0.3643, allocations: 326.8 kB / 0.7305 GB, free: 6.605 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.3644, allocations: 51.95 kB / 0.7306 GB, free: 6.555 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.3645, allocations: 108.9 kB / 0.7307 GB, free: 6.426 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002804/0.3648, allocations: 313 kB / 0.731 GB, free: 6.059 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3648, allocations: 0 / 0.731 GB, free: 6.059 MB / 0.545 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004467/0.3653, allocations: 344 kB / 0.7313 GB, free: 5.691 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.922e-05/0.3654, allocations: 122.8 kB / 0.7314 GB, free: 5.547 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3654, allocations: 256 / 0.7314 GB, free: 5.547 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.3654, allocations: 8 kB / 0.7314 GB, free: 5.539 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.592e-05/0.3655, allocations: 19.92 kB / 0.7314 GB, free: 5.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.3655, allocations: 4 kB / 0.7314 GB, free: 5.516 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.861e-05/0.3656, allocations: 15.84 kB / 0.7314 GB, free: 5.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.3656, allocations: 12 kB / 0.7315 GB, free: 5.488 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.0001209/0.3657, allocations: 197.2 kB / 0.7316 GB, free: 5.273 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.168e-05/0.3658, allocations: 15.81 kB / 0.7317 GB, free: 5.258 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.3658, allocations: 13.41 kB / 0.7317 GB, free: 5.246 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3658, allocations: 7.938 kB / 0.7317 GB, free: 5.238 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3658, allocations: 7.938 kB / 0.7317 GB, free: 5.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3658, allocations: 0 / 0.7317 GB, free: 5.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006047/0.3664, allocations: 0.5759 MB / 0.7323 GB, free: 4.586 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3665, allocations: 3.938 kB / 0.7323 GB, free: 4.582 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-05/0.3665, allocations: 12.27 kB / 0.7323 GB, free: 4.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.3665, allocations: 4 kB / 0.7323 GB, free: 4.566 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.3666, allocations: 12 kB / 0.7323 GB, free: 4.555 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3666, allocations: 3.938 kB / 0.7323 GB, free: 4.551 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3666, allocations: 3.938 kB / 0.7323 GB, free: 4.547 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.367, allocations: 402.6 kB / 0.7327 GB, free: 4.125 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.759e-05/0.3671, allocations: 92.94 kB / 0.7328 GB, free: 4.016 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/0.3671, allocations: 4 kB / 0.7328 GB, free: 4.012 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.3672, allocations: 12 kB / 0.7328 GB, free: 4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.01e-05/0.3673, allocations: 15.92 kB / 0.7328 GB, free: 3.984 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.3673, allocations: 4 kB / 0.7328 GB, free: 3.98 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.092e-05/0.3674, allocations: 131.2 kB / 0.7329 GB, free: 3.852 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.3674, allocations: 0 / 0.7329 GB, free: 3.852 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.000261/0.3677, allocations: 40 kB / 0.733 GB, free: 3.812 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.0001758/0.3678, allocations: 128.4 kB / 0.7331 GB, free: 3.684 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0004151/0.3683, allocations: 361.4 kB / 0.7334 GB, free: 3.281 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3683, allocations: 0 / 0.7334 GB, free: 3.281 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.3685, allocations: 206.8 kB / 0.7336 GB, free: 3.055 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.3688, allocations: 23.7 kB / 0.7336 GB, free: 3.035 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00048/0.3692, allocations: 307.6 kB / 0.7339 GB, free: 2.707 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001892/0.3694, allocations: 0.708 MB / 0.7346 GB, free: 1.973 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 5.552e-05/0.3695, allocations: 24.47 kB / 0.7347 GB, free: 1.949 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.652e-05/0.3695, allocations: 15.42 kB / 0.7347 GB, free: 1.938 MB / 0.545 GB Notification: Performance of SimCode: time 1.293e-06/0.3695, allocations: 0 / 0.7347 GB, free: 1.938 MB / 0.545 GB Notification: Performance of Templates: time 0.004167/0.3737, allocations: 2.071 MB / 0.7367 GB, free: 15.89 MB / 0.5606 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)