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.007938/0.007939, allocations: 101.5 kB / 15.73 MB, free: 6.023 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.001853/0.001853, allocations: 192.3 kB / 16.67 MB, free: 5.934 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.54/2.54, allocations: 437.1 MB / 0.7105 GB, free: 4.352 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 68.08 kB / 1.018 GB, free: 9.895 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7859/0.7873, allocations: 151.6 MB / 1.166 GB, free: 3.914 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.CSVWriter): time 0.002911/0.7903, allocations: 1.619 MB / 1.168 GB, free: 2.285 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.7913, allocations: 0.6157 MB / 1.168 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.333e-05/0.7914, allocations: 4 kB / 1.168 GB, free: 1.66 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.7916, allocations: 15.8 kB / 1.168 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.7918, allocations: 47.7 kB / 1.168 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.7922, allocations: 115.7 kB / 1.169 GB, free: 1.484 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.7924, allocations: 195.6 kB / 1.169 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001111/0.7925, allocations: 29.09 kB / 1.169 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.7927, allocations: 87.77 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.7928, allocations: 87.7 kB / 1.169 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.06e-05/0.7929, allocations: 12 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.911e-05/0.7929, allocations: 23.98 kB / 1.169 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.038e-05/0.793, allocations: 27.92 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.638e-05/0.7931, allocations: 75.64 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002247/0.7934, allocations: 171 kB / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.7934, allocations: 0 / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7934, allocations: 0 / 1.169 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.7934, allocations: 0 / 1.169 GB, free: 0.7891 MB / 0.8887 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.0006396/0.794, allocations: 0.564 MB / 1.17 GB, free: 156 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.7941, allocations: 8.922 kB / 1.17 GB, free: 148 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.693e-05/0.7941, allocations: 38.75 kB / 1.17 GB, free: 100 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.195e-05/0.7942, allocations: 20.84 kB / 1.17 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003064/0.7945, allocations: 244.2 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.7945, allocations: 8.375 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.094e-05/0.7945, allocations: 16.31 kB / 1.17 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.7948, allocations: 121.5 kB / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.7948, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.7949, allocations: 0 / 1.17 GB, free: 15.65 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.7949, allocations: 7.938 kB / 1.17 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001881/0.7951, allocations: 63.95 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006017/0.7957, allocations: 420.6 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.7959, allocations: 86.53 kB / 1.171 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001486/0.796, allocations: 76.81 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.7961, allocations: 0 / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002492/0.7963, allocations: 182.7 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.7963, allocations: 4 kB / 1.171 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10): time 0.0006822/0.797, allocations: 353 kB / 1.171 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.7971, allocations: 162.2 kB / 1.171 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.7973, allocations: 179.7 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.7973, allocations: 29.7 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.7974, allocations: 108.4 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.788e-05/0.7974, allocations: 31.73 kB / 1.172 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/0.7975, allocations: 41.7 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 9.552e-05/0.7976, allocations: 326.8 kB / 1.172 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.7977, allocations: 51.95 kB / 1.172 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.7979, allocations: 112.1 kB / 1.172 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003137/0.7982, allocations: 308.9 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.7982, allocations: 0 / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005218/0.7987, allocations: 352.1 kB / 1.173 GB, free: 12.52 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 7.011e-05/0.7988, allocations: 123 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.7988, allocations: 8 kB / 1.173 GB, free: 12.37 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.7989, allocations: 4 kB / 1.173 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000107/0.799, allocations: 15.98 kB / 1.173 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.799, allocations: 7.938 kB / 1.173 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.7991, allocations: 15.92 kB / 1.173 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.7991, allocations: 11.94 kB / 1.173 GB, free: 12.31 MB / 0.9044 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.0001411/0.7993, allocations: 197.2 kB / 1.173 GB, free: 12.1 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.7993, allocations: 15.91 kB / 1.173 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.681e-05/0.7994, allocations: 21.67 kB / 1.173 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.7994, allocations: 0 / 1.173 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.7994, allocations: 0 / 1.173 GB, free: 12.06 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.7994, allocations: 3.938 kB / 1.173 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006825/0.8001, allocations: 0.5875 MB / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.8001, allocations: 0 / 1.174 GB, free: 11.4 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.26e-05/0.8001, allocations: 8 kB / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.8002, allocations: 0 / 1.174 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.8002, allocations: 19.98 kB / 1.174 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.8002, allocations: 0 / 1.174 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8002, allocations: 7.875 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005199/0.8007, allocations: 398.7 kB / 1.174 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.813e-05/0.8008, allocations: 85.06 kB / 1.174 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.127e-05/0.8008, allocations: 4 kB / 1.174 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.8009, allocations: 11.98 kB / 1.174 GB, free: 10.83 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.801, allocations: 11.94 kB / 1.174 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.801, allocations: 11.98 kB / 1.174 GB, free: 10.8 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 9.485e-05/0.8011, allocations: 132.8 kB / 1.175 GB, free: 10.68 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8011, allocations: 3.938 kB / 1.175 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002975/0.8014, allocations: 35.94 kB / 1.175 GB, free: 10.64 MB / 0.9044 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.000896/0.8023, allocations: 0.9613 MB / 1.176 GB, free: 9.645 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004667/0.8028, allocations: 361.8 kB / 1.176 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.8028, allocations: 0 / 1.176 GB, free: 9.242 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002319/0.8031, allocations: 214.6 kB / 1.176 GB, free: 9.008 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000306/0.8034, allocations: 19.94 kB / 1.176 GB, free: 8.988 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.8057, allocations: 2.11 MB / 1.178 GB, free: 6.73 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002413/0.806, allocations: 0.708 MB / 1.179 GB, free: 5.996 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.694e-05/0.8061, allocations: 24.53 kB / 1.179 GB, free: 5.973 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.919e-05/0.8061, allocations: 31.42 kB / 1.179 GB, free: 5.941 MB / 0.9044 GB Notification: Performance of SimCode: time 4.91e-07/0.8062, allocations: 0 / 1.179 GB, free: 5.941 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01909/0.8252, allocations: 3.646 MB / 1.182 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/8.634, allocations: 5.281 kB / 1.182 GB, free: 2.402 MB / 0.9044 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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.IO.Files.Examples.CSVWriter_res.csv --start-time -1.21 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004484 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.csv","/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