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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.006992/0.006992, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001925/0.001925, allocations: 192.1 kB / 16.68 MB, free: 5.969 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.726/2.726, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.17 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2772, allocations: 162.2 MB / 1.241 GB, free: 9.258 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002795/0.28, allocations: 1.627 MB / 1.243 GB, free: 7.621 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009619/0.281, allocations: 0.604 MB / 1.244 GB, free: 7.012 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.493e-05/0.2811, allocations: 3.938 kB / 1.244 GB, free: 7.008 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.2812, allocations: 19.86 kB / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.2814, allocations: 47.75 kB / 1.244 GB, free: 6.941 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003729/0.2818, allocations: 107.8 kB / 1.244 GB, free: 6.836 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002612/0.2821, allocations: 203.6 kB / 1.244 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.2822, allocations: 33.09 kB / 1.244 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.2824, allocations: 83.75 kB / 1.244 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.2825, allocations: 83.66 kB / 1.244 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.109e-05/0.2825, allocations: 16 kB / 1.244 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.267e-05/0.2826, allocations: 31.98 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.344e-05/0.2827, allocations: 27.92 kB / 1.244 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 9.755e-05/0.2828, allocations: 75.64 kB / 1.244 GB, free: 6.293 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.2831, allocations: 171.6 kB / 1.244 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2831, allocations: 4 kB / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.143e-06/0.2831, allocations: 0 / 1.244 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.429e-06/0.2831, allocations: 0 / 1.244 GB, free: 6.121 MB / 0.9669 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.0007034/0.2838, allocations: 0.5562 MB / 1.245 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2839, allocations: 15.97 kB / 1.245 GB, free: 5.477 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.476e-05/0.2839, allocations: 42.73 kB / 1.245 GB, free: 5.426 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.554e-05/0.284, allocations: 16.84 kB / 1.245 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.2843, allocations: 240.2 kB / 1.245 GB, free: 5.137 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2843, allocations: 16.38 kB / 1.245 GB, free: 5.121 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.2844, allocations: 12.38 kB / 1.245 GB, free: 5.109 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002689/0.2846, allocations: 113.5 kB / 1.245 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.2847, allocations: 0 / 1.245 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.259e-05/0.2847, allocations: 4 kB / 1.245 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.2847, allocations: 0 / 1.245 GB, free: 4.988 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/0.2849, allocations: 75.88 kB / 1.246 GB, free: 4.914 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006486/0.2856, allocations: 416.6 kB / 1.246 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.2858, allocations: 86.56 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.286, allocations: 80.8 kB / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.286, allocations: 0 / 1.246 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002797/0.2863, allocations: 182.7 kB / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.433e-06/0.2863, allocations: 0 / 1.246 GB, free: 4.078 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0007778/0.2871, allocations: 357 kB / 1.247 GB, free: 3.711 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001169/0.2872, allocations: 166.2 kB / 1.247 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.2874, allocations: 179.2 kB / 1.247 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.892e-05/0.2874, allocations: 33.7 kB / 1.247 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.058e-05/0.2875, allocations: 112.3 kB / 1.247 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.2876, allocations: 23.81 kB / 1.247 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.511e-05/0.2877, allocations: 41.7 kB / 1.247 GB, free: 3.098 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.2878, allocations: 326.8 kB / 1.247 GB, free: 2.77 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.288, allocations: 56.23 kB / 1.248 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.2882, allocations: 106.8 kB / 1.248 GB, free: 2.586 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003806/0.2885, allocations: 305 kB / 1.248 GB, free: 2.227 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2886, allocations: 7.938 kB / 1.248 GB, free: 2.219 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005898/0.2892, allocations: 356.2 kB / 1.248 GB, free: 1.84 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 8.711e-05/0.2893, allocations: 110.8 kB / 1.248 GB, free: 1.707 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2893, allocations: 7.984 kB / 1.248 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2893, allocations: 0 / 1.248 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.2894, allocations: 19.94 kB / 1.248 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.2894, allocations: 7.922 kB / 1.248 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.2895, allocations: 15.94 kB / 1.248 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.189e-05/0.2896, allocations: 12 kB / 1.248 GB, free: 1.645 MB / 0.9669 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.0001756/0.2897, allocations: 201.3 kB / 1.249 GB, free: 1.426 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.397e-05/0.2898, allocations: 23.89 kB / 1.249 GB, free: 1.402 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.2898, allocations: 9.406 kB / 1.249 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-06/0.2898, allocations: 4 kB / 1.249 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2898, allocations: 0 / 1.249 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.2898, allocations: 0 / 1.249 GB, free: 1.383 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008006/0.2907, allocations: 0.5875 MB / 1.249 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2907, allocations: 0 / 1.249 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.2908, allocations: 19.92 kB / 1.249 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.2908, allocations: 0 / 1.249 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.2908, allocations: 8 kB / 1.249 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2908, allocations: 0 / 1.249 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2908, allocations: 3.938 kB / 1.249 GB, free: 0.6953 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006142/0.2914, allocations: 406.7 kB / 1.25 GB, free: 276 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.2915, allocations: 92.98 kB / 1.25 GB, free: 164 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.2915, allocations: 8 kB / 1.25 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001166/0.2916, allocations: 4 kB / 1.25 GB, free: 152 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.25e-05/0.2917, allocations: 15.92 kB / 1.25 GB, free: 136 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.2917, allocations: 4 kB / 1.25 GB, free: 132 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001163/0.2918, allocations: 128.3 kB / 1.25 GB, free: 4 kB / 0.9669 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2918, allocations: 0 / 1.25 GB, free: 4 kB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003109/0.2922, allocations: 39.98 kB / 1.25 GB, free: 15.96 MB / 0.9825 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.001033/0.2932, allocations: 0.9578 MB / 1.251 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0005277/0.2937, allocations: 365.4 kB / 1.251 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2938, allocations: 0 / 1.251 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002716/0.294, allocations: 206.7 kB / 1.251 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003026/0.2943, allocations: 19.94 kB / 1.251 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002668/0.297, allocations: 2.109 MB / 1.253 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.2974, allocations: 0.7196 MB / 1.254 GB, free: 11.32 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.712e-05/0.2975, allocations: 20.53 kB / 1.254 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.573e-05/0.2975, allocations: 39.42 kB / 1.254 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.2975, allocations: 0 / 1.254 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0428/0.3403, allocations: 3.644 MB / 1.258 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.696/8.036, allocations: 7.812 kB / 1.258 GB, free: 7.723 MB / 0.9825 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 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.csv","/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