Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001106/0.001106, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001439/0.00144, allocations: 198.1 kB / 16.14 MB, free: 6.711 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.595/2.595, allocations: 437 MB / 0.7099 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 63.91 kB / 0.8685 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6037/0.605, allocations: 151.6 MB / 1.017 GB, free: 2.926 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002908/0.6079, allocations: 1.663 MB / 1.018 GB, free: 1.254 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009206/0.6089, allocations: 0.643 MB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.398e-05/0.609, allocations: 3.938 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.6091, allocations: 23.86 kB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.6093, allocations: 39.83 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.6097, allocations: 103.8 kB / 1.019 GB, free: 448 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001461/0.6098, allocations: 159.6 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001045/0.6099, allocations: 25.09 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.6101, allocations: 71.83 kB / 1.019 GB, free: 188 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001172/0.6102, allocations: 83.72 kB / 1.019 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.526e-05/0.6102, allocations: 8 kB / 1.019 GB, free: 96 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.739e-05/0.6103, allocations: 23.97 kB / 1.019 GB, free: 72 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 7.887e-05/0.6104, allocations: 27.86 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.6105, allocations: 71.72 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002136/0.6107, allocations: 157.5 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.6107, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 6.91e-07/0.6108, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.767e-06/0.6108, allocations: 4 kB / 1.02 GB, free: 15.82 MB / 0.7794 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.000676/0.6114, allocations: 0.5543 MB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.6115, allocations: 8.031 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.935e-05/0.6115, allocations: 24.69 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002616/0.6118, allocations: 228.2 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.6118, allocations: 8.375 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.6119, allocations: 12.38 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.6121, allocations: 121.6 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.6122, allocations: 4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.6122, allocations: 4 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.6122, allocations: 4 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.6124, allocations: 67.94 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006527/0.6131, allocations: 420.4 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.6133, allocations: 90.53 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.6134, allocations: 72.81 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.6135, allocations: 4 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002982/0.6138, allocations: 178.8 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.693e-06/0.6138, allocations: 4 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0007227/0.6145, allocations: 356.8 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.694e-05/0.6146, allocations: 162.2 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.6148, allocations: 179.2 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.6148, allocations: 29.7 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.6149, allocations: 108.4 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.751e-05/0.6149, allocations: 27.56 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.721e-05/0.615, allocations: 41.7 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.6151, allocations: 330.8 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.6153, allocations: 51.95 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.6154, allocations: 106.8 kB / 1.023 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000344/0.6158, allocations: 312.9 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.6158, allocations: 0 / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005421/0.6164, allocations: 348.1 kB / 1.023 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 8.678e-05/0.6164, allocations: 120.5 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.6165, allocations: 4.234 kB / 1.023 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.6165, allocations: 8 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.6166, allocations: 16 kB / 1.023 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.6166, allocations: 8.062 kB / 1.023 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.6167, allocations: 16.12 kB / 1.023 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.292e-05/0.6168, allocations: 11.98 kB / 1.023 GB, free: 11.41 MB / 0.7794 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.0001553/0.6169, allocations: 202.9 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.533e-05/0.617, allocations: 23.73 kB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.977e-05/0.617, allocations: 17.41 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.617, allocations: 4 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.617, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.617, allocations: 0 / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007154/0.6178, allocations: 0.5876 MB / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.6178, allocations: 0 / 1.024 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.591e-05/0.6178, allocations: 11.98 kB / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.6179, allocations: 0 / 1.024 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.6179, allocations: 16 kB / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.6179, allocations: 0 / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.6179, allocations: 3.938 kB / 1.024 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/0.6184, allocations: 398.6 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.286e-05/0.6185, allocations: 89 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.074e-05/0.6186, allocations: 4 kB / 1.025 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001184/0.6187, allocations: 8 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.057e-05/0.6187, allocations: 23.91 kB / 1.025 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.729e-05/0.6188, allocations: 4 kB / 1.025 GB, free: 9.902 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.301e-05/0.6189, allocations: 128.3 kB / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6189, allocations: 0 / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002957/0.6192, allocations: 39.91 kB / 1.025 GB, free: 9.738 MB / 0.7794 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.000234/0.6194, allocations: 133.8 kB / 1.025 GB, free: 9.602 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004574/0.6199, allocations: 365.4 kB / 1.025 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6199, allocations: 0 / 1.025 GB, free: 9.195 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002275/0.6201, allocations: 210.7 kB / 1.026 GB, free: 8.965 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.6204, allocations: 16.5 kB / 1.026 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005507/0.621, allocations: 317.8 kB / 1.026 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.6212, allocations: 0.7083 MB / 1.027 GB, free: 7.879 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.524e-05/0.6213, allocations: 20.53 kB / 1.027 GB, free: 7.859 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.276e-05/0.6214, allocations: 11.44 kB / 1.027 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of SimCode: time 2.31e-07/0.6214, allocations: 0 / 1.027 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of Templates: time 0.004875/0.6262, allocations: 2.006 MB / 1.029 GB, free: 5.863 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.makefile (rm -f Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & ./Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches