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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.CSVWriter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cos.y|step.y",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.436/1.436, allocations: 249.3 MB / 261.8 MB, free: 5.82 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001078/0.001078, allocations: 172.8 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.888/1.888, allocations: 205.2 MB / 0.572 GB, free: 10.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008652/0.0008653, allocations: 90.47 kB / 0.6764 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.537e-05/3.544e-05, allocations: 4 kB / 0.7879 GB, free: 97.07 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2481, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8166/1.065, allocations: 133.8 MB / 1.022 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/1.065, allocations: 87.98 kB / 1.023 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01364/1.079, allocations: 4.999 MB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.675e-06/1.079, allocations: 0 / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.689e-05/1.079, allocations: 3.938 kB / 1.027 GB, free: 12.66 MB / 0.6511 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.0007242/1.08, allocations: 0.5106 MB / 1.028 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/1.08, allocations: 12.03 kB / 1.028 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.61e-05/1.08, allocations: 15.91 kB / 1.028 GB, free: 12.06 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003526/1.08, allocations: 233 kB / 1.028 GB, free: 11.81 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.53e-05/1.08, allocations: 8 kB / 1.028 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/1.08, allocations: 15.44 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/1.08, allocations: 98.69 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/1.08, allocations: 0 / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/1.08, allocations: 7.25 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/1.08, allocations: 0 / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001289/1.081, allocations: 57.36 kB / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007996/1.081, allocations: 418.2 kB / 1.029 GB, free: 11.25 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/1.082, allocations: 79.78 kB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/1.082, allocations: 71.89 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.681e-05/1.082, allocations: 3.938 kB / 1.029 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002411/1.082, allocations: 171.7 kB / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/1.082, allocations: 0 / 1.029 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0005454/1.083, allocations: 276.6 kB / 1.029 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/1.083, allocations: 173.2 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/1.083, allocations: 158.8 kB / 1.03 GB, free: 10.35 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/1.083, allocations: 33.39 kB / 1.03 GB, free: 10.32 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001024/1.083, allocations: 112.5 kB / 1.03 GB, free: 10.21 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.765e-05/1.083, allocations: 26.77 kB / 1.03 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.918e-06/1.083, allocations: 0 / 1.03 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001816/1.083, allocations: 334 kB / 1.03 GB, free: 9.863 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.027e-05/1.083, allocations: 38.44 kB / 1.03 GB, free: 9.836 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/1.084, allocations: 98.34 kB / 1.03 GB, free: 9.73 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001827/1.084, allocations: 163 kB / 1.03 GB, free: 9.562 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/1.084, allocations: 4 kB / 1.03 GB, free: 9.559 MB / 0.6511 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004452/1.084, allocations: 323.3 kB / 1.031 GB, free: 9.246 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001004/1.084, allocations: 125.5 kB / 1.031 GB, free: 9.102 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/1.084, allocations: 0 / 1.031 GB, free: 9.102 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.23e-05/1.084, allocations: 4 kB / 1.031 GB, free: 9.098 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/1.085, allocations: 20.23 kB / 1.031 GB, free: 9.078 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/1.085, allocations: 4 kB / 1.031 GB, free: 9.074 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/1.085, allocations: 22.77 kB / 1.031 GB, free: 9.055 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/1.085, allocations: 8 kB / 1.031 GB, free: 9.047 MB / 0.6511 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 () * 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.0001495/1.085, allocations: 179 kB / 1.031 GB, free: 8.859 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/1.085, allocations: 19.81 kB / 1.031 GB, free: 8.84 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.348e-05/1.085, allocations: 20.33 kB / 1.031 GB, free: 8.828 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/1.085, allocations: 0 / 1.031 GB, free: 8.828 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/1.085, allocations: 0 / 1.031 GB, free: 8.828 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/1.085, allocations: 4 kB / 1.031 GB, free: 8.824 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007603/1.086, allocations: 0.5654 MB / 1.032 GB, free: 8.254 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/1.086, allocations: 0 / 1.032 GB, free: 8.254 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.841e-05/1.086, allocations: 8 kB / 1.032 GB, free: 8.246 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/1.086, allocations: 7.922 kB / 1.032 GB, free: 8.238 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/1.086, allocations: 11.25 kB / 1.032 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/1.086, allocations: 0 / 1.032 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.086, allocations: 3.953 kB / 1.032 GB, free: 8.227 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/1.087, allocations: 385.2 kB / 1.032 GB, free: 7.867 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.472e-05/1.087, allocations: 89 kB / 1.032 GB, free: 7.762 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.571e-05/1.087, allocations: 4 kB / 1.032 GB, free: 7.758 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/1.087, allocations: 11.19 kB / 1.032 GB, free: 7.75 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/1.087, allocations: 11.92 kB / 1.032 GB, free: 7.738 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/1.087, allocations: 11.52 kB / 1.032 GB, free: 7.73 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0001151/1.087, allocations: 131.9 kB / 1.032 GB, free: 7.613 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.41e-07/1.087, allocations: 0 / 1.032 GB, free: 7.613 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002883/1.087, allocations: 34.75 kB / 1.032 GB, free: 7.582 MB / 0.6511 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) * 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.0003162/1.088, allocations: 130 kB / 1.032 GB, free: 7.453 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003995/1.088, allocations: 342 kB / 1.033 GB, free: 7.102 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.088, allocations: 0 / 1.033 GB, free: 7.102 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001824/1.088, allocations: 195.3 kB / 1.033 GB, free: 6.914 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/1.088, allocations: 19.59 kB / 1.033 GB, free: 6.898 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005349/1.089, allocations: 208.8 kB / 1.033 GB, free: 6.699 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/1.089, allocations: 0.7165 MB / 1.034 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.392e-05/1.089, allocations: 24.52 kB / 1.034 GB, free: 5.934 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.612e-05/1.09, allocations: 15.38 kB / 1.034 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of SimCode: time 5.31e-07/1.09, allocations: 0 / 1.034 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of Templates: time 0.005542/1.095, allocations: 1.912 MB / 1.036 GB, free: 4.039 MB / 0.6511 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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches