Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter") translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.578/2.578, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 169.2 kB / 498.1 MB, free: 5.738 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.2 MB / 0.7948 GB, free: 17.9 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 98.39 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.0003791, allocations: 13.66 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2527, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1756/0.4283, allocations: 151.4 MB / 1.371 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/0.4286, allocations: 83.89 kB / 1.371 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01519/0.4438, allocations: 5.091 MB / 1.376 GB, free: 5.508 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.325e-06/0.4439, allocations: 3.938 kB / 1.376 GB, free: 5.504 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.874e-05/0.4439, allocations: 7.938 kB / 1.376 GB, free: 5.496 MB / 0.8698 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.001188/0.4451, allocations: 0.5308 MB / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.4452, allocations: 12.03 kB / 1.376 GB, free: 4.883 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.4453, allocations: 19.81 kB / 1.376 GB, free: 4.863 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004608/0.4458, allocations: 231.7 kB / 1.377 GB, free: 4.598 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.4458, allocations: 8 kB / 1.377 GB, free: 4.59 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.4459, allocations: 12 kB / 1.377 GB, free: 4.578 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003417/0.4462, allocations: 121.5 kB / 1.377 GB, free: 4.453 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.4462, allocations: 0 / 1.377 GB, free: 4.453 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.4463, allocations: 8 kB / 1.377 GB, free: 4.445 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.4463, allocations: 0 / 1.377 GB, free: 4.445 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.4465, allocations: 71.95 kB / 1.377 GB, free: 4.375 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008652/0.4474, allocations: 428.5 kB / 1.377 GB, free: 3.906 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/0.4476, allocations: 90.47 kB / 1.377 GB, free: 3.809 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.047e-05/0.4477, allocations: 4 kB / 1.377 GB, free: 3.805 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003088/0.448, allocations: 182.9 kB / 1.377 GB, free: 3.602 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 2.004e-06/0.448, allocations: 0 / 1.377 GB, free: 3.602 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0009331/0.449, allocations: 0.5185 MB / 1.378 GB, free: 3.027 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.4491, allocations: 162.2 kB / 1.378 GB, free: 2.832 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002044/0.4493, allocations: 161.8 kB / 1.378 GB, free: 2.664 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.017e-05/0.4493, allocations: 25.7 kB / 1.378 GB, free: 2.633 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 9.781e-05/0.4494, allocations: 112.3 kB / 1.378 GB, free: 2.516 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.4495, allocations: 31.55 kB / 1.378 GB, free: 2.484 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.502e-05/0.4495, allocations: 8 kB / 1.378 GB, free: 2.477 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4496, allocations: 322.8 kB / 1.379 GB, free: 2.152 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001489/0.4498, allocations: 59.95 kB / 1.379 GB, free: 2.094 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.45, allocations: 106.8 kB / 1.379 GB, free: 1.965 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.4502, allocations: 174.8 kB / 1.379 GB, free: 1.77 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4502, allocations: 0 / 1.379 GB, free: 1.77 MB / 0.8698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005481/0.4508, allocations: 352.1 kB / 1.379 GB, free: 1.395 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.37e-05/0.4509, allocations: 123.6 kB / 1.379 GB, free: 1.25 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.4509, allocations: 0 / 1.379 GB, free: 1.25 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.4509, allocations: 4 kB / 1.379 GB, free: 1.246 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.451, allocations: 24.17 kB / 1.379 GB, free: 1.223 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.451, allocations: 7.953 kB / 1.379 GB, free: 1.215 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.4511, allocations: 23.89 kB / 1.38 GB, free: 1.191 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.4512, allocations: 11.94 kB / 1.38 GB, free: 1.18 MB / 0.8698 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.0001431/0.4513, allocations: 189.2 kB / 1.38 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.858e-05/0.4514, allocations: 19.81 kB / 1.38 GB, free: 0.9531 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.299e-05/0.4514, allocations: 17.41 kB / 1.38 GB, free: 0.9297 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.4514, allocations: 7.984 kB / 1.38 GB, free: 0.9219 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4514, allocations: 0 / 1.38 GB, free: 0.9219 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4514, allocations: 8.172 kB / 1.38 GB, free: 0.9141 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006951/0.4521, allocations: 0.5799 MB / 1.38 GB, free: 272 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.4521, allocations: 4 kB / 1.38 GB, free: 268 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.492e-05/0.4522, allocations: 19.92 kB / 1.38 GB, free: 248 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.4522, allocations: 3.984 kB / 1.38 GB, free: 244 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.025e-05/0.4523, allocations: 8 kB / 1.38 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.4523, allocations: 80 / 1.38 GB, free: 236 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.4523, allocations: 7.938 kB / 1.38 GB, free: 228 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005571/0.4528, allocations: 410.7 kB / 1.381 GB, free: 15.79 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.546e-05/0.4529, allocations: 96.84 kB / 1.381 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/0.453, allocations: 8 kB / 1.381 GB, free: 15.67 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001177/0.4531, allocations: 8 kB / 1.381 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/0.4532, allocations: 11.94 kB / 1.381 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.4532, allocations: 8 kB / 1.381 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001144/0.4533, allocations: 127.2 kB / 1.381 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4533, allocations: 4 kB / 1.381 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002866/0.4536, allocations: 40 kB / 1.381 GB, free: 15.48 MB / 0.8855 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.0002598/0.4539, allocations: 124.1 kB / 1.381 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000491/0.4544, allocations: 373.4 kB / 1.382 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.4544, allocations: 0 / 1.382 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002265/0.4546, allocations: 202.8 kB / 1.382 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.4548, allocations: 24.61 kB / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000546/0.4554, allocations: 313.9 kB / 1.382 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.4557, allocations: 0.716 MB / 1.383 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.611e-05/0.4558, allocations: 24.47 kB / 1.383 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.164e-05/0.4558, allocations: 15.44 kB / 1.383 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of SimCode: time 2.71e-07/0.4558, allocations: 0 / 1.383 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of Templates: time 0.004609/0.4604, allocations: 1.901 MB / 1.385 GB, free: 11.7 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches