Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.206/2.206, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001079/0.001079, allocations: 179.5 kB / 0.4902 GB, free: 2.219 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.542/1.542, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.0009524/0.0009524, allocations: 123.2 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004339/0.0004339, allocations: 7.625 kB / 1.09 GB, free: 216.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3648, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2072/0.5721, allocations: 152.2 MB / 1.378 GB, free: 1.398 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.5725, allocations: 83.94 kB / 1.378 GB, free: 1.316 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01408/0.5865, allocations: 5.086 MB / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.174e-06/0.5866, allocations: 0 / 1.383 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.349e-05/0.5866, allocations: 0 / 1.383 GB, free: 12.2 MB / 0.8855 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.0007312/0.5874, allocations: 0.5367 MB / 1.383 GB, free: 11.59 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.5874, allocations: 8.562 kB / 1.383 GB, free: 11.58 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.316e-05/0.5875, allocations: 23.81 kB / 1.383 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.5878, allocations: 223.4 kB / 1.384 GB, free: 11.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/0.5878, allocations: 7.938 kB / 1.384 GB, free: 11.29 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.5879, allocations: 16 kB / 1.384 GB, free: 11.28 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.5882, allocations: 117.6 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.5882, allocations: 0 / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.5882, allocations: 0 / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.5883, allocations: 12 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002057/0.5885, allocations: 75.89 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007261/0.5892, allocations: 436.4 kB / 1.384 GB, free: 10.59 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.5894, allocations: 86.53 kB / 1.384 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.5894, allocations: 8.031 kB / 1.384 GB, free: 10.49 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002684/0.5897, allocations: 186.7 kB / 1.385 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.774e-06/0.5897, allocations: 0 / 1.385 GB, free: 10.29 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0008718/0.5906, allocations: 0.5108 MB / 1.385 GB, free: 9.719 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.5907, allocations: 166.2 kB / 1.385 GB, free: 9.52 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.5909, allocations: 162.5 kB / 1.385 GB, free: 9.352 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.5909, allocations: 33.7 kB / 1.385 GB, free: 9.312 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.993e-05/0.591, allocations: 104.4 kB / 1.385 GB, free: 9.203 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.322e-05/0.591, allocations: 19.72 kB / 1.385 GB, free: 9.184 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.268e-05/0.5911, allocations: 8 kB / 1.385 GB, free: 9.176 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001163/0.5912, allocations: 326.8 kB / 1.386 GB, free: 8.848 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.5913, allocations: 55.97 kB / 1.386 GB, free: 8.793 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001671/0.5915, allocations: 106.8 kB / 1.386 GB, free: 8.664 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002057/0.5917, allocations: 182.7 kB / 1.386 GB, free: 8.461 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.5917, allocations: 3.984 kB / 1.386 GB, free: 8.457 MB / 0.8855 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005194/0.5923, allocations: 352.1 kB / 1.386 GB, free: 8.082 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.368e-05/0.5923, allocations: 118.7 kB / 1.387 GB, free: 7.941 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5924, allocations: 4 kB / 1.387 GB, free: 7.938 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.5924, allocations: 4 kB / 1.387 GB, free: 7.934 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.5925, allocations: 20.23 kB / 1.387 GB, free: 7.914 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.5925, allocations: 7.953 kB / 1.387 GB, free: 7.906 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.5926, allocations: 23.92 kB / 1.387 GB, free: 7.883 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.938e-05/0.5927, allocations: 4 kB / 1.387 GB, free: 7.879 MB / 0.8855 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.0001506/0.5928, allocations: 193.9 kB / 1.387 GB, free: 7.668 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.5929, allocations: 19.81 kB / 1.387 GB, free: 7.648 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.444e-05/0.5929, allocations: 17.39 kB / 1.387 GB, free: 7.633 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.5929, allocations: 4.281 kB / 1.387 GB, free: 7.629 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5929, allocations: 4 kB / 1.387 GB, free: 7.625 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.373e-06/0.5929, allocations: 7.938 kB / 1.387 GB, free: 7.617 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007001/0.5936, allocations: 0.5837 MB / 1.387 GB, free: 6.965 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5937, allocations: 0 / 1.387 GB, free: 6.965 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.007e-05/0.5937, allocations: 19.98 kB / 1.387 GB, free: 6.945 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.5937, allocations: 3.938 kB / 1.387 GB, free: 6.941 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.5938, allocations: 4 kB / 1.387 GB, free: 6.938 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.5938, allocations: 4 kB / 1.387 GB, free: 6.934 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.5938, allocations: 7.938 kB / 1.387 GB, free: 6.926 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000562/0.5944, allocations: 414.6 kB / 1.388 GB, free: 6.492 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.505e-05/0.5944, allocations: 92.91 kB / 1.388 GB, free: 6.383 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.5945, allocations: 8 kB / 1.388 GB, free: 6.375 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.5946, allocations: 8 kB / 1.388 GB, free: 6.367 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.5947, allocations: 7.938 kB / 1.388 GB, free: 6.359 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.5947, allocations: 12 kB / 1.388 GB, free: 6.348 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001015/0.5948, allocations: 124.3 kB / 1.388 GB, free: 6.227 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5948, allocations: 0 / 1.388 GB, free: 6.227 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002885/0.5951, allocations: 43.94 kB / 1.388 GB, free: 6.184 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.0002686/0.5954, allocations: 131.5 kB / 1.388 GB, free: 6.047 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000481/0.5959, allocations: 377.4 kB / 1.389 GB, free: 5.629 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5959, allocations: 0 / 1.389 GB, free: 5.629 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002261/0.5961, allocations: 210.7 kB / 1.389 GB, free: 5.398 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002239/0.5963, allocations: 17.62 kB / 1.389 GB, free: 5.379 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005941/0.5969, allocations: 309.9 kB / 1.389 GB, free: 5.047 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002655/0.5972, allocations: 0.72 MB / 1.39 GB, free: 4.301 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 6.368e-05/0.5973, allocations: 20.53 kB / 1.39 GB, free: 4.281 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.5973, allocations: 11.44 kB / 1.39 GB, free: 4.27 MB / 0.8855 GB Notification: Performance of SimCode: time 2.4e-07/0.5973, allocations: 0 / 1.39 GB, free: 4.27 MB / 0.8855 GB Notification: Performance of Templates: time 0.005787/0.6031, allocations: 1.914 MB / 1.392 GB, free: 2.379 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches