Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_CSVWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.CSVWriter,fileNamePrefix="Buildings_11_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.001918/0.001918, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.526/2.526, allocations: 469.8 MB / 0.7424 GB, free: 7.441 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001733, allocations: 67.25 kB / 0.9087 GB, free: 34.31 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2523, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002987/0.2553, allocations: 1.612 MB / 1.066 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009223/0.2562, allocations: 0.6118 MB / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.439e-05/0.2563, allocations: 0 / 1.066 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.2565, allocations: 23.8 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001767/0.2567, allocations: 40.89 kB / 1.066 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003569/0.257, allocations: 115.7 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.2573, allocations: 207.5 kB / 1.067 GB, free: 11.56 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.2574, allocations: 21.11 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.2575, allocations: 83.81 kB / 1.067 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000132/0.2577, allocations: 83.72 kB / 1.067 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.899e-05/0.2577, allocations: 16 kB / 1.067 GB, free: 11.36 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.031e-05/0.2578, allocations: 28 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.076e-05/0.2579, allocations: 31.91 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.258, allocations: 71.66 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002162/0.2582, allocations: 159.7 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2582, allocations: 4 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.966e-06/0.2582, allocations: 0 / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.895e-06/0.2583, allocations: 7.875 kB / 1.067 GB, free: 11.06 MB / 0.8262 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.0006596/0.2589, allocations: 0.5564 MB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.259, allocations: 12.03 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.498e-05/0.259, allocations: 30.75 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.2591, allocations: 24.73 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002981/0.2594, allocations: 236.9 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.2594, allocations: 4.375 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.2594, allocations: 16.38 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002608/0.2597, allocations: 121.5 kB / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.2597, allocations: 0 / 1.068 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.2597, allocations: 4 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.2597, allocations: 4 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.2599, allocations: 59.95 kB / 1.068 GB, free: 9.879 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006439/0.2606, allocations: 428.5 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001894/0.2608, allocations: 82.53 kB / 1.069 GB, free: 9.32 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.261, allocations: 72.81 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.261, allocations: 8.141 kB / 1.069 GB, free: 9.238 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002869/0.2613, allocations: 182.8 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.2613, allocations: 4 kB / 1.069 GB, free: 9.031 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0007102/0.262, allocations: 344.8 kB / 1.069 GB, free: 8.676 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.2621, allocations: 170.1 kB / 1.069 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.2623, allocations: 179.2 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.2623, allocations: 29.7 kB / 1.07 GB, free: 8.254 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.618e-05/0.2624, allocations: 116.3 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.2625, allocations: 31.62 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.996e-05/0.2625, allocations: 41.98 kB / 1.07 GB, free: 8.055 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001448/0.2627, allocations: 330.8 kB / 1.07 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.2628, allocations: 51.95 kB / 1.07 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001743/0.263, allocations: 106.8 kB / 1.07 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/0.2634, allocations: 308.9 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2634, allocations: 0 / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005435/0.2639, allocations: 356.2 kB / 1.071 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.79e-05/0.264, allocations: 118.8 kB / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.264, allocations: 0 / 1.071 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.264, allocations: 7.938 kB / 1.071 GB, free: 6.652 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.2641, allocations: 15.98 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.2642, allocations: 4 kB / 1.071 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.2643, allocations: 15.98 kB / 1.071 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.2643, allocations: 12 kB / 1.071 GB, free: 6.605 MB / 0.8262 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.0001681/0.2645, allocations: 201.1 kB / 1.071 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.2645, allocations: 19.84 kB / 1.071 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.393e-05/0.2646, allocations: 17.39 kB / 1.071 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.2646, allocations: 0 / 1.071 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.2646, allocations: 4 kB / 1.071 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.2646, allocations: 0 / 1.071 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007324/0.2653, allocations: 0.5797 MB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2653, allocations: 0 / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.2654, allocations: 15.98 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.2654, allocations: 4 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.866e-05/0.2654, allocations: 7.984 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2654, allocations: 0 / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.2654, allocations: 3.938 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/0.266, allocations: 406.6 kB / 1.072 GB, free: 5.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/0.2661, allocations: 88.92 kB / 1.072 GB, free: 5.137 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.2661, allocations: 12 kB / 1.072 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.2663, allocations: 11.98 kB / 1.072 GB, free: 5.113 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.867e-05/0.2663, allocations: 7.938 kB / 1.072 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.2663, allocations: 11.98 kB / 1.072 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001059/0.2664, allocations: 128.2 kB / 1.072 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2664, allocations: 0 / 1.072 GB, free: 4.969 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002753/0.2667, allocations: 36 kB / 1.073 GB, free: 4.934 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.0009788/0.2677, allocations: 0.9583 MB / 1.073 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005108/0.2682, allocations: 373.4 kB / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2682, allocations: 0 / 1.074 GB, free: 3.527 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002676/0.2685, allocations: 214.7 kB / 1.074 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.2688, allocations: 19.94 kB / 1.074 GB, free: 3.273 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.2713, allocations: 2.092 MB / 1.076 GB, free: 1.035 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.2716, allocations: 0.7119 MB / 1.077 GB, free: 304 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.003e-05/0.2717, allocations: 20.53 kB / 1.077 GB, free: 284 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.497e-05/0.2718, allocations: 39.36 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of SimCode: time 2.7e-07/0.2718, allocations: 0 / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2468/0.5186, allocations: 3.602 MB / 1.08 GB, free: 12.72 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.813/9.331, allocations: 9.375 kB / 1.08 GB, free: 12.71 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter_fmu --startTime=-1.21 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_CSVWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_CSVWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.CSVWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches