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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001073/0.001073, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.00133/0.00133, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.265/1.265, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.355/2.355, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003072/0.0003073, allocations: 8 kB / 0.8729 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5332/0.5335, allocations: 153.8 MB / 1.023 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.001596/0.5351, allocations: 1.324 MB / 1.024 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0008317/0.536, allocations: 0.6198 MB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.527e-05/0.536, allocations: 11.94 kB / 1.025 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.5362, allocations: 15.92 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.5363, allocations: 39.33 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.5367, allocations: 103.8 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001527/0.5369, allocations: 163.5 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.681e-05/0.537, allocations: 21.12 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.5371, allocations: 71.81 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.5372, allocations: 75.72 kB / 1.026 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.737e-05/0.5372, allocations: 4 kB / 1.026 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.595e-05/0.5373, allocations: 24 kB / 1.026 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.5374, allocations: 31.84 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.453e-05/0.5375, allocations: 93.36 kB / 1.026 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001829/0.5377, allocations: 153.7 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.5377, allocations: 4 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5377, allocations: 0 / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.5377, allocations: 4 kB / 1.026 GB, free: 13.09 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.0005127/0.5382, allocations: 0.5213 MB / 1.026 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.5382, allocations: 8.031 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.503e-05/0.5383, allocations: 38.75 kB / 1.026 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.137e-05/0.5383, allocations: 16.84 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.5386, allocations: 236 kB / 1.027 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.5386, allocations: 12.38 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.157e-05/0.5386, allocations: 16.38 kB / 1.027 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.5389, allocations: 125.4 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.47e-06/0.5389, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.5389, allocations: 4 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.5389, allocations: 0 / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.5391, allocations: 83.94 kB / 1.027 GB, free: 11.92 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000555/0.5397, allocations: 420.5 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001777/0.5399, allocations: 94.52 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.54, allocations: 80.81 kB / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.5401, allocations: 0 / 1.027 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.5403, allocations: 186.8 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.352e-06/0.5403, allocations: 0 / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0006567/0.541, allocations: 361 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.367e-05/0.5411, allocations: 170.2 kB / 1.028 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.5412, allocations: 183.1 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.5413, allocations: 29.7 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.819e-05/0.5413, allocations: 108.4 kB / 1.028 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.5413, allocations: 23.66 kB / 1.028 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.5414, allocations: 25.7 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.61e-05/0.5415, allocations: 330.8 kB / 1.029 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.5416, allocations: 59.95 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001525/0.5418, allocations: 102.8 kB / 1.029 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.5421, allocations: 320.9 kB / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.5421, allocations: 0 / 1.029 GB, free: 9.207 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0004901/0.5426, allocations: 360.2 kB / 1.03 GB, free: 8.824 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.816e-05/0.5427, allocations: 118.8 kB / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.5427, allocations: 0 / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.5427, allocations: 4.281 kB / 1.03 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.5428, allocations: 19.98 kB / 1.03 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.552e-06/0.5428, allocations: 3.938 kB / 1.03 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.5429, allocations: 35.7 kB / 1.03 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.543, allocations: 16.12 kB / 1.03 GB, free: 8.605 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.0001308/0.5431, allocations: 197.2 kB / 1.03 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.799e-05/0.5431, allocations: 15.81 kB / 1.03 GB, free: 8.375 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.154e-05/0.5432, allocations: 17.39 kB / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.5432, allocations: 0 / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.5432, allocations: 0 / 1.03 GB, free: 8.359 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.5432, allocations: 4 kB / 1.03 GB, free: 8.355 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006647/0.5439, allocations: 0.5876 MB / 1.031 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.5439, allocations: 0 / 1.031 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.74e-05/0.5439, allocations: 15.98 kB / 1.031 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.544, allocations: 0 / 1.031 GB, free: 7.684 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.901e-05/0.544, allocations: 11.98 kB / 1.031 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.544, allocations: 0 / 1.031 GB, free: 7.672 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.544, allocations: 7.938 kB / 1.031 GB, free: 7.664 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005034/0.5445, allocations: 414.6 kB / 1.031 GB, free: 7.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.107e-05/0.5445, allocations: 81.02 kB / 1.031 GB, free: 7.133 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.5446, allocations: 8 kB / 1.031 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.5447, allocations: 15.98 kB / 1.031 GB, free: 7.109 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.541e-05/0.5448, allocations: 11.92 kB / 1.031 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.5448, allocations: 8 kB / 1.031 GB, free: 7.09 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.806e-05/0.5449, allocations: 132.3 kB / 1.031 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5449, allocations: 0 / 1.031 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002788/0.5452, allocations: 31.94 kB / 1.031 GB, free: 6.93 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.0008114/0.546, allocations: 0.9744 MB / 1.032 GB, free: 5.918 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004308/0.5464, allocations: 373.3 kB / 1.033 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5464, allocations: 0 / 1.033 GB, free: 5.504 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002255/0.5467, allocations: 215.2 kB / 1.033 GB, free: 5.27 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002863/0.547, allocations: 19.94 kB / 1.033 GB, free: 5.25 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.5491, allocations: 2.149 MB / 1.035 GB, free: 2.961 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002034/0.5493, allocations: 0.7083 MB / 1.036 GB, free: 2.227 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.143e-05/0.5494, allocations: 24.53 kB / 1.036 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.667e-05/0.5495, allocations: 35.42 kB / 1.036 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.5495, allocations: 0 / 1.036 GB, free: 2.168 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.134/1.683, allocations: 3.348 MB / 1.039 GB, free: 14.96 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/1.684, allocations: 207.1 kB / 1.039 GB, free: 14.7 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.773/3.456, allocations: 0 / 1.039 GB, free: 14.7 MB / 0.795 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