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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009984/0.0009983, allocations: 190.8 kB / 16.25 MB, free: 6.633 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.244/1.244, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.439/2.439, allocations: 437 MB / 0.7101 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 59.91 kB / 0.8689 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5542/0.5555, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.00268/0.5582, allocations: 1.678 MB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0008043/0.5591, allocations: 0.6157 MB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.699e-05/0.5591, allocations: 4 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.5593, allocations: 19.92 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.0001681/0.5595, allocations: 31.83 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003448/0.5598, allocations: 103.8 kB / 1.019 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002053/0.56, allocations: 187.6 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.5602, allocations: 37.03 kB / 1.02 GB, free: 4 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.5603, allocations: 83.94 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001175/0.5604, allocations: 87.66 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.5605, allocations: 12 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.076e-05/0.5605, allocations: 27.88 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.913e-05/0.5606, allocations: 31.91 kB / 1.02 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.819e-05/0.5607, allocations: 75.66 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001916/0.5609, allocations: 165.8 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.5609, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5609, allocations: 0 / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.5609, allocations: 0 / 1.02 GB, free: 15.53 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.0006017/0.5615, allocations: 0.5524 MB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.5616, allocations: 8.031 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.612e-05/0.5616, allocations: 38.75 kB / 1.021 GB, free: 14.85 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.5617, allocations: 24.75 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000249/0.5619, allocations: 232.2 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.5619, allocations: 24.19 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.562, allocations: 12.38 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002573/0.5622, allocations: 113.6 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.5623, allocations: 3.984 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.5623, allocations: 4 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.5623, allocations: 0 / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001901/0.5625, allocations: 71.95 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005698/0.5631, allocations: 420.5 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001849/0.5633, allocations: 86.53 kB / 1.022 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/0.5634, allocations: 84.84 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.5634, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.5637, allocations: 174.7 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.423e-06/0.5637, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0006724/0.5644, allocations: 360.8 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.5645, allocations: 162.2 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.5646, allocations: 175.2 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.5646, allocations: 29.7 kB / 1.022 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.037e-05/0.5647, allocations: 108.4 kB / 1.023 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.5647, allocations: 27.64 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.759e-05/0.5648, allocations: 45.7 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.944e-05/0.5649, allocations: 326.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.565, allocations: 51.97 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001518/0.5652, allocations: 102.9 kB / 1.023 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003018/0.5655, allocations: 312.9 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5655, allocations: 0 / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004787/0.566, allocations: 348.3 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 6.454e-05/0.5661, allocations: 118.8 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.5661, allocations: 7.984 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.5661, allocations: 7.938 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.5662, allocations: 15.98 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.5663, allocations: 8.188 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.5664, allocations: 23.83 kB / 1.024 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.5664, allocations: 15.98 kB / 1.024 GB, free: 11.06 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.0001335/0.5665, allocations: 189.2 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.374e-05/0.5666, allocations: 23.75 kB / 1.024 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.5666, allocations: 17.39 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.5666, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5666, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.5666, allocations: 0 / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006558/0.5673, allocations: 0.5876 MB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5673, allocations: 0 / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.695e-05/0.5674, allocations: 11.98 kB / 1.025 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5674, allocations: 3.938 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.5674, allocations: 11.98 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.5674, allocations: 4 kB / 1.025 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.5674, allocations: 3.938 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005059/0.5679, allocations: 398.7 kB / 1.025 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.772e-05/0.568, allocations: 85.02 kB / 1.025 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.568, allocations: 8 kB / 1.025 GB, free: 9.598 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.5681, allocations: 7.984 kB / 1.025 GB, free: 9.59 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.5682, allocations: 15.88 kB / 1.025 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.5682, allocations: 11.98 kB / 1.025 GB, free: 9.562 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.846e-05/0.5683, allocations: 132.3 kB / 1.025 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5683, allocations: 0 / 1.025 GB, free: 9.434 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002825/0.5686, allocations: 35.94 kB / 1.025 GB, free: 9.398 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.0008436/0.5695, allocations: 0.9664 MB / 1.026 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004424/0.5699, allocations: 361.5 kB / 1.027 GB, free: 7.996 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5699, allocations: 4 kB / 1.027 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002195/0.5701, allocations: 207.2 kB / 1.027 GB, free: 7.766 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003099/0.5705, allocations: 27.92 kB / 1.027 GB, free: 7.738 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.5727, allocations: 2.122 MB / 1.029 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.5729, allocations: 0.7156 MB / 1.03 GB, free: 4.727 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.383e-05/0.573, allocations: 20.53 kB / 1.03 GB, free: 4.707 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.826e-05/0.573, allocations: 39.42 kB / 1.03 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of SimCode: time 3.61e-07/0.5731, allocations: 0 / 1.03 GB, free: 4.668 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.145/1.718, allocations: 3.503 MB / 1.033 GB, free: 1.297 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/1.718, allocations: 204.9 kB / 1.033 GB, free: 1.035 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.706/3.424, allocations: 7.938 kB / 1.033 GB, free: 1.027 MB / 0.7794 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > 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/jenkins1/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