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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 113.6 kB / 16.41 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 183 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.498/2.498, allocations: 390.3 MB / 0.6655 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 59.89 kB / 0.9515 GB, free: 7.691 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7972/0.7987, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002837/0.8015, allocations: 1.602 MB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000942/0.8025, allocations: 0.6132 MB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.754e-05/0.8026, allocations: 5.281 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.8028, allocations: 13.48 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002281/0.803, allocations: 48.66 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.8034, allocations: 109.7 kB / 1.091 GB, free: 3.906 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002757/0.8037, allocations: 206 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.8039, allocations: 28.23 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001667/0.804, allocations: 82.7 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.8042, allocations: 88.44 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.157e-05/0.8042, allocations: 12.56 kB / 1.091 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.998e-05/0.8043, allocations: 31.72 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.505e-05/0.8044, allocations: 39.27 kB / 1.091 GB, free: 3.695 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.8045, allocations: 68.23 kB / 1.091 GB, free: 3.66 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.8048, allocations: 162.5 kB / 1.092 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.8048, allocations: 0 / 1.092 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.477e-06/0.8048, allocations: 0.7969 kB / 1.092 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.129e-05/0.8048, allocations: 1 kB / 1.092 GB, free: 3.598 MB / 0.8575 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.0006679/0.8055, allocations: 0.5623 MB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.8056, allocations: 9.188 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.797e-05/0.8056, allocations: 20.83 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.8059, allocations: 234.7 kB / 1.092 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.806, allocations: 11.59 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.806, allocations: 14.47 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.8063, allocations: 115.4 kB / 1.093 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.8063, allocations: 4 kB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.8064, allocations: 3.031 kB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.8064, allocations: 2.172 kB / 1.093 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002086/0.8066, allocations: 68.38 kB / 1.093 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.8072, allocations: 413.9 kB / 1.093 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002003/0.8075, allocations: 91.27 kB / 1.093 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001663/0.8076, allocations: 83.41 kB / 1.093 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.8077, allocations: 5.672 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002554/0.8079, allocations: 178.2 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.8079, allocations: 3.938 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0007801/0.8087, allocations: 358.6 kB / 1.094 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.8088, allocations: 163.2 kB / 1.094 GB, free: 1.828 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.809, allocations: 181.4 kB / 1.094 GB, free: 1.695 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.809, allocations: 29.64 kB / 1.094 GB, free: 1.664 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.597e-05/0.8091, allocations: 115.1 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.873e-05/0.8091, allocations: 25.39 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.641e-05/0.8092, allocations: 43.73 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.587e-05/0.8092, allocations: 331.2 kB / 1.095 GB, free: 1.184 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.8094, allocations: 51.12 kB / 1.095 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001622/0.8096, allocations: 101 kB / 1.095 GB, free: 1.094 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.8099, allocations: 316.6 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.8099, allocations: 0.875 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005297/0.8104, allocations: 340 kB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.971e-05/0.8105, allocations: 119.8 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.8105, allocations: 3.078 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.979e-05/0.8105, allocations: 2.625 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001251/0.8107, allocations: 20.61 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.8107, allocations: 6.688 kB / 1.095 GB, free: 460 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.8108, allocations: 18.86 kB / 1.096 GB, free: 452 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.8108, allocations: 9.656 kB / 1.096 GB, free: 452 kB / 0.8575 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.0001464/0.811, allocations: 195.6 kB / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.811, allocations: 18.33 kB / 1.096 GB, free: 248 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.005e-05/0.8111, allocations: 18.34 kB / 1.096 GB, free: 232 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-06/0.8111, allocations: 5.5 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.8111, allocations: 1.391 kB / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.8111, allocations: 0 / 1.096 GB, free: 228 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007965/0.8119, allocations: 0.5806 MB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.8119, allocations: 0.5625 kB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.881e-05/0.812, allocations: 11.48 kB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.812, allocations: 0.75 kB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.609e-05/0.812, allocations: 10.83 kB / 1.096 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.812, allocations: 4.438 kB / 1.096 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.812, allocations: 12.59 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006245/0.8127, allocations: 404.6 kB / 1.097 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.8127, allocations: 89 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.8128, allocations: 4.766 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001165/0.8129, allocations: 7.625 kB / 1.097 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.813, allocations: 14.39 kB / 1.097 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.087e-05/0.813, allocations: 12.22 kB / 1.097 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001196/0.8131, allocations: 128.8 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8131, allocations: 3.938 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000321/0.8134, allocations: 35.34 kB / 1.097 GB, free: 15.3 MB / 0.8731 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.0002838/0.8137, allocations: 127.7 kB / 1.097 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005898/0.8143, allocations: 357.5 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.8143, allocations: 0 / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.8146, allocations: 208.7 kB / 1.098 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.815, allocations: 22.89 kB / 1.098 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007017/0.8157, allocations: 317 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.816, allocations: 0.7059 MB / 1.099 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/0.8161, allocations: 15.83 kB / 1.099 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of SimCode: time 4.31e-07/0.8161, allocations: 0 / 1.099 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of Templates: time 0.005395/0.8215, allocations: 2.186 MB / 1.101 GB, free: 13.53 MB / 0.8731 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches