Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_latest_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.002079/0.002079, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002538/0.002538, allocations: 193.1 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.753/2.753, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 6.201/6.201, allocations: 461.9 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 65.62 kB / 0.8987 GB, free: 37.19 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5395/0.5411, allocations: 157.4 MB / 1.052 GB, free: 8.66 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.007744/0.549, allocations: 1.683 MB / 1.054 GB, free: 6.965 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002077/0.5511, allocations: 0.6038 MB / 1.055 GB, free: 6.355 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.5513, allocations: 7.938 kB / 1.055 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.5517, allocations: 19.86 kB / 1.055 GB, free: 6.328 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003899/0.5521, allocations: 38.95 kB / 1.055 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008776/0.553, allocations: 103.9 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.5535, allocations: 195.5 kB / 1.055 GB, free: 6 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.5537, allocations: 25.12 kB / 1.055 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000316/0.554, allocations: 91.75 kB / 1.055 GB, free: 5.887 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002661/0.5543, allocations: 83.72 kB / 1.055 GB, free: 5.805 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 7.974e-05/0.5544, allocations: 12 kB / 1.055 GB, free: 5.793 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001331/0.5546, allocations: 27.98 kB / 1.055 GB, free: 5.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.5547, allocations: 31.91 kB / 1.055 GB, free: 5.734 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.5549, allocations: 75.64 kB / 1.055 GB, free: 5.66 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004099/0.5554, allocations: 167.7 kB / 1.055 GB, free: 5.496 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.5554, allocations: 4 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.164e-06/0.5554, allocations: 0 / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.5554, allocations: 0 / 1.055 GB, free: 5.492 MB / 0.8106 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.001189/0.5566, allocations: 0.5486 MB / 1.056 GB, free: 4.871 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 6.302e-05/0.5567, allocations: 8.625 kB / 1.056 GB, free: 4.863 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.267e-05/0.5568, allocations: 42.69 kB / 1.056 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.5569, allocations: 20.75 kB / 1.056 GB, free: 4.793 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.5574, allocations: 228.7 kB / 1.056 GB, free: 4.531 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.5575, allocations: 16.38 kB / 1.056 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.104e-05/0.5576, allocations: 12.38 kB / 1.056 GB, free: 4.504 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004898/0.5581, allocations: 117.5 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/0.5581, allocations: 0 / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.39e-05/0.5581, allocations: 4 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.5582, allocations: 0 / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003773/0.5586, allocations: 71.94 kB / 1.057 GB, free: 4.309 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001176/0.5597, allocations: 420.5 kB / 1.057 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003659/0.5601, allocations: 90.52 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.5605, allocations: 76.81 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 5.036e-05/0.5605, allocations: 4 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000633/0.5612, allocations: 174.7 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 2.966e-06/0.5612, allocations: 3.938 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.001293/0.5625, allocations: 356.9 kB / 1.058 GB, free: 3.102 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.5627, allocations: 166.2 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.563, allocations: 178.6 kB / 1.058 GB, free: 2.719 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.344e-05/0.5631, allocations: 33.7 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.5632, allocations: 104.4 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.549e-05/0.5633, allocations: 31.5 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001389/0.5634, allocations: 41.7 kB / 1.058 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001896/0.5637, allocations: 330.8 kB / 1.058 GB, free: 2.16 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.5639, allocations: 47.97 kB / 1.058 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.5643, allocations: 106.9 kB / 1.059 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/0.5649, allocations: 312.9 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.565, allocations: 0 / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.001096/0.5661, allocations: 344.2 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.5662, allocations: 122.8 kB / 1.059 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.994e-05/0.5663, allocations: 3.984 kB / 1.059 GB, free: 1.102 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.134e-05/0.5663, allocations: 7.938 kB / 1.059 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002243/0.5666, allocations: 19.92 kB / 1.059 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.402e-05/0.5666, allocations: 4 kB / 1.059 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.5668, allocations: 11.91 kB / 1.059 GB, free: 1.059 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-05/0.5669, allocations: 12.22 kB / 1.059 GB, free: 1.047 MB / 0.8106 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.0003143/0.5672, allocations: 201.1 kB / 1.06 GB, free: 0.8281 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.386e-05/0.5673, allocations: 19.81 kB / 1.06 GB, free: 0.8086 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.698e-05/0.5674, allocations: 13.41 kB / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.5674, allocations: 0 / 1.06 GB, free: 0.7969 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.5674, allocations: 4 kB / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.5674, allocations: 0 / 1.06 GB, free: 0.793 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.5689, allocations: 0.5914 MB / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.5689, allocations: 0 / 1.06 GB, free: 136 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.5691, allocations: 12.27 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.209e-06/0.5691, allocations: 0 / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.445e-05/0.5692, allocations: 12 kB / 1.06 GB, free: 112 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.5692, allocations: 3.938 kB / 1.06 GB, free: 108 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.5692, allocations: 3.938 kB / 1.06 GB, free: 104 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.5703, allocations: 406.7 kB / 1.061 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.21e-05/0.5704, allocations: 88.92 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.5705, allocations: 4 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.5707, allocations: 4 kB / 1.061 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.862e-05/0.5708, allocations: 15.92 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.728e-05/0.5709, allocations: 8 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002129/0.5711, allocations: 136.8 kB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of sort global known variables: time 5.91e-07/0.5711, allocations: 0 / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005972/0.5717, allocations: 32 kB / 1.061 GB, free: 15.37 MB / 0.8262 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.001853/0.5736, allocations: 0.9693 MB / 1.062 GB, free: 14.37 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0009641/0.5746, allocations: 357.4 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.5746, allocations: 4 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0004416/0.5751, allocations: 202.8 kB / 1.062 GB, free: 13.75 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005892/0.5757, allocations: 28.42 kB / 1.062 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004802/0.5805, allocations: 2.137 MB / 1.064 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.581, allocations: 0.7041 MB / 1.065 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001428/0.5812, allocations: 24.53 kB / 1.065 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.5814, allocations: 39.42 kB / 1.065 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of SimCode: time 8.42e-07/0.5814, allocations: 0 / 1.065 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0443/0.6257, allocations: 3.509 MB / 1.069 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004199/0.6262, allocations: 211.5 kB / 1.069 GB, free: 7.012 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.182/4.808, allocations: 0 / 1.069 GB, free: 7.012 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches